- Remove the /etc/motd.d directory to exclude its ownership from pam (#1968131)

- pam_timestamp: enable openssl hmac authentication (#1947294)
- Clean spec file: organize dependencies and move URL location

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
Iker Pedrosa 2021-09-21 10:35:14 +02:00
parent 360b2d3288
commit b025ee55c1

View File

@ -4,11 +4,12 @@
Summary: An extensible library which provides authentication for applications Summary: An extensible library which provides authentication for applications
Name: pam Name: pam
Version: 1.5.2 Version: 1.5.2
Release: 3%{?dist} Release: 4%{?dist}
# The library is BSD licensed with option to relicense as GPLv2+ # The library is BSD licensed with option to relicense as GPLv2+
# - this option is redundant as the BSD license allows that anyway. # - this option is redundant as the BSD license allows that anyway.
# pam_timestamp, pam_loginuid, and pam_console modules are GPLv2+. # pam_timestamp, pam_loginuid, and pam_console modules are GPLv2+.
License: BSD and GPLv2+ License: BSD and GPLv2+
URL: http://www.linux-pam.org/
Source0: https://github.com/linux-pam/linux-pam/releases/download/v%{version}/Linux-PAM-%{version}.tar.xz Source0: https://github.com/linux-pam/linux-pam/releases/download/v%{version}/Linux-PAM-%{version}.tar.xz
Source1: https://github.com/linux-pam/linux-pam/releases/download/v%{version}/Linux-PAM-%{version}.tar.xz.asc Source1: https://github.com/linux-pam/linux-pam/releases/download/v%{version}/Linux-PAM-%{version}.tar.xz.asc
Source2: https://releases.pagure.org/pam-redhat/pam-redhat-%{pam_redhat_version}.tar.bz2 Source2: https://releases.pagure.org/pam-redhat/pam-redhat-%{pam_redhat_version}.tar.bz2
@ -42,33 +43,43 @@ Patch5: pam-1.5.2-pam_console-fix_setgroups_not_defined.patch
%endif %endif
%global _performance_build 1 %global _performance_build 1
### Dependencies ###
Requires: libeconf >= 0.3.5
Requires: libpwquality >= 0.9.9 Requires: libpwquality >= 0.9.9
BuildRequires: make Requires: openssl >= 3.0.0
BuildRequires: autoconf >= 2.60 Requires: setup
BuildRequires: automake, libtool
BuildRequires: bison, flex, sed
BuildRequires: perl-interpreter, pkgconfig, gettext-devel
BuildRequires: libtirpc-devel, libnsl2-devel
%if %{WITH_AUDIT} %if %{WITH_AUDIT}
BuildRequires: audit-libs-devel >= 1.0.8
Requires: audit-libs >= 1.0.8 Requires: audit-libs >= 1.0.8
%endif %endif
%if %{WITH_SELINUX} %if %{WITH_SELINUX}
BuildRequires: libselinux-devel >= 1.33.2
Requires: libselinux >= 1.33.2 Requires: libselinux >= 1.33.2
%endif %endif
BuildRequires: libeconf-devel >= 0.3.5
Requires: libeconf >= 0.3.5
Requires: glibc >= 2.3.90-37
BuildRequires: libxcrypt-devel >= 4.3.3-2
BuildRequires: libdb-devel
# Following deps are necessary only to build the pam library documentation.
BuildRequires: linuxdoc-tools, elinks, libxslt
BuildRequires: docbook-style-xsl, docbook-dtds
BuildRequires: gcc
BuildRequires: systemd
URL: http://www.linux-pam.org/ ### Build Dependencies ###
BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: gcc
BuildRequires: gettext-devel
BuildRequires: libdb-devel
BuildRequires: libeconf-devel >= 0.3.5
BuildRequires: libnsl2-devel
BuildRequires: libtirpc-devel
BuildRequires: libtool
BuildRequires: libxcrypt-devel >= 4.3.3-2
BuildRequires: make
BuildRequires: openssl-devel >= 3.0.0
BuildRequires: perl-interpreter
BuildRequires: pkgconfig
BuildRequires: sed
BuildRequires: systemd
%if %{WITH_AUDIT}
BuildRequires: audit-libs-devel >= 1.0.8
%endif
%if %{WITH_SELINUX}
BuildRequires: libselinux-devel >= 1.33.2
%endif
%description %description
PAM (Pluggable Authentication Modules) is a system security tool that PAM (Pluggable Authentication Modules) is a system security tool that
@ -89,6 +100,11 @@ and modules for use with the PAM system.
%package docs %package docs
Summary: Extra documentation for PAM. Summary: Extra documentation for PAM.
Requires: pam%{?_isa} = %{version}-%{release} Requires: pam%{?_isa} = %{version}-%{release}
BuildRequires: docbook-dtds
BuildRequires: docbook-style-xsl
BuildRequires: elinks
BuildRequires: libxslt
BuildRequires: linuxdoc-tools
%description docs %description docs
PAM (Pluggable Authentication Modules) is a system security tool that PAM (Pluggable Authentication Modules) is a system security tool that
@ -128,7 +144,8 @@ autoreconf -i
--disable-audit \ --disable-audit \
%endif %endif
--disable-static \ --disable-static \
--disable-prelude --disable-prelude \
--enable-openssl
%make_build -C po update-gmo %make_build -C po update-gmo
%make_build %make_build
@ -167,7 +184,6 @@ install -m 644 %{SOURCE16} $RPM_BUILD_ROOT%{_pam_confdir}/postlogin
install -m 600 /dev/null $RPM_BUILD_ROOT%{_pam_secconfdir}/opasswd install -m 600 /dev/null $RPM_BUILD_ROOT%{_pam_secconfdir}/opasswd
install -d -m 755 $RPM_BUILD_ROOT/var/log install -d -m 755 $RPM_BUILD_ROOT/var/log
install -d -m 755 $RPM_BUILD_ROOT/var/run/faillock install -d -m 755 $RPM_BUILD_ROOT/var/run/faillock
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/motd.d
install -d -m 755 $RPM_BUILD_ROOT/usr/lib/motd.d install -d -m 755 $RPM_BUILD_ROOT/usr/lib/motd.d
install -d -m 755 $RPM_BUILD_ROOT/run/motd.d install -d -m 755 $RPM_BUILD_ROOT/run/motd.d
@ -349,7 +365,6 @@ done
%dir /var/run/sepermit %dir /var/run/sepermit
%endif %endif
%dir /var/run/faillock %dir /var/run/faillock
%dir %{_sysconfdir}/motd.d
%dir /run/motd.d %dir /run/motd.d
%dir /usr/lib/motd.d %dir /usr/lib/motd.d
%{_prefix}/lib/tmpfiles.d/pam.conf %{_prefix}/lib/tmpfiles.d/pam.conf
@ -389,6 +404,11 @@ test "$FILE" != %{_sysconfdir}/authselect/fingerprint-auth && \
exit 0 exit 0
%changelog %changelog
* Thu Sep 23 2021 Iker Pedrosa <ipedrosa@redhat.com> - 1.5.2-4
- Remove the /etc/motd.d directory to exclude its ownership from pam (#1968131)
- pam_timestamp: enable openssl hmac authentication (#1947294)
- Clean spec file: organize dependencies and move URL location
* Thu Sep 23 2021 Björn Esser <besser82@fedoraproject.org> - 1.5.2-3 * Thu Sep 23 2021 Björn Esser <besser82@fedoraproject.org> - 1.5.2-3
- Update patch for parallel build - Update patch for parallel build