SHA256
1
0
forked from pool/libtirpc
libtirpc/libtirpc.spec

131 lines
3.9 KiB
RPMSpec

#
# spec file for package libtirpc (Version 0.2.1_git201005272057)
#
# Copyright (c) 2010 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/
#
# norootforbuild
BuildRequires: libgssglue-devel pkg-config
Name: libtirpc
License: Other uncritical OpenSource License ; Sun Industry Standards Source License 1.0
Group: System/Libraries
AutoReqProv: on
Version: 0.2.1_git201005272057
Release: 2
Summary: Transport Independent RPC Library
Url: http://sourceforge.net/projects/libtirpc/
Source: %{name}-%{version}.tar.bz2
Patch21: libtirpc-clnt_broadcast_fix.patch
Patch22: libtirpc-rpc_broadcast_misformed_replies.patch
Patch31: libtirpc-getpmaphandle.patch
Patch32: libtirpc-pmap-setunset.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
Authors:
--------
Gilles Quillard <gilles.quillard@bull.net>
Antoine Fraticelli <antoine.fraticelli@bull.net>
%package -n libtirpc1
License: Other uncritical OpenSource License ; Sun Industry Standards Source License 1.0
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
Authors:
--------
Gilles Quillard <gilles.quillard@bull.net>
Antoine Fraticelli <antoine.fraticelli@bull.net>
%package devel
License: Other uncritical OpenSource License ; Sun Industry Standards Source License 1.0
Summary: Transport Independent RPC Library
Group: Development/Libraries/C and C++
Requires: libtirpc1 = %{version} glibc-devel
%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
Authors:
--------
Gilles Quillard <gilles.quillard@bull.net>
Antoine Fraticelli <antoine.fraticelli@bull.net>
%prep
%setup -q
%patch21 -p1
%patch22 -p1
%patch31 -p1
%patch32 -p1
%build
mkdir m4 #bug
autoreconf -fiv
%configure --disable-static --with-pic --libdir=/%{_lib} --enable-gss
%{__make} %{?jobs:-j%jobs}
%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