2008-04-05 04:43:51 +02:00
|
|
|
#
|
2011-02-22 13:25:15 +01:00
|
|
|
# spec file for package libtirpc
|
2008-04-05 04:43:51 +02:00
|
|
|
#
|
2020-01-09 09:35:09 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2008-04-05 04:43:51 +02:00
|
|
|
#
|
2008-09-05 21:56:33 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-03-19 21:27:35 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-04-05 04:43:51 +02:00
|
|
|
#
|
|
|
|
|
2011-12-08 03:16:17 +01:00
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
Name: libtirpc
|
2015-11-26 10:35:36 +01:00
|
|
|
# src/crypt_client.c and tirpc/rpcsvc/crypt.x have the BSD advertising clause
|
2020-12-08 09:08:09 +01:00
|
|
|
Version: 1.3.1
|
2011-11-30 14:14:20 +01:00
|
|
|
Release: 0
|
2008-04-05 04:43:51 +02:00
|
|
|
Summary: Transport Independent RPC Library
|
2018-03-15 16:26:19 +01:00
|
|
|
License: BSD-3-Clause
|
2017-10-05 17:34:15 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-12-08 09:08:09 +01:00
|
|
|
BuildRequires: pkgconf-pkg-config
|
2020-02-08 09:01:35 +01:00
|
|
|
BuildRequires: pkgconfig(krb5)
|
2020-01-09 09:35:09 +01:00
|
|
|
URL: https://sourceforge.net/projects/libtirpc/
|
2015-06-29 23:31:36 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2011-07-08 09:25:01 +02:00
|
|
|
Source1: baselibs.conf
|
2008-04-05 04:43:51 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-11-26 10:35:36 +01:00
|
|
|
%define debug_package_requires libtirpc3 = %{version}-%{release}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%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
|
2017-10-05 17:34:15 +02:00
|
|
|
TCP over IPv4.
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%package -n libtirpc3
|
2008-04-05 04:43:51 +02:00
|
|
|
Summary: Transport Independent RPC Library
|
2013-04-15 16:52:03 +02:00
|
|
|
Group: System/Libraries
|
2016-02-04 13:50:08 +01:00
|
|
|
Requires: libtirpc-netconfig >= %{version}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%description -n libtirpc3
|
2008-04-05 04:43:51 +02:00
|
|
|
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
|
2017-10-05 17:34:15 +02:00
|
|
|
TCP over IPv4.
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2016-02-04 13:50:08 +01:00
|
|
|
%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.
|
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
%package devel
|
2011-12-08 03:16:17 +01:00
|
|
|
# src/crypt_client.c tirpc/spinlock.h and tirpc/rpcsvc/crypt.x have the BSD
|
|
|
|
# advertising clause
|
2017-10-05 17:34:15 +02:00
|
|
|
Summary: Development files for the Transport Independent RPC Library
|
2008-09-05 21:56:33 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-04-15 16:52:03 +02:00
|
|
|
Requires: glibc-devel
|
2015-11-26 10:35:36 +01:00
|
|
|
Requires: libtirpc3 = %{version}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%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
|
2017-10-05 17:34:15 +02:00
|
|
|
TCP over IPv4.
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%prep
|
2015-06-29 23:31:36 +02:00
|
|
|
%setup -q -n %name-%version
|
2011-06-17 18:30:36 +02:00
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
%build
|
2018-03-15 16:26:19 +01:00
|
|
|
sed -i -e 's|@includedir@/tirpc|@includedir@|g' libtirpc.pc.in
|
2020-11-20 17:23:16 +01:00
|
|
|
%configure --disable-static
|
2020-02-08 09:01:35 +01:00
|
|
|
%make_build %{?_smp_mflags}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%install
|
2015-05-07 21:52:27 +02:00
|
|
|
# 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
|
2017-10-05 17:34:15 +02:00
|
|
|
%make_install
|
2015-11-26 10:35:36 +01:00
|
|
|
# move devel so link to _libdir
|
2017-10-05 17:34:15 +02:00
|
|
|
mkdir -p %{buildroot}/%{_libdir}
|
2020-11-20 17:23:16 +01:00
|
|
|
rm -v %{buildroot}%{_libdir}/%{name}.la
|
2018-01-23 12:08:20 +01:00
|
|
|
# Move RPC headers from tirpc subdirectory into main directory,
|
|
|
|
# they are now default
|
|
|
|
mv -v %{buildroot}%{_includedir}/tirpc/* %{buildroot}%{_includedir}
|
|
|
|
rmdir %{buildroot}%{_includedir}/tirpc
|
2019-10-28 11:03:38 +01:00
|
|
|
rm -v %{buildroot}/etc/bindresvport.blacklist
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%post -n libtirpc3 -p /sbin/ldconfig
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%postun -n libtirpc3 -p /sbin/ldconfig
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%files -n libtirpc3
|
2008-04-05 04:43:51 +02:00
|
|
|
%defattr(-,root,root)
|
2018-03-15 16:26:19 +01:00
|
|
|
%license COPYING
|
2020-11-20 17:23:16 +01:00
|
|
|
%{_libdir}/libtirpc.so.3*
|
2016-02-04 13:50:08 +01:00
|
|
|
|
|
|
|
%files netconfig
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config %{_sysconfdir}/netconfig
|
2008-04-05 04:43:51 +02:00
|
|
|
%{_mandir}/man5/netconfig.5.gz
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libtirpc.so
|
2018-01-23 12:08:20 +01:00
|
|
|
/usr/include/*
|
2020-11-20 17:23:16 +01:00
|
|
|
%{_libdir}/pkgconfig/*
|
2008-04-05 04:43:51 +02:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|