3 %bcond_with heimdal # build with Heimdal Kerberos instead of MIT
5 Summary: Transport Independent RPC Library
6 Summary(pl.UTF-8): Biblioteka RPC niezależnego od transportu
13 Source0: http://dl.sourceforge.net/sourceforge/libtirpc/%{name}-%{version}.tar.bz2
14 # Source0-md5: b3b513a8825aa227deac63ea38c64f41
15 Patch0: %{name}-link.patch
16 Patch1: %{name}-heimdal.patch
17 Patch2: %{name}-XDR_GETPOS.patch
18 URL: http://sourceforge.net/projects/libtirpc/
19 BuildRequires: autoconf
20 BuildRequires: automake
22 BuildRequires: heimdal-devel
23 BuildConflicts: libgssglue-devel
25 BuildRequires: libgssglue-devel >= 0.1
27 BuildRequires: libtool
28 BuildRequires: pkgconfig
30 Requires: heimdal-libs
32 Requires: libgssglue >= 0.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}
66 Requires: heimdal-devel
68 Requires: libgssglue-devel >= 0.1
72 This package includes header files necessary for developing programs
73 which use the TI-RPC library.
75 %description devel -l pl.UTF-8
76 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
77 wykorzystujących bibliotekę TI-RPC.
80 Summary: Static TI-RPC library
81 Summary(pl.UTF-8): Statyczna biblioteka TI-RPC
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
86 This package includes static TI-RPC library.
88 %description static -l pl.UTF-8
89 Ten pakiet zawiera statyczną bibliotekę TI-RPC.
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}/lib*.so.* $RPM_BUILD_ROOT/%{_lib}
119 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.so
120 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo lib*.so.*.*) \
121 $RPM_BUILD_ROOT%{_libdir}/libtirpc.so
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
130 %defattr(644,root,root,755)
131 %doc AUTHORS ChangeLog NEWS README
132 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/netconfig
133 %attr(755,root,root) /%{_lib}/libtirpc.so.*.*
134 %ghost %attr(755,root,root) /%{_lib}/libtirpc.so.1
135 %{_mandir}/man5/netconfig.5*
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/libtirpc.so
140 %{_libdir}/libtirpc.la
142 %{_pkgconfigdir}/libtirpc.pc
143 %{_mandir}/man3/*.3t*
146 %defattr(644,root,root,755)
147 %{_libdir}/libtirpc.a