]> TLD Linux GIT Repositories - packages/easy-rsa.git/blob - easy-rsa.spec
fc53a689312ee9f6eb642d1e6210204f7e00d45f
[packages/easy-rsa.git] / easy-rsa.spec
1 Summary:        Small RSA key management package
2 Summary(pl.UTF-8):      Mały pakiet do zarządzania kluczami RSA
3 Name:           easy-rsa
4 Version:        3.0.4
5 Release:        0.1
6 License:        GPL v2
7 Group:          Applications/Networking
8 Source0:        https://github.com/OpenVPN/easy-rsa/releases/download/v%{version}/EasyRSA-%{version}.tgz
9 # Source0-md5:  d163f0681b4b2067f107badeb9151629
10 Patch0:         tld.patch
11 URL:            http://openvpn.net/easyrsa.html
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake >= 1:1.9
14 Requires:       grep
15 Requires:       openssl-tools
16 BuildArch:      noarch
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
32 %setup -q -n EasyRSA-%{version}
33 %patch0 -p1 
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/easy-rsa/keys}
38
39 install -p easyrsa $RPM_BUILD_ROOT%{_sbindir}
40 mv openssl-easyrsa.cnf $RPM_BUILD_ROOT%{_sysconfdir}/easy-rsa
41 mv vars.example $RPM_BUILD_ROOT%{_sysconfdir}/easy-rsa/vars
42 mv x509-types $RPM_BUILD_ROOT%{_sysconfdir}/easy-rsa
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc COPYING.md README.md README.quickstart.md doc
50 %dir %{_sysconfdir}/easy-rsa
51 %attr(750,root,root) %dir %{_sysconfdir}/easy-rsa/keys
52 %attr(750,root,root) %dir %{_sysconfdir}/easy-rsa/x509-types
53 %attr(640,root,root) %dir %{_sysconfdir}/easy-rsa/x509-types/COMMON
54 %attr(640,root,root) %dir %{_sysconfdir}/easy-rsa/x509-types/ca
55 %attr(640,root,root) %dir %{_sysconfdir}/easy-rsa/x509-types/client
56 %attr(640,root,root) %dir %{_sysconfdir}/easy-rsa/x509-types/code-signing
57 %attr(640,root,root) %dir %{_sysconfdir}/easy-rsa/x509-types/server
58 %config(noreplace) %attr(640,root,root) %verify(not md5 mtime size) %{_sysconfdir}/easy-rsa/vars
59 %config(noreplace) %attr(640,root,root) %verify(not md5 mtime size) %{_sysconfdir}/easy-rsa/openssl-easyrsa.cnf
60 %attr(750,root,root) %{_sbindir}/easyrsa