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