Introduce nss_wrapper-libs package to allow install smaller footprint

resolves: rhbz#2028819
This commit is contained in:
Andreas Schneider 2022-03-18 10:09:04 +01:00
parent 2de2e7fbf5
commit 8fe77e1464
2 changed files with 22 additions and 4 deletions

View File

@ -1,6 +1,6 @@
Name: nss_wrapper
Version: 1.1.11
Release: 7%{?dist}
Release: 8%{?dist}
License: BSD
Summary: A wrapper for the user, group and hosts NSS API
@ -16,6 +16,7 @@ BuildRequires: gnupg2
BuildRequires: libcmocka-devel
BuildRequires: perl-generators
Requires: %{name}-libs%{?_isa} = %version-%release
Recommends: cmake
Recommends: pkgconfig
@ -42,6 +43,13 @@ NSS_WRAPPER_HOSTS=/path/to/host
This package doesn't have a devel package cause this project is for
development/testing.
%package libs
Summary: nss_library shared library only
%description libs
The %{name}-libs package provides only the shared library.
For a minimal footprint, install just this package.
%prep
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%autosetup -p1
@ -63,17 +71,23 @@ sed -i '1 s|/usr/bin/env\ perl|/usr/bin/perl|' %{buildroot}%{_bindir}/nss_wrappe
%ctest
%files
%doc AUTHORS README.md CHANGELOG
%license LICENSE
%{_bindir}/nss_wrapper.pl
%{_libdir}/libnss_wrapper.so*
%dir %{_libdir}/cmake/nss_wrapper
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config-version.cmake
%{_libdir}/cmake/nss_wrapper/nss_wrapper-config.cmake
%{_libdir}/pkgconfig/nss_wrapper.pc
%{_mandir}/man1/nss_wrapper.1*
%files libs
%doc AUTHORS README.md CHANGELOG
%license LICENSE
%{_libdir}/libnss_wrapper.so*
%changelog
* Fri Mar 18 2022 Andreas Schneider <asn@redhat.com> - 1.1.11-8
- resolves: rhbz#2028819 - Introduce nss_wrapper-libs package to allow install
smaller footprint
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.11-7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688

4
rpminspect.yaml Normal file
View File

@ -0,0 +1,4 @@
---
badfuncs:
ignore:
- /usr/lib*/libnss_wrapper.so.*