diff --git a/nss_wrapper.spec b/nss_wrapper.spec index 0b9d229..69fb869 100644 --- a/nss_wrapper.spec +++ b/nss_wrapper.spec @@ -1,6 +1,6 @@ Name: nss_wrapper Version: 1.1.11 -Release: 6%{?dist} +Release: 7%{?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 +* Mon Nov 15 2021 Honza Horak - 1.1.11-7 +- Introduce nss_wrapper-libs package to allow install smaller footprint + Resolves: RHBZ#2023435 + * Thu Jul 22 2021 Fedora Release Engineering - 1.1.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild