diff --git a/.gitignore b/.gitignore index 7e83347..46d8697 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/gofuzz-bbcb9da.tar.gz +/gofuzz-fd52762.tar.gz diff --git a/golang-github-google-gofuzz.spec b/golang-github-google-gofuzz.spec index f116730..4995fb1 100644 --- a/golang-github-google-gofuzz.spec +++ b/golang-github-google-gofuzz.spec @@ -1,16 +1,28 @@ -%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 -%global with_check 1 -%global with_unit_test 1 -%else -%global with_devel 0 -%global with_bundled 0 -%global with_debug 0 +# Run tests in check section +# test fails on i686 in el6 %global with_check 0 -%global with_unit_test 0 -%endif +# Generate unit-test rpm +%global with_unit_test 1 %if 0%{?with_debug} %global _dwz_low_mem_die_limit 0 @@ -25,19 +37,19 @@ # https://github.com/google/gofuzz %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %global import_path %{provider_prefix} -%global commit bbcb9da2d746f8bdbd6a936686a0a6067ada0ec5 +%global commit fd52762d25a41827db7ef64c43756fd4b9f7e382 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: golang-%{provider}-%{project}-%{repo} Version: 0 -Release: 0.12.git%{shortcommit}%{?dist} +Release: 0.14.git%{shortcommit}%{?dist} Summary: Library for populating go objects with random values 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} @@ -66,8 +78,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 @@ -151,6 +161,14 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath} %endif %changelog +* Fri Jan 20 2017 Jan Chaloupka - 0-0.14.gitfd52762 +- Bump to upstream fd52762d25a41827db7ef64c43756fd4b9f7e382 + related: #1249075 + +* Fri Jan 20 2017 Jan Chaloupka - 0-0.13.gitbbcb9da +- Polish the spec file + related: #1249075 + * Thu Jul 21 2016 Fedora Release Engineering - 0-0.12.gitbbcb9da - https://fedoraproject.org/wiki/Changes/golang1.7 diff --git a/sources b/sources index 4d15e87..8c73018 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9a787e1977939bae9f995b382c525bf3 gofuzz-bbcb9da.tar.gz +SHA512 (gofuzz-fd52762.tar.gz) = d79573348d56aaeaf884cd693260f8d80228f4bafa0a27a167541b3671d3389b26f932dafcc8757087847d0c6759ba4591c9d5f8cf7c70a73a06fca2fb46d4d6