diff --git a/golang-github-golang-glog.spec b/golang-github-golang-glog.spec index c444370..032b985 100644 --- a/golang-github-golang-glog.spec +++ b/golang-github-golang-glog.spec @@ -1,16 +1,27 @@ -%if 0%{?fedora} || 0%{?rhel} == 6 +# 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 +# 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 1 +# Generate unit-test rpm %global with_unit_test 1 -%else -%global with_devel 1 -%global with_bundled 0 -%global with_debug 0 -%global with_check 1 -%global with_unit_test 1 -%endif %if 0%{?with_debug} %global _dwz_low_mem_die_limit 0 @@ -30,14 +41,14 @@ Name: golang-%{provider}-%{project}-%{repo} Version: 0 -Release: 0.12.git%{shortcommit}%{?dist} +Release: 0.13.git%{shortcommit}%{?dist} Summary: Leveled execution logs for Go License: ASL 2.0 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} @@ -74,8 +85,6 @@ building other packages which use import path with %if 0%{?with_unit_test} && 0%{?with_devel} %package unit-test Summary: Unit tests for %{name} package -# 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} %if 0%{?with_check} #Here comes all BuildRequires: PACKAGE the unit tests @@ -159,6 +168,10 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath} %endif %changelog +* Thu Dec 15 2016 Jan Chaloupka - 0-0.13.gitfca8c88 +- Polish the spec file + related: #1249052 + * Thu Sep 15 2016 jchaloup - 0-0.12.gitfca8c88 - Enable devel and unit-test packages for epel7 related: #1249052 diff --git a/sources b/sources index 758fee8..506953e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -352584d3c0d432df0ee9594fae12c1a4 glog-fca8c88.tar.gz +SHA512 (glog-fca8c88.tar.gz) = 0084d1ffc1fc12d46c6287432695dbe78643a64d0a9492a2a6b94a39452da4a5948884b29cb4b6fce26cab326137e8816534035962e9ad5d12e4089ca5d56c6f