3 %bcond_without static_libs # static library
5 Summary: A library to read Paradox DB files
6 Summary(pl.UTF-8): Biblioteka do odczytu plików baz danych Paradox DB
13 Source0: http://downloads.sourceforge.net/pxlib/%{name}-%{version}.tar.gz
14 # Source0-md5: 220578ab27348613a35a55902c3999f3
15 Patch0: %{name}-stderr.patch
16 Patch1: %{name}-pc.patch
17 URL: http://pxlib.sourceforge.net/
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake
20 BuildRequires: docbook-to-man
21 BuildRequires: docbook-utils
22 BuildRequires: gettext-tools
23 BuildRequires: intltool
24 BuildRequires: libgsf-devel >= 1.14.1
25 BuildRequires: libtool
26 BuildRequires: perl-XML-Parser
27 BuildRequires: pkgconfig
28 BuildRequires: sed >= 4.0
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 pxlib is a simply and still small C library to read Paradox DB files.
33 It supports all versions starting from 3.0. It currently has a very
34 limited set of functions like to open a DB file, read its header and
35 read every single record.
37 %description -l pl.UTF-8
38 pxlib jest prostą i ciągle małą biblioteką do odczytu plików baz
39 danych Paradox DB. Obsługuje wszystkie wersje począwszy od 3.0.
40 Aktualnie ma bardzo ograniczony zbiór funkcji, takich jak otworzenie
41 pliku DB, odczyt nagłówka i odczyt pojedynczego rekordu.
44 Summary: Header files for pxlib
45 Summary(pl.UTF-8): Pliki nagłówkowe pxlib
46 Group: Development/Libraries
47 Requires: %{name} = %{epoch}:%{version}-%{release}
48 Requires: libgsf-devel >= 1.14.1
51 Header files for pxlib.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe pxlib.
57 Summary: Static pxlib library
58 Summary(pl.UTF-8): Statyczna biblioteka pxlib
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
65 %description static -l pl.UTF-8
66 Statyczna biblioteka pxlib.
73 %{__sed} -i -e '/RECODE_LIBDIR=/ s,/lib$,/%{_lib},' configure.ac
84 %{!?with_static_libs:--disable-static} \
89 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
94 # obsoleted by pkg-config
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpx.la
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog README doc/*.txt
108 %attr(755,root,root) %{_libdir}/libpx.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libpx.so.0
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libpx.so
114 %{_includedir}/paradox*.h
115 %{_includedir}/pxversion.h
116 %{_pkgconfigdir}/pxlib.pc
117 %{_mandir}/man3/PX_*.3*
118 %{_mandir}/man3/pxlib.3*
120 %if %{with static_libs}
122 %defattr(644,root,root,755)