%define major 3 %define libname %mklibname tirpc %{major} %define develname %mklibname tirpc -d Summary: Transport Independent RPC Library Name: libtirpc Version: 1.3.4 Release: %mkrel 2 License: GPLv2 Group: System/Libraries URL: https://sourceforge.net/projects/libtirpc Source0: https://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2 BuildRequires: pkgconfig BuildRequires: pkgconfig(krb5) %description This package contains SunLib's implementation of transport-independent RPC (TI-RPC) documentation. This library forms a piece of the base of Open Network Computing (ONC), and is derived directly from the Solaris 2.3 source. TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface (XTI). TI-RPC is on-the-wire compatible with the TS-RPC, which is supported by almost 70 vendors on all major operating systems. TS-RPC source code (RPCSRC 4.0) remains available from several internet sites. %package -n %{libname} Summary: Transport Independent RPC Library Group: System/Libraries Requires: %{name} %description -n %{libname} This package contains SunLib's implementation of transport-independent RPC (TI-RPC) documentation. This library forms a piece of the base of Open Network Computing (ONC), and is derived directly from the Solaris 2.3 source. TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface (XTI). TI-RPC is on-the-wire compatible with the TS-RPC, which is supported by almost 70 vendors on all major operating systems. TS-RPC source code (RPCSRC 4.0) remains available from several internet sites. %package -n %{develname} Summary: Development files for the libtirpc library Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: tirpc-devel = %{version}-%{release} Provides: libtirpc-devel = %{version}-%{release} %description -n %{develname} This package contains SunLib's implementation of transport-independent RPC (TI-RPC) documentation. This library forms a piece of the base of Open Network Computing (ONC), and is derived directly from the Solaris 2.3 source. TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface (XTI). TI-RPC is on-the-wire compatible with the TS-RPC, which is supported by almost 70 vendors on all major operating systems. TS-RPC source code (RPCSRC 4.0) remains available from several internet sites. This package includes header files and libraries necessary for developing programs which use the tirpc library. %prep %autosetup -p1 %build export CFLAGS="%{optflags} -fPIC" %configure --disable-static %make_build all %install %make_install install -m 755 -d %{buildroot}%{_sysconfdir} install -m 644 doc/netconfig %{buildroot}%{_sysconfdir}/netconfig # remove the .la file, it makes libtool reorder args when linking nfs-utils: # https://lists.gnu.org/archive/html/libtool/2010-03/msg00023.html find %{buildroot} -name '*.la' -delete %files %doc AUTHORS ChangeLog NEWS README %config(noreplace) %{_sysconfdir}/netconfig %config(noreplace) %{_sysconfdir}/bindresvport.blacklist %files -n %{libname} %doc AUTHORS ChangeLog NEWS README %{_libdir}/*.so.%{major}{,.*} %files -n %{develname} %{_libdir}/*.so %{_libdir}/pkgconfig/libtirpc.pc %{_includedir}/tirpc/ %{_mandir}/man3/* %{_mandir}/man5/*