[nss_wrapper/epel7] Fedora package.
asn
asn at fedoraproject.org
Tue Mar 11 14:41:48 UTC 2014
commit 4d17a4eacdadd77c25b30bb2977ad8ef30377741
Author: Andreas Schneider <asn at cryptomilk.org>
Date: Tue Mar 11 15:15:55 2014 +0100
Fedora package.
resolves: #1060906
.gitignore | 1 +
nss_wrapper.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e397411 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nss_wrapper-1.0.1.tar.gz
diff --git a/nss_wrapper.spec b/nss_wrapper.spec
new file mode 100644
index 0000000..6885a79
--- /dev/null
+++ b/nss_wrapper.spec
@@ -0,0 +1,90 @@
+Name: nss_wrapper
+Version: 1.0.1
+Release: 2%{?dist}
+
+License: BSD
+Summary: A wrapper for the user, group and hosts NSS API
+Url: http://cwrap.org/
+
+Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: libcmocka-devel
+
+%description
+There are projects which provide daemons needing to be able to create, modify
+and delete Unix users. Or just switch user ids to interact with the system e.g.
+a user space file server. To be able to test that you need the privilege to
+modify the passwd and groups file. With nss_wrapper it is possible to define
+your own passwd and groups file which will be used by software to act correctly
+while under test.
+
+If you have a client and server under test they normally use functions to
+resolve network names to addresses (dns) or vice versa. The nss_wrappers allow
+you to create a hosts file to setup name resolution for the addresses you use
+with socket_wrapper.
+
+To use it set the following environment variables:
+
+LD_PRELOAD=libuid_wrapper.so
+NSS_WRAPPER_PASSWD=/path/to/passwd
+NSS_WRAPPER_GROUP=/path/to/group
+NSS_WRAPPER_HOSTS=/path/to/host
+
+This package doesn't have a devel package cause this project is for
+development/testing.
+
+%prep
+%setup -q
+
+%build
+if test ! -e "obj"; then
+ mkdir obj
+fi
+pushd obj
+%cmake \
+ -DUNIT_TESTING=ON \
+ %{_builddir}/%{name}-%{version}
+
+make %{?_smp_mflags} VERBOSE=1
+popd
+
+%install
+pushd obj
+make DESTDIR=%{buildroot} install
+popd
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%check
+pushd obj
+make test
+popd
+
+%files
+%doc AUTHORS README ChangeLog COPYING
+%{_bindir}/nss_wrapper.pl
+%{_libdir}/libnss_wrapper.so*
+%dir %{_libdir}/cmake
+%{_libdir}/cmake/nss_wrapper-config-version.cmake
+%{_libdir}/cmake/nss_wrapper-config.cmake
+%dir %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/nss_wrapper.pc
+
+%changelog
+* Tue Feb 11 2014 - Andreas Schneider <asn at redhat.com> - 1.0.1-2
+- resolves: #1060906 - Fedora package.
+- Remove Group
+- Remove glibc-devel build requirement
+- Do not create a subpackage.
+
+* Tue Feb 04 2014 - Andreas Schneider <asn at redhat.com> - 1.0.1-1
+- Update to version 1.0.1
+ * Added --libs to pkg-config.
+ * Added nss_wrapper-config.cmake
+ * Fixed a bug packaging the obj directory.
+
+* Mon Feb 03 2014 - Andreas Schneider <asn at redhat.com> - 1.0.0-1
+- Initial version 1.0.0
diff --git a/sources b/sources
index e69de29..ca9da71 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a99fb3e5673bc4796e65a2b0f31875ea nss_wrapper-1.0.1.tar.gz
More information about the scm-commits
mailing list