1Summary: A library to read Paradox DB files 2Name: @PACKAGE@ 3Version: @PACKAGE_VERSION@ 4Release: 1 5License: see doc/COPYING 6Group: Applications/Utils 7URL: http://%{name}.sourceforge.net/ 8Packager: Uwe Steinmann <uwe@steinmann.cx> 9Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz 10BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 11 12%description 13%{name} is a simply and still small C library to read Paradox DB files. It 14supports all versions starting from 3.0. It currently has a very limited set of 15functions like to open a DB file, read its header and read every single record. 16 17%package devel 18Summary: A library to read Paradox DB files (Development) 19Group: Development/Libraries 20Requires: %{name} = %{version} 21 22%description devel 23%{name}pxlib is a simply and still small C library to read Paradox DB files. It 24supports all versions starting from 3.0. It currently has a very limited set of 25functions like to open a DB file, read its header and read every single record. 26 27%prep 28%setup -q 29 30%build 31%configure --with-sqlite --with-gsf 32make 33 34%install 35rm -rf ${RPM_BUILD_ROOT} 36install -d -m 755 ${RPM_BUILD_ROOT} 37make DESTDIR=${RPM_BUILD_ROOT} install 38 39%clean 40rm -rf ${RPM_BUILD_ROOT} 41 42%post -p /sbin/ldconfig 43 44%postun -p /sbin/ldconfig 45 46%files 47%attr(-,root,root) %doc README AUTHORS ChangeLog COPYING INSTALL 48%attr(-,root,root) %{_libdir}/lib*.so.* 49%attr(-,root,root) %{_datadir}/locale/*/LC_MESSAGES/* 50 51%files devel 52%attr(-,root,root) %{_libdir}/lib*.so 53%attr(-,root,root) %{_libdir}/*.a 54%attr(-,root,root) %{_libdir}/*.la 55%attr(-,root,root) %{_libdir}/pkgconfig/* 56%attr(-,root,root) %{_includedir}/* 57 58%changelog 59* Sun May 15 2011 Mihai T. Lazarescu <mihai@lazarescu.org> - 0.6.3-1 60- use macros in preamble and description 61- use system default prefix 62- fixed package %version reference 63- set BuildRoot to system-defined directory 64- quiet archive expansion in %setup 65- use system %configure macro for default system setup 66- removed man pages from the %files section 67