]> git.pld-linux.org Git - packages/nss_wrapper.git/blame - nss_wrapper.spec
- updated to 1.1.15
[packages/nss_wrapper.git] / nss_wrapper.spec
CommitLineData
0e34b3fe
JB
1Summary: NSS wrapper library
2Summary(pl.UTF-8): Biblioteka obudowująca NSS
3Name: nss_wrapper
953891dc 4Version: 1.1.15
a3cd4870 5Release: 1
0e34b3fe
JB
6License: BSD
7Group: Libraries
32f8cabf 8Source0: https://www.samba.org/ftp/cwrap/%{name}-%{version}.tar.gz
953891dc 9# Source0-md5: a8ea75915ac754c1891cfab7ecf1d58e
0e34b3fe 10URL: http://cwrap.org/nss_wrapper.html
8fdf672b 11BuildRequires: cmake >= 3.5.0
0e34b3fe 12BuildRequires: rpmbuild(macros) >= 1.605
dcd635fe 13BuildRequires: sed >= 4.0
0e34b3fe
JB
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17There are projects which provide daemons needing to be able to create,
18modify and delete unix users. Or just switch user ids to interact with
19the system e.g. a user space file server. To be able to test that you
20need the privilege to modify the passwd and groups file. With
21nss_wrapper it is possible to define your own passwd and groups file
22which will be used by software to act correctly while under test.
23
24If you have a client and server under test they normally use functions
25to resolve network names to addresses (dns) or vice versa. The
26nss_wrapper allows you to create a hosts file to setup name resolution
27for the addresses you use with socket_wrapper.
28
29%description -l pl.UTF-8
30Niektóre projekty zawierają demony potrzebujące tworzyć, modyfikować
31lub usuwać użytkowników uniksowych. Albo przełączają identyfikatory
32użytkowników, aby współpracować z systemem, np. serwerem plików w
33przestrzeni użytkownika. Aby przetestować takiego demona, wymagane są
34uprawnienia do modyfikowania plików passwd i group. Przy użyciu
35pakietu nss_wrapper można definiować własne pliki passwd i group, z
36którymi może pracować oprogramowanie w trakcie testów.
37
38Przy testowaniu klienta i serwera, normalnie korzystają one z funkcji
39rozwiązujących nazwy sieciowe na adresy (DNS) i odwrotnie. Pakiet
40nss_wrapper pozwala na tworzenie pliku hosts, aby skonfigurować
41rozwiązywanie nazw dla adresów używanych wraz z pakietem
42socket_wrapper.
43
44%prep
45%setup -q
46
dcd635fe
JB
47%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' nss_wrapper.pl
48
0e34b3fe
JB
49%build
50install -d build
51cd build
52%cmake ..
53
54%{__make}
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
59%{__make} -C build install \
60 DESTDIR=$RPM_BUILD_ROOT
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post -p /sbin/ldconfig
66%postun -p /sbin/ldconfig
67
68%files
69%defattr(644,root,root,755)
32f8cabf 70%doc AUTHORS CHANGELOG LICENSE README.md TODO
0e34b3fe
JB
71%attr(755,root,root) %{_bindir}/nss_wrapper.pl
72%attr(755,root,root) %{_libdir}/libnss_wrapper.so.*.*.*
73%attr(755,root,root) %ghost %{_libdir}/libnss_wrapper.so.0
74%attr(755,root,root) %{_libdir}/libnss_wrapper.so
75%{_pkgconfigdir}/nss_wrapper.pc
6fc65926
JB
76%{_libdir}/cmake/nss_wrapper
77%{_mandir}/man1/nss_wrapper.1*
This page took 0.111911 seconds and 4 git commands to generate.