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
|
|
|
#
|
2013-04-15 16:52:03 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-08 03:16:17 +01:00
|
|
|
|
2013-08-26 14:00:59 +02:00
|
|
|
%define tarversion 0.2.4-rc2
|
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
Name: libtirpc
|
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
|
2013-08-26 14:00:59 +02:00
|
|
|
Version: 0.2.3
|
2011-11-30 14:14:20 +01:00
|
|
|
Release: 0
|
2008-04-05 04:43:51 +02:00
|
|
|
Summary: Transport Independent RPC Library
|
2013-04-15 16:52:03 +02:00
|
|
|
License: BSD-4-Clause
|
|
|
|
Group: System/Libraries
|
2013-11-28 09:51:32 +01:00
|
|
|
BuildRequires: libgssglue-devel
|
2011-12-03 10:07:28 +01:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2009-12-16 10:47:42 +01:00
|
|
|
Url: http://sourceforge.net/projects/libtirpc/
|
2013-10-01 09:27:04 +02:00
|
|
|
# http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{tarversion}.tar.bz2
|
|
|
|
Source: %{name}-%{tarversion}.tar.bz2
|
2011-07-08 09:25:01 +02:00
|
|
|
Source1: baselibs.conf
|
2008-11-18 17:28:47 +01:00
|
|
|
Patch21: libtirpc-clnt_broadcast_fix.patch
|
|
|
|
Patch22: libtirpc-rpc_broadcast_misformed_replies.patch
|
2010-09-18 00:53:13 +02:00
|
|
|
Patch31: libtirpc-getpmaphandle.patch
|
|
|
|
Patch32: libtirpc-pmap-setunset.patch
|
2011-02-22 06:08:58 +01:00
|
|
|
Patch34: libtirpc-bindresvport_blacklist.patch
|
2008-04-05 04:43:51 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-10-23 01:25:05 +02:00
|
|
|
%define debug_package_requires libtirpc1 = %{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
|
|
|
|
TCP over IPv4
|
|
|
|
|
|
|
|
%package -n libtirpc1
|
|
|
|
Summary: Transport Independent RPC Library
|
2013-04-15 16:52:03 +02:00
|
|
|
Group: System/Libraries
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%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
|
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
|
2008-04-05 04:43:51 +02:00
|
|
|
Summary: 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
|
|
|
|
Requires: libtirpc1 = %{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
|
|
|
|
TCP over IPv4
|
|
|
|
|
|
|
|
%prep
|
2013-08-26 14:00:59 +02:00
|
|
|
%setup -q -n %name-%tarversion
|
2008-11-18 17:28:47 +01:00
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
2010-09-18 00:53:13 +02:00
|
|
|
%patch31 -p1
|
|
|
|
%patch32 -p1
|
2011-02-22 06:08:58 +01:00
|
|
|
%patch34 -p1
|
2011-06-17 18:30:36 +02:00
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
%build
|
2010-07-23 21:42:09 +02:00
|
|
|
autoreconf -fiv
|
2013-08-26 14:00:59 +02:00
|
|
|
%configure --disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--libdir=/%{_lib} \
|
2013-11-28 09:51:32 +01:00
|
|
|
--enable-gss \
|
|
|
|
--with-gssglue
|
2010-11-01 09:28:04 +01:00
|
|
|
%{__make} %{?_smp_mflags}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
# move devel so link to %{_libdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
2009-03-17 20:15:01 +01:00
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
|
2010-07-23 21:42:09 +02:00
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/%{name}.{la,so}
|
|
|
|
mv -v $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT/%{_libdir}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-03-17 20:15:01 +01:00
|
|
|
%post -n libtirpc1 -p /sbin/ldconfig
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2009-03-17 20:15:01 +01:00
|
|
|
%postun -n libtirpc1 -p /sbin/ldconfig
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%files -n libtirpc1
|
|
|
|
%defattr(-,root,root)
|
2008-09-05 21:56:33 +02:00
|
|
|
%config %{_sysconfdir}/netconfig
|
2008-04-05 04:43:51 +02:00
|
|
|
/%{_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
|