forked from pool/libtirpc
This commit is contained in:
parent
a2b81373dc
commit
15bc160170
@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define debug_package_requires libtirpc3 = %{version}-%{release}
|
||||||
Name: libtirpc
|
Name: libtirpc
|
||||||
# src/crypt_client.c and tirpc/rpcsvc/crypt.x have the BSD advertising clause
|
# src/crypt_client.c and tirpc/rpcsvc/crypt.x have the BSD advertising clause
|
||||||
Version: 1.3.1
|
Version: 1.3.1
|
||||||
@ -23,13 +24,11 @@ Release: 0
|
|||||||
Summary: Transport Independent RPC Library
|
Summary: Transport Independent RPC Library
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
BuildRequires: pkgconf-pkg-config
|
|
||||||
BuildRequires: pkgconfig(krb5)
|
|
||||||
URL: https://sourceforge.net/projects/libtirpc/
|
URL: https://sourceforge.net/projects/libtirpc/
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: pkgconfig
|
||||||
%define debug_package_requires libtirpc3 = %{version}-%{release}
|
BuildRequires: pkgconfig(krb5)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Transport Independent RPC library (TI-RPC) is a replacement for the
|
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.
|
TCP over IPv4.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %name-%version
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
sed -i -e 's|@includedir@/tirpc|@includedir@|g' libtirpc.pc.in
|
sed -i -e 's|@includedir@/tirpc|@includedir@|g' libtirpc.pc.in
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
%make_build %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Don't strip .symtab to allow debugging
|
# Don't strip .symtab to allow debugging
|
||||||
@ -91,26 +90,22 @@ rm -v %{buildroot}%{_libdir}/%{name}.la
|
|||||||
# they are now default
|
# they are now default
|
||||||
mv -v %{buildroot}%{_includedir}/tirpc/* %{buildroot}%{_includedir}
|
mv -v %{buildroot}%{_includedir}/tirpc/* %{buildroot}%{_includedir}
|
||||||
rmdir %{buildroot}%{_includedir}/tirpc
|
rmdir %{buildroot}%{_includedir}/tirpc
|
||||||
rm -v %{buildroot}/etc/bindresvport.blacklist
|
rm -v %{buildroot}%{_sysconfdir}/bindresvport.blacklist
|
||||||
|
|
||||||
%post -n libtirpc3 -p /sbin/ldconfig
|
%post -n libtirpc3 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libtirpc3 -p /sbin/ldconfig
|
%postun -n libtirpc3 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libtirpc3
|
%files -n libtirpc3
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_libdir}/libtirpc.so.3*
|
%{_libdir}/libtirpc.so.3*
|
||||||
|
|
||||||
%files netconfig
|
%files netconfig
|
||||||
%defattr(-,root,root)
|
|
||||||
%config %{_sysconfdir}/netconfig
|
%config %{_sysconfdir}/netconfig
|
||||||
%{_mandir}/man5/netconfig.5.gz
|
%{_mandir}/man5/netconfig.5%{?ext_man}
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libtirpc.so
|
%{_libdir}/libtirpc.so
|
||||||
/usr/include/*
|
%{_includedir}/*
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user