Blame SPECS/nss_wrapper.spec

255a6a
Name:           nss_wrapper
255a6a
Version:        1.1.13
255a6a
Release:        1%{?dist}
255a6a
255a6a
License:        BSD
255a6a
Summary:        A wrapper for the user, group and hosts NSS API
255a6a
Url:            https://cwrap.org/
255a6a
255a6a
Source0:        https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
255a6a
Source1:        https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc
255a6a
Source2:        nss_wrapper.keyring
255a6a
255a6a
BuildRequires:  cmake
255a6a
BuildRequires:  gcc
255a6a
BuildRequires:  gnupg2
255a6a
BuildRequires:  libcmocka-devel
255a6a
BuildRequires:  perl-generators
255a6a
255a6a
Requires:       %{name}-libs%{?_isa} > 1.1.5
255a6a
Recommends:     cmake
255a6a
Recommends:     pkgconfig
255a6a
255a6a
%description
255a6a
There are projects which provide daemons needing to be able to create, modify
255a6a
and delete Unix users. Or just switch user ids to interact with the system e.g.
255a6a
a user space file server. To be able to test that you need the privilege to
255a6a
modify the passwd and groups file. With nss_wrapper it is possible to define
255a6a
your own passwd and groups file which will be used by software to act correctly
255a6a
while under test.
255a6a
255a6a
If you have a client and server under test they normally use functions to
255a6a
resolve network names to addresses (dns) or vice versa. The nss_wrappers allow
255a6a
you to create a hosts file to setup name resolution for the addresses you use
255a6a
with socket_wrapper.
255a6a
255a6a
To use it set the following environment variables:
255a6a
255a6a
LD_PRELOAD=libuid_wrapper.so
255a6a
NSS_WRAPPER_PASSWD=/path/to/passwd
255a6a
NSS_WRAPPER_GROUP=/path/to/group
255a6a
NSS_WRAPPER_HOSTS=/path/to/host
255a6a
255a6a
This package doesn't have a devel package cause this project is for
255a6a
development/testing.
255a6a
255a6a
%package libs
255a6a
Summary: nss_library shared library only
255a6a
Conflicts: nss_wrapper <= 1.1.5
255a6a
255a6a
%description libs
255a6a
The %{name}-libs package provides only the shared library.
255a6a
For a minimal footprint, install just this package.
255a6a
255a6a
%prep
255a6a
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
255a6a
%autosetup -p1
255a6a
255a6a
%build
255a6a
mkdir -p build
255a6a
pushd build
255a6a
%cmake \
255a6a
  -DUNIT_TESTING=ON \
255a6a
  %{_builddir}/%{name}-%{version}
