From f769973015281db049fe4b0e10bb1ab6ba8658fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Thu, 17 Feb 2022 20:24:27 +0100 Subject: [PATCH] Split shared libraries into pam-libs package (#2055572) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Esser --- pam.spec | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/pam.spec b/pam.spec index 42c4ed1..1c9a398 100644 --- a/pam.spec +++ b/pam.spec @@ -4,7 +4,7 @@ Summary: An extensible library which provides authentication for applications Name: pam Version: 1.5.2 -Release: 10%{?dist} +Release: 11%{?dist} # The library is BSD licensed with option to relicense as GPLv2+ # - this option is redundant as the BSD license allows that anyway. # pam_timestamp, pam_loginuid, and pam_console modules are GPLv2+. @@ -32,6 +32,7 @@ Patch3: pam-1.3.0-unix-nomsg.patch Requires: libpwquality%{?_isa} Requires: setup Requires: authselect >= 1.3 +Requires: pam-libs%{?_isa} = %{version}-%{release} ### Build Dependencies ### BuildRequires: audit-libs-devel @@ -64,7 +65,7 @@ having to recompile programs that handle authentication. %package devel Summary: Files needed for developing PAM-aware applications and modules for PAM -Requires: pam%{?_isa} = %{version}-%{release} +Requires: pam-libs%{?_isa} = %{version}-%{release} %description devel PAM (Pluggable Authentication Modules) is a system security tool that @@ -92,6 +93,15 @@ having to recompile programs that handle authentication. The pam-doc contains extra documentation for PAM. Currently, this includes additional documentation in txt and html format. +%package libs +Summary: Shared libraries of the PAM package + +%description libs +PAM (Pluggable Authentication Modules) is a system security tool that +allows system administrators to set authentication policy without +having to recompile programs that handle authentication. The pam-libs +contains the shared libraries for PAM. + %prep %setup -q -n Linux-PAM-%{version} -a 2 perl -pi -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" build-aux/config.sub @@ -235,9 +245,6 @@ done %config(noreplace) %{_pam_confdir}/other %config(noreplace) %{_pam_confdir}/config-util %{_rpmconfigdir}/macros.d/macros.%{name} -%{_pam_libdir}/libpam.so.%{so_ver}* -%{_pam_libdir}/libpamc.so.%{so_ver}* -%{_pam_libdir}/libpam_misc.so.%{so_ver}* %{_sbindir}/pam_console_apply %{_sbindir}/pam_namespace_helper %{_sbindir}/faillock @@ -341,7 +348,17 @@ done %files doc %doc %{_pkgdocdir} +%files libs +%license Copyright +%license gpl-2.0.txt +%{_pam_libdir}/libpam.so.%{so_ver}* +%{_pam_libdir}/libpamc.so.%{so_ver}* +%{_pam_libdir}/libpam_misc.so.%{so_ver}* + %changelog +* Thu Feb 17 2022 Björn Esser - 1.5.2-11 +- Split shared libraries into pam-libs package (#2055572) + * Thu Jan 20 2022 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild