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