]> git.pld-linux.org Git - packages/easy-rsa.git/blob - easy-rsa.spec
- release 2 (by relup.sh)
[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:        2.2.2
5 Release:        2
6 License:        GPL v2
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
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
33 %patch0 -p1
34
35 %build
36 %{__aclocal}
37 %{__autoconf}
38 %{__automake}
39 %configure
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
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
54 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
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/*
This page took 0.062262 seconds and 3 git commands to generate.