1 Summary: Small RSA key management package
2 Summary(pl.UTF-8): Mały pakiet do zarządzania kluczami RSA
7 Group: Applications/Networking
8 Source0: https://github.com/OpenVPN/easy-rsa/archive/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: 040238338980617bc9c2df4274349593
10 Patch0: %{name}2.patch
11 URL: http://openvpn.net/easyrsa.html
12 BuildRequires: autoconf >= 2.59
13 BuildRequires: automake >= 1:1.9
15 Requires: openssl-tools
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/easy-rsa/keys}
47 DESTDIR="$RPM_BUILD_ROOT"
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}
54 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 # note: COPYING contains general notes, not GPL text
62 %doc COPYING README doc/README-2.0
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/*