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: c0a5624f53d64f851775fe7e94732651
15 URL: https://github.com/google/google-authenticator-libpam
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: libtool
19 BuildRequires: pam-devel
20 BuildRequires: qrencode-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The Google Authenticator package contains a pluggable authentication
25 module (PAM) which allows login using one-time passcodes conforming to
26 the open standards developed by the Initiative for Open Authentication
27 (OATH) (which is unrelated to OAuth).
29 Passcode generators are available (separately) for several mobile
32 These implementations support the HMAC-Based One-time Password (HOTP)
33 algorithm specified in RFC 4226 and the Time-based One-time Password
34 (TOTP) algorithm currently in draft.
37 %setup -q -n google-authenticator-libpam-%{version}
47 %{__make} %{?with_tests:check}
50 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
54 %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_google_authenticator.la
55 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/google-authenticator
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc FILEFORMAT README.md totp.html
63 %attr(755,root,root) /%{_lib}/security/pam_google_authenticator.so
64 %attr(755,root,root) %{_bindir}/google-authenticator
65 %{_mandir}/man1/google-authenticator.1*
66 %{_mandir}/man8/pam_google_authenticator.8*