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