2 # - re-check validity of patches (drop/update/upstreamify)
5 %bcond_without tests # build with tests
7 Summary: PAM module for One-time passcode support using open standards
8 Name: pam-pam_google-authenticator
13 Source0: https://github.com/google/google-authenticator-libpam/archive/%{version}/google-authenticator-libpam-%{version}.tar.gz
14 # Source0-md5: 4b08a0a5dca2835499c790d67bf8f736
15 Patch1: 0001-Add-no-drop-privs-option-to-manage-secret-files-as-r.patch
16 Patch2: 0002-Allow-expansion-of-PAM-environment-variables-in-secr.patch
17 URL: https://github.com/google/google-authenticator-libpam
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRequires: pam-devel
22 BuildRequires: qrencode-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Google Authenticator package contains a pluggable authentication
27 module (PAM) which allows login using one-time passcodes conforming to
28 the open standards developed by the Initiative for Open Authentication
29 (OATH) (which is unrelated to OAuth).
31 Passcode generators are available (separately) for several mobile
34 These implementations support the HMAC-Based One-time Password (HOTP)
35 algorithm specified in RFC 4226 and the Time-based One-time Password
36 (TOTP) algorithm currently in draft.
39 %setup -q -n google-authenticator-libpam-%{version}
51 %{__make} %{?with_tests:check}
54 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
58 %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_google_authenticator.la
59 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/google-authenticator
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %doc FILEFORMAT README.md totp.html
67 %attr(755,root,root) /%{_lib}/security/pam_google_authenticator.so
68 %attr(755,root,root) %{_bindir}/google-authenticator
69 %{_mandir}/man1/google-authenticator.1*
70 %{_mandir}/man8/pam_google_authenticator.8*