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