From 90452874fac2ee4a4867a623f619b30af57b53b1 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Dec 16 2016 21:08:02 +0000 Subject: Polish the spec file - related: #1231618 --- diff --git a/golang-googlecode-go-crypto.spec b/golang-googlecode-go-crypto.spec index a9375e4..a74024f 100644 --- a/golang-googlecode-go-crypto.spec +++ b/golang-googlecode-go-crypto.spec @@ -1,15 +1,27 @@ +# If any of the following macros should be set otherwise, +# you can wrap any of them with the following conditions: +# - %%if 0%%{centos} == 7 +# - %%if 0%%{?rhel} == 7 +# - %%if 0%%{?fedora} == 23 +# Or just test for particular distribution: +# - %%if 0%%{centos} +# - %%if 0%%{?rhel} +# - %%if 0%%{?fedora} +# +# Be aware, on centos, both %%rhel and %%centos are set. If you want to test +# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition. +# (Don't forget to replace double percentage symbol with single one in order to apply a condition) + +# Generate devel rpm %global with_devel 1 -%if 0%{?fedora} || 0%{?rhel} == 6 +# Build project from bundled dependencies %global with_bundled 0 +# Build with debug info rpm %global with_debug 0 +# Run tests in check section %global with_check 0 +# Generate unit-test rpm %global with_unit_test 1 -%else -%global with_bundled 0 -%global with_debug 0 -%global with_check 0 -%global with_unit_test 0 -%endif %if 0%{?with_debug} %global _dwz_low_mem_die_limit 0 @@ -37,14 +49,14 @@ Name: golang-googlecode-go-crypto Version: 0 -Release: 0.11.git%{shortcommit}%{?dist} +Release: 0.12.git%{shortcommit}%{?dist} Summary: Supplementary Go cryptography libraries License: BSD URL: https://%{provider_prefix} Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz # e.g. el6 has ppc64 arch without gcc-go, so EA tag is required -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}} +ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}} # If go_compiler is not set to 1, there is no virtual provide. Use golang instead. BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} @@ -282,6 +294,10 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath} %endif %changelog +* Fri Dec 16 2016 Jan Chaloupka - 0-0.12.gitc10c31b +- Polish the spec file + related: #1231618 + * Thu Jul 21 2016 Fedora Release Engineering - 0-0.11.gitc10c31b - https://fedoraproject.org/wiki/Changes/golang1.7