forked from pool/libtirpc
c3b2cb84b1
- Update to upstream 0.2.5 release - Add symbol versioning to fix symbol conflicts (001-symbol-versions-v2.patch), but disable until commited upstream - Adjust libtirpc-clnt_broadcast_fix.patch and rename to 002-clnt_broadcast_fix.patch - Adjust libtirpc-rpc_broadcast_misformed_replies.patch and rename to 003-rpc_broadcast_misformed_replies.patch - Rename libtirpc-getpmaphandle.patch to 004-getpmaphandle.patch - Adjust libtirpc-bindresvport_blacklist.patch and rename to 000-bindresvport_blacklist.patch - Drop libtirpc-pmap-setunset.patch, not needed anymore - Apply libtirpc-new-path-rpcbindsock.patch only on openSUSE 13.1 and later OBS-URL: https://build.opensuse.org/request/show/265252 OBS-URL: https://build.opensuse.org/package/show/Base:System/libtirpc?expand=0&rev=41
137 lines
4.2 KiB
RPMSpec
137 lines
4.2 KiB
RPMSpec
#
|
|
# spec file for package libtirpc
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products 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/
|
|
#
|
|
|
|
|
|
%define tarversion 0.2.5
|
|
|
|
Name: libtirpc
|
|
# src/crypt_client.c tirpc/spinlock.h and tirpc/rpcsvc/crypt.x have the BSD
|
|
# advertising clause
|
|
Version: 0.2.5
|
|
Release: 0
|
|
Summary: Transport Independent RPC Library
|
|
License: BSD-4-Clause
|
|
Group: System/Libraries
|
|
%if 0%{suse_version} >= 1300
|
|
BuildRequires: krb5-mini-devel
|
|
%else
|
|
BuildRequires: krb5-devel
|
|
%endif
|
|
BuildRequires: libtool
|
|
BuildRequires: pkg-config
|
|
Url: http://sourceforge.net/projects/libtirpc/
|
|
# http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{tarversion}.tar.bz2
|
|
Source: %{name}-%{tarversion}.tar.bz2
|
|
Source1: baselibs.conf
|
|
Patch0: 000-bindresvport_blacklist.patch
|
|
Patch1: 001-symbol-versions-v2.patch
|
|
Patch2: 002-clnt_broadcast_fix.patch
|
|
Patch3: 003-rpc_broadcast_misformed_replies.patch
|
|
Patch4: 004-getpmaphandle.patch
|
|
Patch35: libtirpc-clntunix_create.patch
|
|
Patch36: libtirpc-misc-segfaults.patch
|
|
# Patch37 is only needed on openSUSE >= 13.1, SLE >= 12
|
|
Patch37: libtirpc-new-path-rpcbindsock.patch
|
|
Patch38: libtirpc-taddr2uaddr-local.patch
|
|
Patch39: libtirpc-getbroadifs-crash.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%define debug_package_requires libtirpc1 = %{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 libtirpc1
|
|
Summary: Transport Independent RPC Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libtirpc1
|
|
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 devel
|
|
# src/crypt_client.c tirpc/spinlock.h and tirpc/rpcsvc/crypt.x have the BSD
|
|
# advertising clause
|
|
Summary: Transport Independent RPC Library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libtirpc1 = %{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-%tarversion
|
|
%patch0 -p0
|
|
#%patch1 -p0
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch35 -p1
|
|
%patch36 -p1
|
|
%if 0%{suse_version} >= 1310
|
|
%patch37 -p1
|
|
%endif
|
|
%patch38 -p1
|
|
%patch39 -p1
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure --disable-static \
|
|
--with-pic \
|
|
--libdir=/%{_lib} \
|
|
--enable-gss
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
# move devel so link to %{_libdir}
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
|
|
%{__rm} -v %{buildroot}/%{_lib}/%{name}.{la,so}
|
|
mv -v $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT/%{_libdir}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -n libtirpc1 -p /sbin/ldconfig
|
|
|
|
%postun -n libtirpc1 -p /sbin/ldconfig
|
|
|
|
%files -n libtirpc1
|
|
%defattr(-,root,root)
|
|
%config %{_sysconfdir}/netconfig
|
|
/%{_lib}/libtirpc.so.1*
|
|
%{_mandir}/man5/netconfig.5.gz
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libtirpc.so
|
|
%dir /usr/include/tirpc/
|
|
/usr/include/tirpc/*
|
|
/usr/%{_lib}/pkgconfig/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|