]>
Commit | Line | Data |
---|---|---|
7b891ac1 AM |
1 | Summary: Small RSA key management package |
2 | Summary(pl.UTF-8): Mały pakiet do zarządzania kluczami RSA | |
3 | Name: easy-rsa | |
d5801c5f | 4 | Version: 2.2.2 |
7b891ac1 | 5 | Release: 1 |
1a07b74e | 6 | License: GPL v2 |
d5801c5f ER |
7 | Group: Applications/Networking |
8 | Source0: https://github.com/OpenVPN/easy-rsa/archive/%{version}/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 040238338980617bc9c2df4274349593 | |
7b891ac1 AM |
10 | Patch0: %{name}2.patch |
11 | URL: http://openvpn.net/easyrsa.html | |
1a07b74e JB |
12 | BuildRequires: autoconf >= 2.59 |
13 | BuildRequires: automake >= 1:1.9 | |
7b891ac1 AM |
14 | Requires: grep |
15 | Requires: openssl-tools | |
d5801c5f | 16 | BuildArch: noarch |
7b891ac1 AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | This is a small RSA key management package, based on the openssl | |
21 | command line tool, that can be found in the easy-rsa subdirectory of | |
22 | the OpenVPN distribution. While this tool is primary concerned with | |
23 | key management for the SSL VPN application space, it can also be used | |
24 | for building web certificates. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | To jest mały pakiet do zarządzania kluczami RSA, oparty na narzędziu | |
28 | linii poleceń openssl. Pakiet ten pochodzi z podkatalogu easy-rsa | |
29 | dystrybucji OpenVPN. | |
30 | ||
31 | %prep | |
d5801c5f | 32 | %setup -q |
7b891ac1 AM |
33 | %patch0 -p1 |
34 | ||
35 | %build | |
d5801c5f ER |
36 | %{__aclocal} |
37 | %{__autoconf} | |
38 | %{__automake} | |
7b891ac1 | 39 | %configure |
7b891ac1 AM |
40 | %{__make} |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
7b891ac1 AM |
44 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/easy-rsa/keys} |
45 | ||
46 | %{__make} install \ | |
47 | DESTDIR="$RPM_BUILD_ROOT" | |
48 | ||
49 | mv $RPM_BUILD_ROOT%{_datadir}/easy-rsa/openssl-1.0.0.cnf $RPM_BUILD_ROOT%{_sysconfdir}/easy-rsa/openssl.cnf | |
50 | rm $RPM_BUILD_ROOT%{_datadir}/easy-rsa/openssl-*.cnf | |
51 | mv $RPM_BUILD_ROOT%{_datadir}/easy-rsa/vars $RPM_BUILD_ROOT%{_sysconfdir}/easy-rsa/ | |
52 | mv $RPM_BUILD_ROOT%{_datadir}/easy-rsa/pkitool $RPM_BUILD_ROOT%{_sbindir} | |
53 | ||
d5801c5f | 54 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
7b891ac1 AM |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
1a07b74e JB |
61 | # note: COPYING contains general notes, not GPL text |
62 | %doc COPYING README doc/README-2.0 | |
7b891ac1 AM |
63 | %dir %{_sysconfdir}/easy-rsa |
64 | %attr(700,root,root) %dir %{_sysconfdir}/easy-rsa/keys | |
65 | %config(noreplace) %attr(640,root,root) %verify(not md5 mtime size) %{_sysconfdir}/easy-rsa/vars | |
66 | %config(noreplace) %attr(640,root,root) %verify(not md5 mtime size) %{_sysconfdir}/easy-rsa/openssl.cnf | |
67 | %attr(755,root,root) %{_sbindir}/pkitool | |
68 | %dir %{_datadir}/easy-rsa | |
69 | %attr(755,root,root) %{_datadir}/easy-rsa/* |