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