OBS-URL: https://build.opensuse.org/request/show/927755 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam_userpass?expand=0&rev=11
70 lines
2.4 KiB
RPMSpec
70 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package pam_userpass
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: pam_userpass
|
|
Version: 1.0.2
|
|
Release: 0
|
|
Summary: Uses PAM Binary Prompts to Ask Applications for Username/Password
|
|
License: ISC
|
|
URL: https://www.openwall.com/pam/
|
|
Source0: https://www.openwall.com/pam/modules/pam_userpass/pam_userpass-%{version}.tar.gz
|
|
Source1: baselibs.conf
|
|
Source50: dlopen.sh
|
|
Patch0: pam_userpass-1.0.diff
|
|
BuildRequires: pam-devel
|
|
Requires: pam
|
|
Provides: pam-modules:%{_pam_moduledir}/pam_userpass.so
|
|
|
|
%description
|
|
PAM (Pluggable Authentication Modules) is a system security tool that
|
|
allows system administrators to set authentication policies without
|
|
having to recompile programs that do authentication.
|
|
|
|
pam_userpass uses PAM binary prompts to ask the application for the
|
|
username and password.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
EXTRA_CFLAGS="-fno-strict-aliasing -Iinclude"
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} $EXTRA_CFLAGS -fPIC -DHAVE_SHADOW -DLINUX_PAM"
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} SHARED_LIBDIR=/"%{_lib}" DEVEL_LIBDIR="%{_libdir}" SECUREDIR="%{_pam_moduledir}" install
|
|
# Remove stuff we don't wish to have now. Note that "make" seems to install library files in /usr/lib!
|
|
rm -rf %{buildroot}%{_prefix}/include/security/*.h %{buildroot}/usr/lib/lib*
|
|
|
|
%check
|
|
# Check for module problems. Specifically, check that every module we just
|
|
# installed can actually be loaded by a minimal PAM-aware application.
|
|
export LD_LIBRARY_PATH="%{buildroot}/%{_lib}/"
|
|
for module in %{buildroot}%{_pam_moduledir}/pam*.so ; do
|
|
if ! sh $RPM_SOURCE_DIR/dlopen.sh -lpam -ldl ${module} ; then
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
%files
|
|
%defattr(-,root,root,755)
|
|
%license LICENSE
|
|
%doc README conf/*
|
|
%attr(755,root,root) %{_pam_moduledir}/pam_*.so
|
|
|
|
%changelog
|