Blame SPECS/nss_wrapper.spec

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