3 %bcond_with gssglue # build with MIT Kerberos instead of Heimdal
5 Summary: Transport Independent RPC Library
6 Summary(pl.UTF-8): Biblioteka RPC niezależnego od transportu
13 Source0: http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2
14 # Source0-md5: b70e6c12a369a91e69fcc3b9feb23d61
15 Patch0: %{name}-link.patch
16 Patch1: %{name}-heimdal.patch
17 URL: http://sourceforge.net/projects/libtirpc/
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake
20 BuildRequires: glibc >= 6:2.14-9.1
22 BuildRequires: libgssglue-devel >= 0.1
24 BuildRequires: heimdal-devel
26 BuildRequires: libtool
27 BuildRequires: pkgconfig
29 Requires: libgssglue >= 0.1
31 Requires: heimdal-libs
33 Requires: glibc >= 6:2.14-9.1
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 This package contains SunLib's implementation of transport-independent
38 RPC (TI-RPC) documentation. This library forms a piece of the base of
39 Open Network Computing (ONC), and is derived directly from the Solaris
42 TI-RPC is an enhanced version of TS-RPC that requires the UNIX System
43 V Transport Layer Interface (TLI) or an equivalent X/Open Transport
44 Interface (XTI). TI-RPC is on-the-wire compatible with the TS-RPC,
45 which is supported by almost 70 vendors on all major operating
46 systems. TS-RPC source code (RPCSRC 4.0) remains available from
47 several Internet sites.
49 %description -l pl.UTF-8
50 Ten pakiet zawiera implementację SunLib RPC niezależnego od transportu
51 (TI-RPC). Ta biblioteka tworzy element podstawy dla ONC (Open Network
52 Computing) i wywodzi się bezpośrednio ze źródeł Solarisa 2.3.
54 TI-RPC to rozszerzona wersja TS-RPC wymagająca TLI (UNIX System V
55 Transport Layer Interface). Jest kompatybilna w locie z TS-RPC,
56 obsługiwanym przez prawie 70 producentów dla wszystkich znaczących
57 systemów operacyjnych. Kod źródłowy TS-RPC (RPCSRC 4.0) pozostaje
58 dostępny z różnych stron internetowych.
61 Summary: Development files for the TI-RPC library
62 Summary(pl.UTF-8): Pliki programistyczne biblioteki TI-RPC
63 Group: Development/Libraries
64 Requires: %{name} = %{epoch}:%{version}-%{release}
65 Requires: glibc-devel >= 6:2.14-9.1
67 Requires: libgssglue-devel >= 0.1
69 Requires: heimdal-devel
73 This package includes header files necessary for developing programs
74 which use the TI-RPC library.
76 %description devel -l pl.UTF-8
77 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
78 wykorzystujących bibliotekę TI-RPC.
81 Summary: Static TI-RPC library
82 Summary(pl.UTF-8): Statyczna biblioteka TI-RPC
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
87 This package includes static TI-RPC library.
89 %description static -l pl.UTF-8
90 Ten pakiet zawiera statyczną bibliotekę TI-RPC.
104 --enable-gss=%{?with_gssglue:libgssglue}%{!?with_gssglue:heimdal-gssapi}
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/%{_lib},%{_mandir}/man{3,5}}
113 DESTDIR=$RPM_BUILD_ROOT
115 %{__make} -C doc install \
116 DESTDIR=$RPM_BUILD_ROOT
118 mv -f $RPM_BUILD_ROOT%{_libdir}/libtirpc.so.* $RPM_BUILD_ROOT/%{_lib}
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtirpc.so
120 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo lib*.so.*.*) \
121 $RPM_BUILD_ROOT%{_libdir}/libtirpc.so
123 # obsoleted by pkgconfig
124 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtirpc.la
127 rm -rf $RPM_BUILD_ROOT
129 %post -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
133 %defattr(644,root,root,755)
134 %doc AUTHORS ChangeLog NEWS README
135 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/netconfig
136 %attr(755,root,root) /%{_lib}/libtirpc.so.*.*
137 %attr(755,root,root) %ghost /%{_lib}/libtirpc.so.1
138 %{_mandir}/man5/netconfig.5*
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libtirpc.so
144 %{_pkgconfigdir}/libtirpc.pc
145 %{_mandir}/man3/bindresvport.3t*
146 %{_mandir}/man3/des_crypt.3t*
147 %{_mandir}/man3/getnet*.3t*
148 %{_mandir}/man3/getrpc*.3t*
149 %{_mandir}/man3/rpc*.3t*
150 %{_mandir}/man3/rtime.3t*
153 %defattr(644,root,root,755)
154 %{_libdir}/libtirpc.a