]>
Commit | Line | Data |
---|---|---|
c1272d1e JR |
1 | # |
2 | # Conditional build: | |
0462c792 | 3 | %bcond_with gssglue # build with MIT Kerberos instead of Heimdal |
c1272d1e | 4 | # |
d387e46a | 5 | Summary: Transport Independent RPC Library |
2deb102b | 6 | Summary(pl.UTF-8): Biblioteka RPC niezależnego od transportu |
d387e46a | 7 | Name: libtirpc |
2d8d009a JR |
8 | Version: 0.2.3 |
9 | Release: 1 | |
ad631ce4 | 10 | Epoch: 1 |
9e723511 | 11 | License: BSD-like |
d387e46a | 12 | Group: Libraries |
0462c792 | 13 | Source0: http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2 |
2d8d009a | 14 | # Source0-md5: b70e6c12a369a91e69fcc3b9feb23d61 |
ad631ce4 | 15 | Patch0: %{name}-link.patch |
d04808f3 | 16 | Patch1: %{name}-heimdal.patch |
a754878a | 17 | Patch2: %{name}-am.patch |
8bed9148 | 18 | URL: http://sourceforge.net/projects/libtirpc/ |
0462c792 | 19 | BuildRequires: autoconf >= 2.50 |
d387e46a | 20 | BuildRequires: automake |
0dc220ee | 21 | BuildRequires: glibc >= 6:2.14-9.1 |
0462c792 | 22 | %if %{with gssglue} |
249da81a JR |
23 | BuildRequires: libgssglue-devel >= 0.1 |
24 | %else | |
c1272d1e | 25 | BuildRequires: heimdal-devel |
c1272d1e | 26 | %endif |
d387e46a JR |
27 | BuildRequires: libtool |
28 | BuildRequires: pkgconfig | |
0462c792 | 29 | %if %{with gssglue} |
5b4787ba | 30 | Requires: libgssglue >= 0.1 |
249da81a JR |
31 | %else |
32 | Requires: heimdal-libs | |
620612a5 | 33 | %endif |
0dc220ee | 34 | Requires: glibc >= 6:2.14-9.1 |
d387e46a JR |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | This package contains SunLib's implementation of transport-independent | |
39 | RPC (TI-RPC) documentation. This library forms a piece of the base of | |
40 | Open Network Computing (ONC), and is derived directly from the Solaris | |
41 | 2.3 source. | |
42 | ||
43 | TI-RPC is an enhanced version of TS-RPC that requires the UNIX System | |
44 | V Transport Layer Interface (TLI) or an equivalent X/Open Transport | |
45 | Interface (XTI). TI-RPC is on-the-wire compatible with the TS-RPC, | |
46 | which is supported by almost 70 vendors on all major operating | |
47 | systems. TS-RPC source code (RPCSRC 4.0) remains available from | |
2deb102b JB |
48 | several Internet sites. |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | Ten pakiet zawiera implementację SunLib RPC niezależnego od transportu | |
52 | (TI-RPC). Ta biblioteka tworzy element podstawy dla ONC (Open Network | |
53 | Computing) i wywodzi się bezpośrednio ze źródeł Solarisa 2.3. | |
54 | ||
55 | TI-RPC to rozszerzona wersja TS-RPC wymagająca TLI (UNIX System V | |
56 | Transport Layer Interface). Jest kompatybilna w locie z TS-RPC, | |
57 | obsługiwanym przez prawie 70 producentów dla wszystkich znaczących | |
58 | systemów operacyjnych. Kod źródłowy TS-RPC (RPCSRC 4.0) pozostaje | |
59 | dostępny z różnych stron internetowych. | |
d387e46a JR |
60 | |
61 | %package devel | |
62 | Summary: Development files for the TI-RPC library | |
2deb102b | 63 | Summary(pl.UTF-8): Pliki programistyczne biblioteki TI-RPC |
d387e46a | 64 | Group: Development/Libraries |
f5c6e8f9 | 65 | Requires: %{name} = %{epoch}:%{version}-%{release} |
0dc220ee | 66 | Requires: glibc-devel >= 6:2.14-9.1 |
0462c792 | 67 | %if %{with gssglue} |
5b4787ba | 68 | Requires: libgssglue-devel >= 0.1 |
249da81a JR |
69 | %else |
70 | Requires: heimdal-devel | |
620612a5 | 71 | %endif |
d387e46a JR |
72 | |
73 | %description devel | |
2deb102b JB |
74 | This package includes header files necessary for developing programs |
75 | which use the TI-RPC library. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
79 | wykorzystujących bibliotekę TI-RPC. | |
d387e46a JR |
80 | |
81 | %package static | |
82 | Summary: Static TI-RPC library | |
2deb102b | 83 | Summary(pl.UTF-8): Statyczna biblioteka TI-RPC |
d387e46a | 84 | Group: Development/Libraries |
f5c6e8f9 | 85 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
d387e46a JR |
86 | |
87 | %description static | |
88 | This package includes static TI-RPC library. | |
89 | ||
2deb102b JB |
90 | %description static -l pl.UTF-8 |
91 | Ten pakiet zawiera statyczną bibliotekę TI-RPC. | |
92 | ||
d387e46a JR |
93 | %prep |
94 | %setup -q | |
ad631ce4 | 95 | %patch0 -p1 |
c3d7113b | 96 | %patch1 -p1 |
a754878a | 97 | %patch2 -p1 |
d387e46a JR |
98 | |
99 | %build | |
100 | %{__libtoolize} | |
101 | %{__aclocal} | |
102 | %{__autoconf} | |
103 | %{__autoheader} | |
104 | %{__automake} | |
d387e46a | 105 | %configure \ |
0462c792 | 106 | --enable-gss=%{?with_gssglue:libgssglue}%{!?with_gssglue:heimdal-gssapi} |
d387e46a JR |
107 | |
108 | %{__make} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},/%{_lib},%{_mandir}/man{3,5}} | |
113 | ||
114 | %{__make} install \ | |
115 | DESTDIR=$RPM_BUILD_ROOT | |
116 | ||
d04808f3 JR |
117 | %{__make} -C doc install \ |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
d66e4d1c JB |
120 | mv -f $RPM_BUILD_ROOT%{_libdir}/libtirpc.so.* $RPM_BUILD_ROOT/%{_lib} |
121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtirpc.so | |
3edc0662 | 122 | ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo lib*.so.*.*) \ |
d387e46a JR |
123 | $RPM_BUILD_ROOT%{_libdir}/libtirpc.so |
124 | ||
c672b2a3 JB |
125 | # obsoleted by pkgconfig |
126 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtirpc.la | |
127 | ||
d387e46a JR |
128 | %clean |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
2deb102b JB |
131 | %post -p /sbin/ldconfig |
132 | %postun -p /sbin/ldconfig | |
d387e46a JR |
133 | |
134 | %files | |
135 | %defattr(644,root,root,755) | |
136 | %doc AUTHORS ChangeLog NEWS README | |
137 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/netconfig | |
138 | %attr(755,root,root) /%{_lib}/libtirpc.so.*.* | |
66671254 | 139 | %attr(755,root,root) %ghost /%{_lib}/libtirpc.so.1 |
3edc0662 | 140 | %{_mandir}/man5/netconfig.5* |
d387e46a JR |
141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_libdir}/libtirpc.so | |
d387e46a | 145 | %{_includedir}/tirpc |
3edc0662 | 146 | %{_pkgconfigdir}/libtirpc.pc |
d66e4d1c JB |
147 | %{_mandir}/man3/bindresvport.3t* |
148 | %{_mandir}/man3/des_crypt.3t* | |
149 | %{_mandir}/man3/getnet*.3t* | |
150 | %{_mandir}/man3/getrpc*.3t* | |
151 | %{_mandir}/man3/rpc*.3t* | |
152 | %{_mandir}/man3/rtime.3t* | |
d387e46a JR |
153 | |
154 | %files static | |
155 | %defattr(644,root,root,755) | |
156 | %{_libdir}/libtirpc.a |