Blame SPECS/nss_wrapper.spec

90154c
Name:           nss_wrapper
90154c
Version:        1.0.3
90154c
Release:        1%{?dist}
90154c
90154c
License:        BSD
90154c
Summary:        A wrapper for the user, group and hosts NSS API
90154c
Url:            http://cwrap.org/
90154c
90154c
Source0:        https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
90154c
90154c
BuildRequires:  cmake
90154c
BuildRequires:  libcmocka-devel
90154c
90154c
%description
90154c
There are projects which provide daemons needing to be able to create, modify
90154c
and delete Unix users. Or just switch user ids to interact with the system e.g.
90154c
a user space file server. To be able to test that you need the privilege to
90154c
modify the passwd and groups file. With nss_wrapper it is possible to define
90154c
your own passwd and groups file which will be used by software to act correctly
90154c
while under test.
90154c
90154c
If you have a client and server under test they normally use functions to
90154c
resolve network names to addresses (dns) or vice versa. The nss_wrappers allow
90154c
you to create a hosts file to setup name resolution for the addresses you use
90154c
with socket_wrapper.
90154c
90154c
To use it set the following environment variables:
90154c
90154c
LD_PRELOAD=libuid_wrapper.so
90154c
NSS_WRAPPER_PASSWD=/path/to/passwd
90154c
NSS_WRAPPER_GROUP=/path/to/group
90154c
NSS_WRAPPER_HOSTS=/path/to/host
90154c
90154c
This package doesn't have a devel package cause this project is for
90154c
development/testing.
90154c
90154c
%prep
90154c
%setup -q
90154c
90154c
%build
90154c
if test ! -e "obj"; then
90154c
    mkdir obj
90154c
fi
90154c
pushd obj
90154c
%cmake \
90154c
  -DUNIT_TESTING=ON \
90154c
  %{_builddir}/%{name}-%{version}
90154c
90154c
make %{?_smp_mflags} VERBOSE=1
90154c
popd
90154c
90154c
%install
90154c
pushd obj
90154c
make DESTDIR=%{buildroot} install
90154c
popd
90154c
90154c
%post -p /sbin/ldconfig
90154c
90154c
%postun -p /sbin/ldconfig
90154c
90154c
%check
90154c
pushd obj
90154c
make test
90154c
popd
90154c
90154c
%files
90154c
%doc AUTHORS README ChangeLog COPYING
90154c
%{_bindir}/nss_wrapper.pl
90154c
%{_libdir}/libnss_wrapper.so*
90154c
%dir %{_libdir}/cmake/nss_wrapper
90154c
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config-version.cmake
90154c
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config.cmake
90154c
%dir %{_libdir}/pkgconfig
90154c
%{_libdir}/pkgconfig/nss_wrapper.pc
90154c
%{_mandir}/man1/nss_wrapper.1*
90154c
90154c
%changelog
90154c
* Thu Sep 11 2014 - Andreas Schneider <asn@redhat.com> - 1.0.3-1
90154c
- related: #1110820
90154c
- Update to version 1.0.3.
90154c
90154c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
90154c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
90154c
90154c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
90154c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
90154c
90154c
* Wed Apr 09 2014 - Andreas Schneider <asn@redhat.com> - 1.0.2-1
90154c
- Update to version 1.0.2.
90154c
90154c
* Fri Mar 14 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-3
90154c
- resolves: #1075932 - Fix segfault in 'getent hosts'.
90154c
90154c
* Tue Feb 11 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-2
90154c
- resolves: #1060906 - Fedora package.
90154c
- Remove Group
90154c
- Remove glibc-devel build requirement
90154c
- Do not create a subpackage.
90154c
90154c
* Tue Feb 04 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-1
90154c
- Update to version 1.0.1
90154c
  * Added --libs to pkg-config.
90154c
  * Added nss_wrapper-config.cmake
90154c
  * Fixed a bug packaging the obj directory.
90154c
90154c
* Mon Feb 03 2014 - Andreas Schneider <asn@redhat.com> - 1.0.0-1
90154c
- Initial version 1.0.0