# # spec file for package libtirpc # # Copyright (c) 2022-2023 ZhuningOS # Name: libtirpc # src/crypt_client.c and tirpc/rpcsvc/crypt.x have the BSD advertising clause Version: 1.3.4 Release: 150300.3.23.1 Summary: Transport Independent RPC Library License: BSD-3-Clause Group: Development/Libraries/C and C++ BuildRequires: pkg-config BuildRequires: pkgconfig(krb5) BuildRequires: libtool BuildRequires: autoconf 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} %description The Transport Independent RPC library (TI-RPC) is a replacement for the standard SunRPC library in glibc which does not support IPv6 addresses. This implementation allows the support of other transports than UDP and TCP over IPv4. %package -n libtirpc3 Summary: Transport Independent RPC Library Group: System/Libraries Requires: libtirpc-netconfig >= %{version} %description -n libtirpc3 The Transport Independent RPC library (TI-RPC) is a replacement for the standard SunRPC library in glibc which does not support IPv6 addresses. This implementation allows the support of other transports than UDP and TCP over IPv4. %package netconfig Summary: Netconfig configuration file for TI-RPC Library Group: System/Base %description netconfig This RPM contains the netconfig configuration file and manual page for the TI-RPC Library. %package devel # src/crypt_client.c tirpc/spinlock.h and tirpc/rpcsvc/crypt.x have the BSD # advertising clause Summary: Development files for the Transport Independent RPC Library Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libtirpc3 = %{version} %description devel The Transport Independent RPC library (TI-RPC) is a replacement for the standard SunRPC library in glibc which does not support IPv6 addresses. This implementation allows the support of other transports than UDP and TCP over IPv4. %prep %setup -q -n %name-%version %autopatch -p1 %build autoreconf -fiv sed -i -e 's|${includedir}/tirpc|${includedir}|g' libtirpc.pc.in %configure --disable-static \ --libdir=/%{_lib} %make_build %{?_smp_mflags} %install # Don't strip .symtab to allow debugging export STRIP_KEEP_SYMTAB=libtirpc*.so* # NO_BRP_CHECK_ROOTFS is for SLES11 only, but does not harm for Factory export NO_BRP_CHECK_ROOTFS=true %make_install # move devel so link to _libdir mkdir -p %{buildroot}/%{_libdir} ln -sv /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so rm -v %{buildroot}/%{_lib}/%{name}.{la,so} mv -v %{buildroot}/%{_lib}/pkgconfig %{buildroot}/%{_libdir} # Move RPC headers from tirpc subdirectory into main directory, # they are now default mv -v %{buildroot}%{_includedir}/tirpc/* %{buildroot}%{_includedir} rmdir %{buildroot}%{_includedir}/tirpc rm -v %{buildroot}/etc/bindresvport.blacklist %post -n libtirpc3 -p /sbin/ldconfig %postun -n libtirpc3 -p /sbin/ldconfig %files -n libtirpc3 %defattr(-,root,root) %license COPYING /%{_lib}/libtirpc.so.3* %files netconfig %defattr(-,root,root) %config %{_sysconfdir}/netconfig %{_mandir}/man5/netconfig.5.gz %files devel %defattr(-,root,root) %{_libdir}/libtirpc.so /usr/include/* /usr/%{_lib}/pkgconfig/* %{_mandir}/man3/* %changelog