sscg/sscg.spec

75 lines
2.0 KiB
RPMSpec
Raw Normal View History

2017-02-17 16:49:15 +00:00
%global provider github
%global provider_tld com
%global project sgallagher
%global repo sscg
# https://github.com/sgallagher/sscg
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
2015-03-30 21:10:41 +00:00
%{!?meson_test: %global meson_test %{__meson} test -C %{_vpath_builddir} --num-processes %{_smp_build_ncpus} --print-errorlogs}
2017-02-16 21:48:40 +00:00
Name: sscg
Version: 3.0.2
Release: %autorelease
Summary: Simple SSL certificate generator
2015-03-30 21:10:41 +00:00
License: GPLv3+ with exceptions
URL: https://%{provider_prefix}
Source0: https://%{provider_prefix}/archive/refs/tags/%{repo}-%{version}.tar.gz
2017-02-16 21:48:40 +00:00
BuildRequires: gcc
BuildRequires: libtalloc-devel
BuildRequires: openssl-devel
2017-02-16 21:48:40 +00:00
BuildRequires: popt-devel
BuildRequires: libpath_utils-devel
BuildRequires: meson
BuildRequires: ninja-build
BuildRequires: help2man
# Protect against negative bitshift
# Author: Stephen Gallagher <sgallagh@redhat.com>
Patch1: 0001-Protect-against-negative-bitshift.patch
# Fix another negative bitshift issue
# Author: Stephen Gallagher <sgallagh@redhat.com>
Patch2: 0002-Fix-another-negative-bitshift-issue.patch
# Fix incorrect error-check
# Author: Stephen Gallagher <sgallagh@redhat.com>
Patch3: 0003-Fix-incorrect-error-check.patch
# Truncate IP address in SAN
# Author: Stephen Gallagher <sgallagh@redhat.com>
Patch4: 0004-Truncate-IP-address-in-SAN.patch
2015-03-30 21:10:41 +00:00
%description
A utility to aid in the creation of more secure "self-signed"
certificates. The certificates created by this tool are generated in a
way so as to create a CA certificate that can be safely imported into a
client machine to trust the service certificate without needing to set
up a full PKI environment and without exposing the machine to a risk of
false signatures from the service certificate.
%prep
%autosetup -p1 -n %{name}-%{name}-%{version}
2015-03-30 21:10:41 +00:00
2016-05-31 14:00:31 +00:00
2015-03-30 21:10:41 +00:00
%build
%meson
%meson_build
2015-03-30 21:10:41 +00:00
%install
%meson_install
%check
%meson_test -t 10
2015-03-30 21:10:41 +00:00
%files
2017-02-16 21:48:40 +00:00
%license COPYING
2017-02-17 16:49:15 +00:00
%doc README.md
2017-02-16 21:48:40 +00:00
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8*
2015-03-30 21:10:41 +00:00
%changelog
%autochangelog