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