-#
-# Conditional build:
-%bcond_with krb5 # build with MIT Kerberos instead of Heimdal
-#
Summary: Transport Independent RPC Library
Summary(pl.UTF-8): Biblioteka RPC niezależnego od transportu
Name: libtirpc
-Version: 0.2.1
+Version: 1.3.1
Release: 1
Epoch: 1
-License: BSD-like
+License: BSD
Group: Libraries
-Source0: http://dl.sourceforge.net/sourceforge/libtirpc/%{name}-%{version}.tar.bz2
-# Source0-md5: d77eb15f464bf9d6e66259eaf78b2a4e
+Source0: http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2
+# Source0-md5: f222e258c129c6da2f8f9cfe7f1ed745
Patch0: %{name}-link.patch
-Patch1: %{name}-heimdal.patch
-Patch2: %{name}-XDR_GETPOS.patch
URL: http://sourceforge.net/projects/libtirpc/
-BuildRequires: autoconf
-BuildRequires: automake
-%if %{with krb5}
-BuildRequires: libgssglue-devel >= 0.1
-%else
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.11
+BuildRequires: glibc >= 6:2.14-9.1
BuildRequires: heimdal-devel
-BuildConflicts: libgssglue-devel
-%endif
BuildRequires: libtool
BuildRequires: pkgconfig
-%if %{with krb5}
-Requires: libgssglue >= 0.1
-%else
Requires: heimdal-libs
-%endif
+Requires: glibc >= 6:2.14-9.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl.UTF-8): Pliki programistyczne biblioteki TI-RPC
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
-%if %{with krb5}
-Requires: libgssglue-devel >= 0.1
-%else
+Requires: glibc-devel >= 6:2.14-9.1
Requires: heimdal-devel
-%endif
%description devel
This package includes header files necessary for developing programs
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
-%patch2 -p1
%build
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
- --enable-gss
+ --disable-silent-rules
%{__make}
%{__make} -C doc install \
DESTDIR=$RPM_BUILD_ROOT
-mv -f $RPM_BUILD_ROOT%{_libdir}/lib*.so.* $RPM_BUILD_ROOT/%{_lib}
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
-ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo lib*.so.*.*) \
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/libtirpc.so.* $RPM_BUILD_ROOT/%{_lib}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtirpc.so
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtirpc.so.*.*.*) \
$RPM_BUILD_ROOT%{_libdir}/libtirpc.so
+# obsoleted by pkgconfig
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtirpc.la
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
+%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bindresvport.blacklist
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/netconfig
-%attr(755,root,root) /%{_lib}/libtirpc.so.*.*
-%attr(755,root,root) %ghost /%{_lib}/libtirpc.so.1
+%attr(755,root,root) /%{_lib}/libtirpc.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libtirpc.so.3
%{_mandir}/man5/netconfig.5*
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libtirpc.so
-%{_libdir}/libtirpc.la
%{_includedir}/tirpc
%{_pkgconfigdir}/libtirpc.pc
-%{_mandir}/man3/*.3t*
+%{_mandir}/man3/bindresvport.3t*
+%{_mandir}/man3/des_crypt.3t*
+%{_mandir}/man3/getnet*.3t*
+%{_mandir}/man3/getrpc*.3t*
+%{_mandir}/man3/rpc*.3t*
+%{_mandir}/man3/rtime.3t*
%files static
%defattr(644,root,root,755)