]>
Commit | Line | Data |
---|---|---|
326db036 JB |
1 | Summary: OATH Toolkit - easily build one-time password authentication systems |
2 | Summary(pl.UTF-8): OATH Toolkit - łatwe tworzenie systemów uwierzytelniania z jednorazowymi hasłami | |
3 | Name: oath-toolkit | |
cbe1e938 | 4 | Version: 2.2.0 |
326db036 JB |
5 | Release: 1 |
6 | License: LGPL v2.1+ (libraries), GPL v3+ (utilities and PAM module) | |
7 | Group: Libraries | |
8 | Source0: http://download.savannah.gnu.org/releases/oath-toolkit/%{name}-%{version}.tar.gz | |
cbe1e938 | 9 | # Source0-md5: 2afc64577936a1a79cff72b0718c9636 |
326db036 JB |
10 | URL: http://www.nongnu.org/oath-toolkit/ |
11 | BuildRequires: gtk-doc >= 1.1 | |
12 | BuildRequires: help2man | |
13 | BuildRequires: libxml2-devel >= 2 | |
14 | BuildRequires: pam-devel | |
15 | BuildRequires: xmlsec1-devel | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | The OATH Toolkit makes it easy to build one-time password | |
20 | authentication systems. It contains shared libraries, command line | |
21 | tools and a PAM module. Supported technologies include the event-based | |
22 | HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238). | |
23 | OATH stands for Open AuTHentication, which is the organization that | |
24 | specify the algorithms. For managing secret key files, the Portable | |
25 | Symmetric Key Container (PSKC) format described in RFC6030 is | |
26 | supported. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | OATH Toolkit ułatwia tworzenie systemów uwierzytelniania z | |
30 | jednorazowymi hasłami. Zawiera biblioteki współdzielone, narzędzia | |
31 | działające z linii poleceń oraz moduł PAM. Obsługiwane techniki | |
32 | obejmują oparty na zdarzeniach algorytm HOTP (RFC 4226) oraz oparty na | |
33 | czasie algorytm TOTP (RFC 6238). OATH to skrót od Open AuTHentication | |
34 | - nazwy organizacji opisującej algorytmy. W celu zarządzania kluczami | |
35 | obsługiwany jest format PSKC (Portable Symmetric Key Container), | |
36 | opisany w RFC 6030. | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for OATH libraries | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek OATH | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: libxml2-devel >= 2 | |
44 | Requires: xmlsec1-devel | |
45 | ||
46 | %description devel | |
47 | Header files for OATH libraries. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe bibliotek OATH. | |
51 | ||
52 | %package static | |
53 | Summary: Static OATH libraries | |
54 | Summary(pl.UTF-8): Statyczne biblioteki OATH | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static OATH libraries. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczne biblioteki OATH. | |
63 | ||
64 | %package apidocs | |
65 | Summary: OATH API documentation | |
66 | Summary(pl.UTF-8): Dokumentacja API bibliotek OATH | |
67 | Group: Documentation | |
68 | ||
69 | %description apidocs | |
70 | API documentation for OATH libraries. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API bibliotek OATH. | |
74 | ||
75 | %prep | |
76 | %setup -q | |
77 | ||
78 | %build | |
79 | %configure \ | |
80 | --disable-silent-rules \ | |
81 | --with-html-dir=%{_gtkdocdir} \ | |
82 | --with-pam-dir=/%{_lib}/security | |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | # lib*.la kept - libpskc is missing .private dependencies | |
92 | ||
93 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_*.la | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -p /sbin/ldconfig | |
99 | %postun -p /sbin/ldconfig | |
100 | ||
101 | %files | |
102 | %defattr(644,root,root,755) | |
103 | # COPYING contains just licensing notes | |
104 | %doc AUTHORS COPYING ChangeLog NEWS README | |
105 | %attr(755,root,root) %{_bindir}/oathtool | |
106 | %attr(755,root,root) %{_bindir}/pskctool | |
107 | %attr(755,root,root) %{_libdir}/liboath.so.*.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/liboath.so.0 | |
109 | %attr(755,root,root) %{_libdir}/libpskc.so.*.*.* | |
110 | %attr(755,root,root) %ghost %{_libdir}/libpskc.so.0 | |
111 | %attr(755,root,root) /%{_lib}/security/pam_oath.so | |
112 | %{_datadir}/xml/pskc | |
113 | %{_mandir}/man1/oathtool.1* | |
114 | %{_mandir}/man1/pskctool.1* | |
115 | ||
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/liboath.so | |
119 | %attr(755,root,root) %{_libdir}/libpskc.so | |
120 | %{_libdir}/liboath.la | |
121 | %{_libdir}/libpskc.la | |
122 | %{_includedir}/liboath | |
123 | %{_includedir}/pskc | |
124 | %{_pkgconfigdir}/liboath.pc | |
125 | %{_pkgconfigdir}/libpskc.pc | |
126 | %{_mandir}/man3/oath_*.3* | |
127 | %{_mandir}/man3/pskc_*.3* | |
128 | ||
129 | %files static | |
130 | %defattr(644,root,root,755) | |
131 | %{_libdir}/liboath.a | |
132 | %{_libdir}/libpskc.a | |
133 | ||
134 | %files apidocs | |
135 | %defattr(644,root,root,755) | |
136 | %{_gtkdocdir}/liboath | |
137 | %{_gtkdocdir}/libpskc |