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