Summary: Transport Independent RPC Library
Summary(pl.UTF-8): Biblioteka RPC niezależnego od transportu
Name: libtirpc
-Version: 0.1.10
-Release: 3
+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: 4192ad1c683abb7eb2ca77d5fd64e54b
+Source0: http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2
+# Source0-md5: f222e258c129c6da2f8f9cfe7f1ed745
Patch0: %{name}-link.patch
URL: http://sourceforge.net/projects/libtirpc/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libgssglue-devel >= 0.1
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.11
+BuildRequires: glibc >= 6:2.14-9.1
+BuildRequires: heimdal-devel
BuildRequires: libtool
BuildRequires: pkgconfig
-Requires: libgssglue >= 0.1
+Requires: heimdal-libs
+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}
-Requires: libgssglue-devel >= 0.1
+Requires: glibc-devel >= 6:2.14-9.1
+Requires: heimdal-devel
%description devel
This package includes header files necessary for developing programs
%build
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
- --enable-gss
+ --disable-silent-rules
%{__make}
%{__make} 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.*.*)` \
+%{__make} -C doc install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__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.*.*
-%ghost %attr(755,root,root) /%{_lib}/libtirpc.so.?
-%{_mandir}/man5/*.5*
+%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}/*.pc
-%{_mandir}/man3/*.3*
+%{_pkgconfigdir}/libtirpc.pc
+%{_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)