255a6a
255a6a
%cmake_build
255a6a
popd
255a6a
255a6a
%install
255a6a
pushd build
255a6a
%cmake_install
255a6a
255a6a
sed -i '1 s|/usr/bin/env\ perl|/usr/bin/perl|' %{buildroot}%{_bindir}/nss_wrapper.pl
255a6a
popd
255a6a
255a6a
%ldconfig_scriptlets
255a6a
255a6a
%check
255a6a
pushd build
255a6a
%ctest
255a6a
popd
255a6a
255a6a
%files
255a6a
%{_bindir}/nss_wrapper.pl
255a6a
%dir %{_libdir}/cmake/nss_wrapper
255a6a
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config-version.cmake
255a6a
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config.cmake
255a6a
%{_libdir}/pkgconfig/nss_wrapper.pc
255a6a
%{_mandir}/man1/nss_wrapper.1*
255a6a
255a6a
%files libs
255a6a
%doc AUTHORS README.md CHANGELOG
255a6a
%license LICENSE
255a6a
%{_libdir}/libnss_wrapper.so*
255a6a
255a6a
%changelog
255a6a
* Wed Nov 09 2022 Andreas Schneider <asn@redhat.com> - 1.1.3-1
255a6a
- related: rhbz#2139665 - Rebase to version 1.1.13
255a6a
255a6a
* Thu Nov 03 2022 Andreas Schneider <asn@redhat.com> - 1.1.12-5
255a6a
- related: rhbz#2124635 - Fix dependency to nss_wrapper-libs
255a6a
255a6a
* Thu Nov 03 2022 Andreas Schneider <asn@redhat.com> - 1.1.12-1
255a6a
- resolves: rhbz#2139665 - Rebase to version 1.1.12
255a6a
- resolves: rhbz#2124635 - Reduce dependencies of the package
255a6a
255a6a
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-3
255a6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
255a6a
255a6a
* Thu Dec 13 2018 Andreas Schneider <asn@redhat.com> - 1.1.5-1
255a6a
- resolves: #1340724 - Use Recommends for cmake and pkgconfig
255a6a
255a6a
* Fri Nov 02 2018 Andreas Schneider <asn@redhat.com> - 1.1.5-1
255a6a
- Update to version 1.1.5
255a6a
255a6a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-5
255a6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
255a6a
255a6a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-4
255a6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
255a6a
255a6a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
255a6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
255a6a
255a6a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
255a6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
255a6a
255a6a
* Wed Mar 23 2016 Andreas Schneider <asn@redhat.com> - 1.1.3-1
255a6a
- Update to version 1.1.3
255a6a
  * Added support for BSD 'struct passwd' members
255a6a
  * Replaced strcpy() with snprintf()
255a6a
  * Fixed segfault while reloading hosts file
255a6a
  * Fixed issue where are not fault tolerant if an alias has already
255a6a
    been added
255a6a
  * Fixed nss_wrapper build on Solaris
255a6a
255a6a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
255a6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
255a6a
255a6a
* Fri Nov 20 2015 Andreas Schneider <asn@redhat.com> - 1.1.0-1
255a6a
- Update to version 1.1.0
255a6a
  * Added support for initgroups()
255a6a
  * Added support for shadow files (getspnam(), etc.)
255a6a
  * Improved support for multi address handling in getaddrinfo()
255a6a
  * Improved file parser
255a6a
  * Fixed compilation on machines without IPv4 support
255a6a
  * Fixed service string sanity check in getaddrinfo() (bso #11501)
255a6a
  * Fixed AI_NUMERICHOST handling in getaddrinfo() (bso #11477)
255a6a
255a6a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
255a6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
255a6a
255a6a
* Mon Dec 15 2014 Michael Adam <madam@redhat.com> - 1.0.3-2
255a6a
- Fix format of changelog entries.
255a6a
- Require cmake.
255a6a
- Don't own _libdir/pkgconfig, and require pkgconfig instead.
255a6a
255a6a
* Thu Sep 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.3-1
255a6a
- Update to version 1.0.3.
255a6a
255a6a
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
255a6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
255a6a
255a6a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
255a6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
255a6a
255a6a
* Wed Apr 09 2014 Andreas Schneider <asn@redhat.com> - 1.0.2-1
255a6a
- Update to version 1.0.2.
255a6a
255a6a
* Fri Mar 14 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-3
255a6a
- resolves: #1075932 - Fix segfault in 'getent hosts'.
255a6a
255a6a
* Tue Feb 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-2
255a6a
- resolves: #1060906 - Fedora package.
255a6a
- Remove Group
255a6a
- Remove glibc-devel build requirement
255a6a
- Do not create a subpackage.
255a6a
255a6a
* Tue Feb 04 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-1
255a6a
- Update to version 1.0.1
255a6a
  * Added --libs to pkg-config.
255a6a
  * Added nss_wrapper-config.cmake
255a6a
  * Fixed a bug packaging the obj directory.
255a6a
255a6a
* Mon Feb 03 2014 Andreas Schneider <asn@redhat.com> - 1.0.0-1
255a6a
- Initial version 1.0.0