yazpp-config: Use exec_prefix, libdir, includedir
[yazpp-moved-to-github.git] / yazpp.spec.in
index 10033a0..c38812e 100644 (file)
@@ -1,15 +1,15 @@
 Summary: YAZ++ package (main)
 Name: yazpp
 Version: @VERSION@
-Release: 1
+Release: 2
 License: BSD
 Group: Applications/Internet
 Vendor: Index Data ApS <info@indexdata.dk>
 Source: yazpp-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: pkgconfig libyaz4-devel
+BuildRequires: pkgconfig, libyaz4-devel >= 4.1.0
 Packager: Adam Dickmeiss <adam@indexdata.dk>
-URL: http://www.indexdata.dk/yazplusplus/
+URL: http://www.indexdata.com/yazplusplus
 
 %description
 YAZ++ package.
@@ -17,7 +17,7 @@ YAZ++ package.
 %package -n libyazpp4
 Summary: YAZ++ and ZOOM library
 Group: Libraries
-Requires: libyaz4
+Requires: libyaz4 >= 4.1.0
 
 %description -n libyazpp4
 Libraries for the YAZ++ package.
@@ -25,7 +25,7 @@ Libraries for the YAZ++ package.
 %package -n libyazpp4-devel
 Summary: Z39.50 Library - development package
 Group: Development/Libraries
-Requires: libyazpp4 = %{version} libyaz4-devel
+Requires: libyazpp4 = %{version}, libyaz4-devel
 
 %description -n libyazpp4-devel
 Development libraries and include files for the YAZ++ package.
@@ -44,10 +44,14 @@ make CFLAGS="$RPM_OPT_FLAGS"
 rm -fr ${RPM_BUILD_ROOT}
 make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \
        libdir=${RPM_BUILD_ROOT}/%{_libdir} install
+rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
 
 %clean
 rm -fr ${RPM_BUILD_ROOT}
 
+%post -n libyazpp4 -p /sbin/ldconfig 
+%postun -n libyazpp4 -p /sbin/ldconfig 
+
 %files -n libyazpp4
 %doc README LICENSE NEWS
 %defattr(-,root,root)
@@ -59,8 +63,7 @@ rm -fr ${RPM_BUILD_ROOT}
 %{_includedir}/yazpp
 %{_libdir}/*.so
 %{_libdir}/*.a
-%{_libdir}/*.la
 %{_datadir}/aclocal/yazpp.m4
-%{_mandir}/man8/yazpp-config.*
+%{_mandir}/man?/yazpp-config.*
 %{_datadir}/doc/yazpp