libtirpc/libtirpc.spec

149 lines
4.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libtirpc
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libtirpc
# src/crypt_client.c and tirpc/rpcsvc/crypt.x have the BSD advertising clause
Accepting request 541890 from home:kukuk:tirpc - 005-missing-includes.patch: add missing includes to make headers compatible to sunrpc. - Update to version 1.0.2 - 002-old-automake.patch: not needed anymore - 005-libtirpc-1.0.2-rc1.patch: dropped - 006-Remove-old-meanwhile-wrong-comment-about-FD_SETSIZE-.patch: removed, merged upstream - 007-Change-rtime-function-to-use-poll-instead-of-select.patch: removed, merged upstream - 008-Add-parameters-to-local-prototypes-to-fix-compiler-w.patch: removed, merged upstream - 009-makefd_xprt-checks-that-the-filedesriptor-is-lower-t.patch: removed, merged upstream - 010-The-goto-again-statement-was-an-left-over-from-the-p.patch: removed, merged upstream - 012-libtirpc-needs-rpcsvc-nis.h-for-compiling-but-does-n.patch: removed, merged upstream - 013-If-we-don-t-compile-in-YP-support-don-t-include-YP-h.patch: removed, merged upstream - 014-Add-des_crypt.c-and-des_impl.c-to-become-independent.patch: removed, merged upstream - 015-Fix-includes-to-compile-without-deprecated-glibc-fun.patch: removed, merged upstream - patch6_7.diff: obsolete - Replace explicit_bzero.patch with 004-replace-bzero-with-memset.patch from git - Rename libtirpc-new-path-rpcbindsock.patch to 001-new-rpcbindsock-path.patch - 003-rpc-types.patch: Add some typedefs to rpc/types.h to allow applications be compiled with -std=iso9899:1990 OBS-URL: https://build.opensuse.org/request/show/541890 OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=63
2017-11-17 10:14:30 +01:00
Version: 1.0.2
Release: 0
Summary: Transport Independent RPC Library
License: BSD-3-Clause AND GPL-2.0+
Group: Development/Libraries/C and C++
%if 0%{suse_version} >= 1300
BuildRequires: krb5-mini-devel
%else
BuildRequires: krb5-devel
%endif
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: pkg-config
Url: http://sourceforge.net/projects/libtirpc/
Source: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
Source2: COPYING.GPLv2
Patch0: 000-bindresvport_blacklist.patch
Accepting request 541890 from home:kukuk:tirpc - 005-missing-includes.patch: add missing includes to make headers compatible to sunrpc. - Update to version 1.0.2 - 002-old-automake.patch: not needed anymore - 005-libtirpc-1.0.2-rc1.patch: dropped - 006-Remove-old-meanwhile-wrong-comment-about-FD_SETSIZE-.patch: removed, merged upstream - 007-Change-rtime-function-to-use-poll-instead-of-select.patch: removed, merged upstream - 008-Add-parameters-to-local-prototypes-to-fix-compiler-w.patch: removed, merged upstream - 009-makefd_xprt-checks-that-the-filedesriptor-is-lower-t.patch: removed, merged upstream - 010-The-goto-again-statement-was-an-left-over-from-the-p.patch: removed, merged upstream - 012-libtirpc-needs-rpcsvc-nis.h-for-compiling-but-does-n.patch: removed, merged upstream - 013-If-we-don-t-compile-in-YP-support-don-t-include-YP-h.patch: removed, merged upstream - 014-Add-des_crypt.c-and-des_impl.c-to-become-independent.patch: removed, merged upstream - 015-Fix-includes-to-compile-without-deprecated-glibc-fun.patch: removed, merged upstream - patch6_7.diff: obsolete - Replace explicit_bzero.patch with 004-replace-bzero-with-memset.patch from git - Rename libtirpc-new-path-rpcbindsock.patch to 001-new-rpcbindsock-path.patch - 003-rpc-types.patch: Add some typedefs to rpc/types.h to allow applications be compiled with -std=iso9899:1990 OBS-URL: https://build.opensuse.org/request/show/541890 OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=63
2017-11-17 10:14:30 +01:00
# only needed on openSUSE >= 13.1, SLE >= 12
Patch1: 001-new-rpcbindsock-path.patch
Patch3: 003-rpc-types.patch
Patch4: 004-replace-bzero-with-memset.patch
Patch5: 005-missing-includes.patch
Accepting request 381804 from home:kukuk:NIS - Add some patches to get libtirpc compiled without needing glibc deprecated functions: - 015-Fix-includes-to-compile-without-deprecated-glibc-fun.patch - 014-Add-des_crypt.c-and-des_impl.c-to-become-independent.patch - 013-If-we-don-t-compile-in-YP-support-don-t-include-YP-h.patch - Add 012-libtirpc-needs-rpcsvc-nis.h-for-compiling-but-does-n.patch to allow bootstrapping of libtirpc without glibc sunrpc code or libnsl NIS+ code. - Add 011-Fix-typo-in-src-libtirpc.map-which-prevents-that-key.patch (fix export of key_secretkey_is_set) - Add the following patches to fix some bugs from the poll() port and an endless loop: - 006-Remove-old-meanwhile-wrong-comment-about-FD_SETSIZE-.patch - 007-Change-rtime-function-to-use-poll-instead-of-select.patch - 008-Add-parameters-to-local-prototypes-to-fix-compiler-w.patch - 009-makefd_xprt-checks-that-the-filedesriptor-is-lower-t.patch - 010-The-goto-again-statement-was-an-left-over-from-the-p.patch - Remove 004-netconfig-prefer-IPv6.patch for SLES12. - Remove libtirpc-getnetconfig-races.patch (was backport). [FATE#320393] - Drop libtirpc-xdr-header.patch (was backport) - Fix public xdr.h header - xdr_rpcvers() were broken (bsc#902439) Added: libtirpc-xdr-header.patch - Fix race conditions in getnetconfig (bsc#899576, bsc#882973) Added: libtirpc-getnetconfig-races.patch OBS-URL: https://build.opensuse.org/request/show/381804 OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=57
2016-04-04 13:47:30 +02:00
Patch11: 011-Fix-typo-in-src-libtirpc.map-which-prevents-that-key.patch
Accepting request 541890 from home:kukuk:tirpc - 005-missing-includes.patch: add missing includes to make headers compatible to sunrpc. - Update to version 1.0.2 - 002-old-automake.patch: not needed anymore - 005-libtirpc-1.0.2-rc1.patch: dropped - 006-Remove-old-meanwhile-wrong-comment-about-FD_SETSIZE-.patch: removed, merged upstream - 007-Change-rtime-function-to-use-poll-instead-of-select.patch: removed, merged upstream - 008-Add-parameters-to-local-prototypes-to-fix-compiler-w.patch: removed, merged upstream - 009-makefd_xprt-checks-that-the-filedesriptor-is-lower-t.patch: removed, merged upstream - 010-The-goto-again-statement-was-an-left-over-from-the-p.patch: removed, merged upstream - 012-libtirpc-needs-rpcsvc-nis.h-for-compiling-but-does-n.patch: removed, merged upstream - 013-If-we-don-t-compile-in-YP-support-don-t-include-YP-h.patch: removed, merged upstream - 014-Add-des_crypt.c-and-des_impl.c-to-become-independent.patch: removed, merged upstream - 015-Fix-includes-to-compile-without-deprecated-glibc-fun.patch: removed, merged upstream - patch6_7.diff: obsolete - Replace explicit_bzero.patch with 004-replace-bzero-with-memset.patch from git - Rename libtirpc-new-path-rpcbindsock.patch to 001-new-rpcbindsock-path.patch - 003-rpc-types.patch: Add some typedefs to rpc/types.h to allow applications be compiled with -std=iso9899:1990 OBS-URL: https://build.opensuse.org/request/show/541890 OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=63
2017-11-17 10:14:30 +01:00
Patch12: decls.patch
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
%patch0 -p0
Accepting request 541890 from home:kukuk:tirpc - 005-missing-includes.patch: add missing includes to make headers compatible to sunrpc. - Update to version 1.0.2 - 002-old-automake.patch: not needed anymore - 005-libtirpc-1.0.2-rc1.patch: dropped - 006-Remove-old-meanwhile-wrong-comment-about-FD_SETSIZE-.patch: removed, merged upstream - 007-Change-rtime-function-to-use-poll-instead-of-select.patch: removed, merged upstream - 008-Add-parameters-to-local-prototypes-to-fix-compiler-w.patch: removed, merged upstream - 009-makefd_xprt-checks-that-the-filedesriptor-is-lower-t.patch: removed, merged upstream - 010-The-goto-again-statement-was-an-left-over-from-the-p.patch: removed, merged upstream - 012-libtirpc-needs-rpcsvc-nis.h-for-compiling-but-does-n.patch: removed, merged upstream - 013-If-we-don-t-compile-in-YP-support-don-t-include-YP-h.patch: removed, merged upstream - 014-Add-des_crypt.c-and-des_impl.c-to-become-independent.patch: removed, merged upstream - 015-Fix-includes-to-compile-without-deprecated-glibc-fun.patch: removed, merged upstream - patch6_7.diff: obsolete - Replace explicit_bzero.patch with 004-replace-bzero-with-memset.patch from git - Rename libtirpc-new-path-rpcbindsock.patch to 001-new-rpcbindsock-path.patch - 003-rpc-types.patch: Add some typedefs to rpc/types.h to allow applications be compiled with -std=iso9899:1990 OBS-URL: https://build.opensuse.org/request/show/541890 OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=63
2017-11-17 10:14:30 +01:00
%if 0%{suse_version} >= 1310
%patch1 -p1
%endif
%patch3 -p1
%patch4 -p1
%patch5 -p1
Accepting request 381804 from home:kukuk:NIS - Add some patches to get libtirpc compiled without needing glibc deprecated functions: - 015-Fix-includes-to-compile-without-deprecated-glibc-fun.patch - 014-Add-des_crypt.c-and-des_impl.c-to-become-independent.patch - 013-If-we-don-t-compile-in-YP-support-don-t-include-YP-h.patch - Add 012-libtirpc-needs-rpcsvc-nis.h-for-compiling-but-does-n.patch to allow bootstrapping of libtirpc without glibc sunrpc code or libnsl NIS+ code. - Add 011-Fix-typo-in-src-libtirpc.map-which-prevents-that-key.patch (fix export of key_secretkey_is_set) - Add the following patches to fix some bugs from the poll() port and an endless loop: - 006-Remove-old-meanwhile-wrong-comment-about-FD_SETSIZE-.patch - 007-Change-rtime-function-to-use-poll-instead-of-select.patch - 008-Add-parameters-to-local-prototypes-to-fix-compiler-w.patch - 009-makefd_xprt-checks-that-the-filedesriptor-is-lower-t.patch - 010-The-goto-again-statement-was-an-left-over-from-the-p.patch - Remove 004-netconfig-prefer-IPv6.patch for SLES12. - Remove libtirpc-getnetconfig-races.patch (was backport). [FATE#320393] - Drop libtirpc-xdr-header.patch (was backport) - Fix public xdr.h header - xdr_rpcvers() were broken (bsc#902439) Added: libtirpc-xdr-header.patch - Fix race conditions in getnetconfig (bsc#899576, bsc#882973) Added: libtirpc-getnetconfig-races.patch OBS-URL: https://build.opensuse.org/request/show/381804 OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=57
2016-04-04 13:47:30 +02:00
%patch11 -p1
%patch12 -p1
%build
%configure --disable-static \
--with-pic \
%if 0%{suse_version} < 1200
--disable-gssapi \
%endif
--libdir=/%{_lib}
# Copy GPLv2 COPYING
cp %{SOURCE2} .
make %{?_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
%post -n libtirpc3 -p /sbin/ldconfig
%postun -n libtirpc3 -p /sbin/ldconfig
%files -n libtirpc3
%defattr(-,root,root)
%license COPYING COPYING.GPLv2
/%{_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