]> git.pld-linux.org Git - packages/pam-pam_google-authenticator.git/blob - pam-pam_google-authenticator.spec
87dc40400eda6037e24d3701cf768ef1ca03e5d2
[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.04
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:  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)
24
25 %description
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).
30
31 Passcode generators are available (separately) for several mobile
32 platforms.
33
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.
37
38 %prep
39 %setup -q -n google-authenticator-libpam-%{version}
40 #%patch1 -p1
41 #%patch2 -p1
42
43 %build
44 %{__aclocal} -I build
45 %{__libtoolize}
46 %{__autoconf}
47 %{__autoheader}
48 %{__automake}
49 %configure \
50         --libdir=/%{_lib}
51 %{__make} %{?with_tests:check}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_google_authenticator.la
59 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/google-authenticator
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
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*
This page took 0.072419 seconds and 2 git commands to generate.