3 %bcond_without static_libs # static library
5 Summary: Library containing NIS functions using TI-RPC (IPv6 enabled)
6 Summary(pl.UTF-8): Biblioteka zawierająca funkcje NIS wykorzystujące TI-RPC (z obsługą IPv6)
12 #Source0Download: https://github.com/thkukuk/libnsl/releases
13 Source0: https://github.com/thkukuk/libnsl/releases/download/v%{version}/%{name}-%{version}.tar.xz
14 # Source0-md5: 9214f674bd0c2bcfdd6c1da0cadb061f
15 URL: https://github.com/thkukuk/libnsl
16 BuildRequires: gettext-tools >= 0.19.2
17 BuildRequires: libtirpc-devel >= 1.0.1
18 BuildRequires: pkgconfig
19 BuildRequires: tar >= 1:1.22
21 Requires: libtirpc >= 1.0.1
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This package contains the libnsl library. This library contains the
26 public client interface for NIS(YP) and NIS+.
28 This code was formerly part of glibc, but is now standalone to be able
29 to link against TI-RPC for IPv6 support.
31 The NIS(YP) functions are still maintained, the NIS+ part is
32 deprecated and should not be used anymore.
34 %description -l pl.UTF-8
35 Ten pakiet zawiera bibliotekę libnsl. Zawiera ona publiczny interfejs
36 klienta dla protokołów NIS(YP) oraz NIS+.
38 Kod wcześniej był częścią glibc, ale obecnie jest samodzielny, aby móc
39 korzystać z TI-RPC na potrzeby obsługi IPv6.
41 Funkcje NIS(YP) są nadal utrzymywane, natomiast część NIS+ jest
42 przestarzała i nie powinna być już używana.
45 Summary: Header files for libnsl library
46 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnsl
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
49 # libnsl used to be part of glibc
50 Requires: glibc-devel >= 6:2.32
51 Requires: libtirpc-devel >= 1.0.1
54 Header files for libnsl library.
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki libnsl.
60 Summary: Static libnsl library
61 Summary(pl.UTF-8): Statyczna biblioteka libnsl
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 Static libnsl library.
68 %description static -l pl.UTF-8
69 Statyczna biblioteka libnsl.
76 %{!?with_static_libs:--disable-static}
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT/%{_lib}
84 DESTDIR=$RPM_BUILD_ROOT
86 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libnsl.so.* $RPM_BUILD_ROOT/%{_lib}
87 ln -snf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libnsl.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libnsl.so
89 # obsoleted by pkg-config
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnsl.la
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %defattr(644,root,root,755)
101 %attr(755,root,root) /%{_lib}/libnsl.so.*.*.*
102 %attr(755,root,root) %ghost /%{_lib}/libnsl.so.2
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libnsl.so
107 %{_includedir}/rpcsvc/nis.h
108 %{_includedir}/rpcsvc/nis_callback.h
109 %{_includedir}/rpcsvc/nis_tags.h
110 %{_includedir}/rpcsvc/nislib.h
111 %{_includedir}/rpcsvc/yp.h
112 %{_includedir}/rpcsvc/yp_prot.h
113 %{_includedir}/rpcsvc/ypclnt.h
114 %{_includedir}/rpcsvc/yppasswd.h
115 %{_includedir}/rpcsvc/ypupd.h
116 %{_includedir}/rpcsvc/nis.x
117 %{_includedir}/rpcsvc/nis_callback.x
118 %{_includedir}/rpcsvc/nis_object.x
119 %{_includedir}/rpcsvc/yp.x
120 %{_includedir}/rpcsvc/yppasswd.x
121 %{_pkgconfigdir}/libnsl.pc
123 %if %{with static_libs}
125 %defattr(644,root,root,755)