Update to 2.0.0

This commit is contained in:
Stephen Gallagher 2017-02-16 16:48:40 -05:00
parent 77e374f4cf
commit 8500413885
No known key found for this signature in database
GPG Key ID: 7A25556236BAA3A3
3 changed files with 20 additions and 34 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/sscg-1.0.3-ecdee74.tar.gz /sscg-1.0.3-ecdee74.tar.gz
/sscg-1.0.4-024d20e.tar.gz /sscg-1.0.4-024d20e.tar.gz
/sscg-1.1.0-4f90b27.tar.gz /sscg-1.1.0-4f90b27.tar.gz
/sscg-2.0.0.tar.gz

View File

@ -1 +1 @@
c2c75a200120b680f6ea7437e0944e5b sscg-1.1.0-4f90b27.tar.gz SHA512 (sscg-2.0.0.tar.gz) = ec6ac0ce0d4c6df80416299e3d15bc75eb5bd09b30f24a9693426ba276cbd9f7481559185fd303b741cb47a20199a3ffd9d1b7cc44a696b2dd1e4aac0566bda8

View File

@ -1,39 +1,28 @@
%global provider github
%global provider_tld com %global provider_tld com
%global project sgallagher %global project sgallagher
%global repo sscg %global repo sscg
# https://github.com/sgallagher/sscg # https://github.com/sgallagher/sscg
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix} %global import_path %{provider_prefix}
%global commit 4f90b27b548cbf457314b8586dc26bfd4f234155 %global commit b994c9eab1d3b1ec4c2470c2955945d5f2937da1
%global shortcommit %(c=%{commit}; echo ${c:0:7}) %global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: %{repo} Name: sscg
Version: 1.1.0 Version: 2.0.0
Release: 6%{?dist} Release: 1.rc1%{?dist}
Summary: Simple SSL certificate generator Summary: Simple SSL certificate generator
License: BSD License: BSD
URL: https://%{provider_prefix} URL: https://%{provider_prefix}
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{version}-%{shortcommit}.tar.gz Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{version}.tar.gz
ExclusiveArch: %{go_arches}
# PPC64 lacks the ability to link against C libraries
ExcludeArch: ppc64 ppc64p7
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} BuildRequires: gcc
BuildRequires: libtalloc-devel
%if 0%{?fedora} < 26
BuildRequires: openssl-devel BuildRequires: openssl-devel
%else BuildRequires: popt-devel
BuildRequires: compat-openssl10-devel BuildRequires: libpath_utils-devel
%endif
BuildRequires: golang(github.com/spacemonkeygo/spacelog)
Provides: bundled(golang(github.com/spacemonkeygo/openssl))
#Provides: bundled(golang(github.com/spacemonkeygo/spacelog))
%description %description
A utility to aid in the creation of more secure "self-signed" A utility to aid in the creation of more secure "self-signed"
@ -44,28 +33,24 @@ up a full PKI environment and without exposing the machine to a risk of
false signatures from the service certificate. false signatures from the service certificate.
%prep %prep
%setup -q -n %{repo}-%{commit} %setup -q -n %{name}-%{version}
# Remove debundled spacelog
rm -rf vendor/github.com/spacemonkeygo/spacelog
%build %build
mkdir -p src/%{provider}.%{provider_tld}/%{project}/ %configure
ln -s ../../../ src/%{provider}.%{provider_tld}/%{project}/%{repo} %make_build
export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
%gobuild -o bin/%{name} %{import_path}
%install %install
install -d -p %{buildroot}%{_bindir} %make_install
install -p -m 755 bin/%{name} %{buildroot}%{_bindir}
%files %files
%license LICENSE %license COPYING
%doc README.md %{_bindir}/%{name}
%{_bindir}/%{repo}
%changelog %changelog
* Thu Feb 16 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.0.0-1.rc1
- Update to 2.0.0
* Thu Feb 16 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.1.0-6 * Thu Feb 16 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.1.0-6
- Exclude PPC64 from the build since it doesn't support linking to OpenSSL - Exclude PPC64 from the build since it doesn't support linking to OpenSSL