From 15bc160170d03c81cdcac4bd426c53e4510a5033e0c5ec02481eef66c7eeb9b1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 8 Dec 2020 08:09:09 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=91 --- libtirpc.spec | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/libtirpc.spec b/libtirpc.spec index 624f919..1679d62 100644 --- a/libtirpc.spec +++ b/libtirpc.spec @@ -16,6 +16,7 @@ # +%define debug_package_requires libtirpc3 = %{version}-%{release} Name: libtirpc # src/crypt_client.c and tirpc/rpcsvc/crypt.x have the BSD advertising clause Version: 1.3.1 @@ -23,13 +24,11 @@ Release: 0 Summary: Transport Independent RPC Library License: BSD-3-Clause Group: Development/Libraries/C and C++ -BuildRequires: pkgconf-pkg-config -BuildRequires: pkgconfig(krb5) URL: https://sourceforge.net/projects/libtirpc/ Source: %{name}-%{version}.tar.bz2 Source1: baselibs.conf -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%define debug_package_requires libtirpc3 = %{version}-%{release} +BuildRequires: pkgconfig +BuildRequires: pkgconfig(krb5) %description The Transport Independent RPC library (TI-RPC) is a replacement for the @@ -71,12 +70,12 @@ This implementation allows the support of other transports than UDP and TCP over IPv4. %prep -%setup -q -n %name-%version +%setup -q %build sed -i -e 's|@includedir@/tirpc|@includedir@|g' libtirpc.pc.in %configure --disable-static -%make_build %{?_smp_mflags} +%make_build %install # Don't strip .symtab to allow debugging @@ -91,26 +90,22 @@ rm -v %{buildroot}%{_libdir}/%{name}.la # they are now default mv -v %{buildroot}%{_includedir}/tirpc/* %{buildroot}%{_includedir} rmdir %{buildroot}%{_includedir}/tirpc -rm -v %{buildroot}/etc/bindresvport.blacklist +rm -v %{buildroot}%{_sysconfdir}/bindresvport.blacklist %post -n libtirpc3 -p /sbin/ldconfig - %postun -n libtirpc3 -p /sbin/ldconfig %files -n libtirpc3 -%defattr(-,root,root) %license COPYING %{_libdir}/libtirpc.so.3* %files netconfig -%defattr(-,root,root) %config %{_sysconfdir}/netconfig -%{_mandir}/man5/netconfig.5.gz +%{_mandir}/man5/netconfig.5%{?ext_man} %files devel -%defattr(-,root,root) %{_libdir}/libtirpc.so -/usr/include/* +%{_includedir}/* %{_libdir}/pkgconfig/* %{_mandir}/man3/*