Changes of Revision 11
[-] | Changed | pxlib.spec |
x 1
2 -Summary: A library to read Paradox DB files 3 -Name: pxlib 4 -Version: 0.6.3 5 -Release: 1 6 -License: see doc/COPYING 7 -Group: Applications/Utils 8 -Url: http://pxlib.sourceforge.net/ 9 -Source: http://prdownloads.sourceforge.net/pxlib/pxlib-%{PACKAGE_VERSION}.tar.gz 10 -BuildRoot: /var/tmp/rpm/pxlib-root 11 -Prefix: /usr 12 -Provides: libpx 13 +%define pkgname pxlib 14 +%define libname libpx 15 +%define soname %{libname}0 16 +Summary: A library to read Paradox DB files 17 +Name: %{soname} 18 +Version: 0.6.3 19 +Release: 1 20 +License: see doc/COPYING 21 +Group: Applications/Utils 22 +Url: http://pxlib.sourceforge.net/ 23 +Source: http://prdownloads.sourceforge.net/pxlib/%{pkgname}-%{version}.tar.gz 24 +BuildRoot: %{_tmppath}/%{name}-%{version}-root 25 +Prefix: /usr 26 +Provides: %{pkgname} 27 +Obsoletes: %{pkgname} 28 + 29 BuildRequires: perl-XML-Parser docbook-to-man 30 31 %if 0%{?suse_version} >= 1110 32
33 supports all versions starting from 3.0. It currently has a very limited set of 34 functions like to open a DB file, read its header and read every single record. 35 36 -%package devel 37 +%package -n %{libname}-devel 38 Summary: A library to read Paradox DB files (Development) 39 Group: Development/Libraries 40 -Requires: pxlib = %{version} 41 -Provides: libpx-devel 42 +Requires: %{soname} = %{version} 43 +Provides: %{pkgname}-devel 44 +Obsoletes: %{pkgname}-devel 45 + 46 47 -%description devel 48 +%description -n %{libname}-devel 49 pxlib is a simply and still small C library to read Paradox DB files. It 50 supports all versions starting from 3.0. It currently has a very limited set of 51 functions like to open a DB file, read its header and read every single record. 52
53 %attr(-,root,root) %{_libdir}/lib*.so.* 54 %attr(-,root,root) %{prefix}/share/locale/*/LC_MESSAGES/* 55 56 -%files devel 57 +%files -n %{pkgname}-devel 58 %attr(-,root,root) %{_libdir}/lib*.so 59 %attr(-,root,root) %{_libdir}/*.a 60 %attr(-,root,root) %{_libdir}/*.la 61 |