1 Summary: NSS wrapper library
2 Summary(pl.UTF-8): Biblioteka obudowująca NSS
8 Source0: http://www.samba.org/ftp/cwrap/%{name}-%{version}.tar.gz
9 # Source0-md5: 5488434069267ff86bc479423d218bb7
10 URL: http://cwrap.org/nss_wrapper.html
11 BuildRequires: cmake >= 2.8.0
12 BuildRequires: rpmbuild(macros) >= 1.605
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 There are projects which provide daemons needing to be able to create,
17 modify and delete unix users. Or just switch user ids to interact with
18 the system e.g. a user space file server. To be able to test that you
19 need the privilege to modify the passwd and groups file. With
20 nss_wrapper it is possible to define your own passwd and groups file
21 which will be used by software to act correctly while under test.
23 If you have a client and server under test they normally use functions
24 to resolve network names to addresses (dns) or vice versa. The
25 nss_wrapper allows you to create a hosts file to setup name resolution
26 for the addresses you use with socket_wrapper.
28 %description -l pl.UTF-8
29 Niektóre projekty zawierają demony potrzebujące tworzyć, modyfikować
30 lub usuwać użytkowników uniksowych. Albo przełączają identyfikatory
31 użytkowników, aby współpracować z systemem, np. serwerem plików w
32 przestrzeni użytkownika. Aby przetestować takiego demona, wymagane są
33 uprawnienia do modyfikowania plików passwd i group. Przy użyciu
34 pakietu nss_wrapper można definiować własne pliki passwd i group, z
35 którymi może pracować oprogramowanie w trakcie testów.
37 Przy testowaniu klienta i serwera, normalnie korzystają one z funkcji
38 rozwiązujących nazwy sieciowe na adresy (DNS) i odwrotnie. Pakiet
39 nss_wrapper pozwala na tworzenie pliku hosts, aby skonfigurować
40 rozwiązywanie nazw dla adresów używanych wraz z pakietem
54 rm -rf $RPM_BUILD_ROOT
56 %{__make} -C build install \
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
62 %post -p /sbin/ldconfig
63 %postun -p /sbin/ldconfig
66 %defattr(644,root,root,755)
67 %doc AUTHORS COPYING ChangeLog README TODO
68 %attr(755,root,root) %{_bindir}/nss_wrapper.pl
69 %attr(755,root,root) %{_libdir}/libnss_wrapper.so.*.*.*
70 %attr(755,root,root) %ghost %{_libdir}/libnss_wrapper.so.0
71 %attr(755,root,root) %{_libdir}/libnss_wrapper.so
72 %{_pkgconfigdir}/nss_wrapper.pc
73 %{_libdir}/cmake/nss_wrapper
74 %{_mandir}/man1/nss_wrapper.1*