]> git.pld-linux.org Git - packages/pam-pam_google-authenticator.git/blob - pam-pam_google-authenticator.spec
- updated to 1.09
[packages/pam-pam_google-authenticator.git] / pam-pam_google-authenticator.spec
1 # TODO
2 # - re-check validity of patches (drop/update/upstreamify)
3 #
4 # Conditional build:
5 %bcond_without  tests           # build with tests
6
7 Summary:        PAM module for One-time passcode support using open standards
8 Name:           pam-pam_google-authenticator
9 Version:        1.09
10 Release:        1
11 License:        Apache v2.0
12 Group:          Libraries
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)
22
23 %description
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).
28
29 Passcode generators are available (separately) for several mobile
30 platforms.
31
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.
35
36 %prep
37 %setup -q -n google-authenticator-libpam-%{version}
38
39 %build
40 %{__aclocal} -I build
41 %{__libtoolize}
42 %{__autoconf}
43 %{__autoheader}
44 %{__automake}
45 %configure \
46         --libdir=/%{_lib}
47 %{__make} %{?with_tests:check}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_google_authenticator.la
55 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/google-authenticator
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
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*
This page took 0.029317 seconds and 3 git commands to generate.