[packages/pam-pam_yubico] - rename to pam-pam_yubico to match other modules
arekm
arekm at pld-linux.org
Wed Feb 1 22:31:52 CET 2017
commit 6a5ab8aadbafbe85269d1550c9759fa78589b101
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Feb 1 22:31:46 2017 +0100
- rename to pam-pam_yubico to match other modules
pam_yubico.spec => pam-pam_yubico.spec | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/pam_yubico.spec b/pam-pam_yubico.spec
similarity index 68%
rename from pam_yubico.spec
rename to pam-pam_yubico.spec
index 0b016b4..ea99920 100644
--- a/pam_yubico.spec
+++ b/pam-pam_yubico.spec
@@ -1,11 +1,12 @@
+%define module pam_yubico
Summary: A Pluggable Authentication Module for yubikeys
-Name: pam_yubico
+Name: pam-%{module}
Version: 2.24
Release: 1
License: BSD
Group: Applications/System
URL: http://opensource.yubico.com/yubico-pam/
-Source0: http://opensource.yubico.com/yubico-pam/releases/%{name}-%{version}.tar.gz
+Source0: http://opensource.yubico.com/yubico-pam/releases/%{module}-%{version}.tar.gz
# Source0-md5: 3420a1538031aee90af1c4e83988994d
BuildRequires: libyubikey-devel >= 1.5
BuildRequires: openldap-devel
@@ -15,15 +16,16 @@ BuildRequires: ykpers-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This is pam_yubico, a pluggable authentication module that can be used
+This is %{module}, a pluggable authentication module that can be used
with Linux-PAM and yubikeys. This module supports yubikey OTP
checking.
%prep
-%setup -q
+%setup -q -n %{module}-%{version}
%build
%configure \
+ --disable-silent-rules \
--libdir=/%{_lib} \
--with-pam-dir=/%{_lib}/security/
%{__make}
@@ -34,7 +36,7 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm $RPM_BUILD_ROOT/%{_lib}/security/pam_yubico.la
+rm $RPM_BUILD_ROOT/%{_lib}/security/%{module}.la
%clean
rm -rf $RPM_BUILD_ROOT
@@ -42,7 +44,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc NEWS README ChangeLog
-%attr(755,root,root) /%{_lib}/security/pam_yubico.so
+%attr(755,root,root) /%{_lib}/security/%{module}.so
%attr(755,root,root) %{_bindir}/ykpamcfg
%{_mandir}/man1/ykpamcfg.1*
-%{_mandir}/man8/pam_yubico.8*
+%{_mandir}/man8/%{module}.8*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pam-pam_yubico.git/commitdiff/6a5ab8aadbafbe85269d1550c9759fa78589b101
More information about the pld-cvs-commit
mailing list