diff --git a/SPECS/nss_wrapper.spec b/SPECS/nss_wrapper.spec index e602bb6..410c77c 100644 --- a/SPECS/nss_wrapper.spec +++ b/SPECS/nss_wrapper.spec @@ -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 - 1.1.11-8 +- resolves: rhbz#2028819 - Introduce nss_wrapper-libs package to allow install + smaller footprint + * Mon Aug 09 2021 Mohan Boddu - 1.1.11-7 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688