Olav Reinert
c80756a98c
* spec-cleaner -i easy-rsa.spec * osc service localrun download_files OBS-URL: https://build.opensuse.org/package/show/network:vpn/easy-rsa?expand=0&rev=11
103 lines
3.8 KiB
RPMSpec
103 lines
3.8 KiB
RPMSpec
#
|
|
# spec file for package easy-rsa
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2015 Stefan Jakobs.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: easy-rsa
|
|
Version: 3.0.1
|
|
Release: 0
|
|
Summary: CLI utility to build and manage a PKI CA
|
|
License: GPL-2.0
|
|
Group: Productivity/Networking/Security
|
|
Url: https://github.com/OpenVPN/easy-rsa
|
|
Source: https://github.com/OpenVPN/easy-rsa/archive/%{version}.tar.gz
|
|
# Fixed upstream issues
|
|
# Generate random serial number for all certificates
|
|
Patch0: https://github.com/OpenVPN/easy-rsa/commit/f174800.patch
|
|
# Fixes #91 basename: invalid option -- 's'.
|
|
Patch1: https://github.com/OpenVPN/easy-rsa/commit/29d4dee.patch
|
|
# spelling fixes and setence structure improvements
|
|
Patch2: https://github.com/OpenVPN/easy-rsa/commit/b93d0a1.patch
|
|
# Fix comment indicating the end of the function verify_file() comment.
|
|
Patch3: https://github.com/OpenVPN/easy-rsa/commit/fb4d8d8.patch
|
|
# Convert README and COPYING into markdown files
|
|
Patch4: https://github.com/OpenVPN/easy-rsa/commit/b75faa4.patch
|
|
# Add CN as SAN (if none requested) on server certs by default
|
|
Patch5: https://github.com/OpenVPN/easy-rsa/commit/6436eaf.patch
|
|
# Moved @ValdikSS's serial randomization to sign_req
|
|
Patch6: https://github.com/OpenVPN/easy-rsa/commit/e9e8e27.patch
|
|
# Make $PWD/pki the default PKI location
|
|
Patch7: https://github.com/OpenVPN/easy-rsa/commit/534f673.patch
|
|
# Update docs and examples to fit changes in 534f673
|
|
Patch8: https://github.com/OpenVPN/easy-rsa/commit/d20d2b3.patch
|
|
# Fix string comprehension
|
|
Patch9: https://github.com/OpenVPN/easy-rsa/commit/4eac410.patch
|
|
# Fix incorrect "openssl rand" usage
|
|
Patch10: https://github.com/OpenVPN/easy-rsa/commit/a138c0d.patch
|
|
# Add --copy-ext option
|
|
Patch11: https://github.com/OpenVPN/easy-rsa/commit/83a1a21.patch
|
|
# openSUSE specific
|
|
Patch100: easy-rsa-packaging.patch
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
easy-rsa is a CLI utility to build and manage a PKI CA. In laymen's terms,
|
|
this means to create a root certificate authority, and request and sign
|
|
certificates, including sub-CAs and certificate revokation lists (CRL).
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
%patch9 -p1
|
|
%patch10 -p1
|
|
%patch11 -p1
|
|
%patch100
|
|
|
|
# Add this for SLE11, patch tool can't rename file.
|
|
# Next release we should publish .md documentation.
|
|
%if 0%{?sles_version} > 0 && 0%{?sles_version} < 12
|
|
mv -v COPYING COPYING.md
|
|
mv -v README README.md
|
|
%endif
|
|
|
|
%build
|
|
|
|
%install
|
|
install -dm0755 %{buildroot}/%{_sysconfdir}/easy-rsa/
|
|
install -dm0755 %{buildroot}/%{_sysconfdir}/easy-rsa/x509-types
|
|
install -Dm0644 easyrsa3/vars.example %{buildroot}/%{_sysconfdir}/easy-rsa/
|
|
install -Dm0644 easyrsa3/openssl-1.0.cnf %{buildroot}/%{_sysconfdir}/easy-rsa/openssl-1.0.cnf
|
|
install -Dm0644 easyrsa3/x509-types/* %{buildroot}/%{_sysconfdir}/easy-rsa/x509-types/
|
|
install -Dm0755 easyrsa3/easyrsa %{buildroot}/%{_bindir}/easyrsa
|
|
|
|
%files
|
|
%doc KNOWN_ISSUES README.md README.quickstart.md COPYING.md
|
|
%doc Licensing/*
|
|
%doc doc/*
|
|
%{_bindir}/easyrsa
|
|
%config(noreplace) %{_sysconfdir}/easy-rsa
|
|
|
|
%changelog
|