Blame SPECS/nss_wrapper.spec

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