The package rpms/golang-github-stretchr-testify.git has added or updated architecture
specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-stretchr-testify.gi....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 718e87bf045e520382662cb912f113ba624374c7
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Tue Mar 27 15:13:16 2018 +0200
Set gcommit so it can be read by automated tooling
diff --git a/golang-github-stretchr-testify.spec b/golang-github-stretchr-testify.spec
index 9762405..19d84c7 100644
--- a/golang-github-stretchr-testify.spec
+++ b/golang-github-stretchr-testify.spec
@@ -3,6 +3,7 @@
#
https://github.com/stretchr/testify
%global goipath
github.com/stretchr/testify
+%global gcommit 12b6f73e6084dad08a7c6e575284b177ecafbc71
Version: 1.2.1
%global common_description %{expand:
@@ -24,9 +25,6 @@ License: BSD
URL: %{gourl}
Source0: %{gosource}
-BuildRequires:
golang(github.com/davecgh/go-spew/spew)
-BuildRequires:
golang(github.com/pmezard/go-difflib/difflib)
-BuildRequires:
golang(github.com/stretchr/objx)
%description
%{common_description}
@@ -36,6 +34,10 @@ BuildRequires:
golang(github.com/stretchr/objx)
Summary: %{summary}
BuildArch: noarch
+BuildRequires:
golang(github.com/davecgh/go-spew/spew)
+BuildRequires:
golang(github.com/pmezard/go-difflib/difflib)
+BuildRequires:
golang(github.com/stretchr/objx)
+
%description devel
%{common_description}
@@ -45,7 +47,7 @@ building other packages which use import path with
%prep
-%forgeautosetup
+%gosetup
%install
commit 815ad74e3c598934b9c7d362564b28a7d7138568
Author: Robert-André Mauchin <zebob.m(a)gmail.com>
Date: Mon Mar 26 23:40:25 2018 +0200
Update to upstream v1.2.1
Update to new guidelines for Go
diff --git a/.gitignore b/.gitignore
index 2b403fe..79fb118 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/testify-69483b4.tar.gz
+/testify-1.2.1.tar.gz
diff --git a/golang-github-stretchr-testify.spec b/golang-github-stretchr-testify.spec
index 5b29cf7..9762405 100644
--- a/golang-github-stretchr-testify.spec
+++ b/golang-github-stretchr-testify.spec
@@ -1,179 +1,73 @@
-# 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
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project stretchr
-%global repo testify
#
https://github.com/stretchr/testify
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 69483b4bd14f5845b5a1e55bca19e954e827f1d0
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 1.1.4
-Release: 0.2.git%{shortcommit}%{?dist}
-Summary: Tools for testifying that your code will behave as you intend
-License: MIT
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%global goipath
github.com/stretchr/testify
+Version: 1.2.1
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-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}
+%global common_description %{expand:
+Golang set of packages that provide many tools for testifying
+that your code will behave as you intend.
-%description
-Thou Shalt Write Tests
+Features include:
-Go code (golang) set of packages that provide many tools for testifying that
-your code will behave as you intend.
+ - Easy assertions
+ - Mocking
+ - Testing suite interfaces and functions}
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%gometa
+
+Name: %{goname}
+Release: 1%{?dist}
+Summary: Tools for testifying that your code will behave as you intend
+License: BSD
+URL: %{gourl}
+Source0: %{gosource}
-%if 0%{?with_check}
-BuildRequires:
golang(github.com/stretchr/objx)
BuildRequires:
golang(github.com/davecgh/go-spew/spew)
BuildRequires:
golang(github.com/pmezard/go-difflib/difflib)
-%endif
+BuildRequires:
golang(github.com/stretchr/objx)
-Requires:
golang(github.com/stretchr/objx)
-Requires:
golang(github.com/davecgh/go-spew/spew)
-Requires:
golang(github.com/pmezard/go-difflib/difflib)
+%description
+%{common_description}
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/assert) = %{version}-%{release}
-Provides: golang(%{import_path}/http) = %{version}-%{release}
-Provides: golang(%{import_path}/mock) = %{version}-%{release}
-Provides: golang(%{import_path}/require) = %{version}-%{release}
-Provides: golang(%{import_path}/suite) = %{version}-%{release}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
%description devel
-%{summary}
+%{common_description}
This package contains library source intended for
building other packages which use import path with
-%{import_path} prefix.
-%endif
+%{goipath} prefix.
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
%prep
-%setup -q -n %{repo}-%{commit}
+%forgeautosetup
-mv LICENCE.txt LICENSE.txt
-
-%build
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
+%goinstall
-# testing files for this project
-%if 0%{?with_unit_test}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
+%if %{with check}
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
+%gochecks
%endif
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-%gotest %{import_path}
-%gotest %{import_path}/assert
-%gotest %{import_path}/mock
-%gotest %{import_path}/require
-%gotest %{import_path}/suite
-%endif
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-%if 0%{?with_devel}
%files devel -f devel.file-list
-%license LICENSE.txt
+%license LICENSE
%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
-%endif
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE.txt
-%doc README.md
-%endif
%changelog
+* Mon Mar 26 2018 Robert-André Mauchin <zebob.m(a)gmail.com> - 1.2.1-1
+- Update to upstream v1.2.1
+- Update to new guidelines for Go
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.1.4-0.2.git69483b4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@@ -243,3 +137,4 @@ export
GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
* Wed Aug 06 2014 Adam Miller <maxamillion(a)fedoraproject.org> - 0-0.1.gitda775f0
- First package for Fedora.
+
diff --git a/sources b/sources
index 6faf299..2875341 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (testify-69483b4.tar.gz) =
2b32ad9e97e0ad137c6b338ec539223e9975741cfea0351fb25cb6812dd1d44512716b0a311609f747b5428f344105c89816eef6aae42659b011a1ff8ef73761
+SHA512 (testify-1.2.1.tar.gz) =
abd6efb21d3505d12d7ff49459fe3b6066c1648ab43a5cb7860d8c822377ab5c57a07437a5e53c6f1630d369796178d122ec03314764a393d145af5d13b4e454
commit 502624a473c8c60b361a2d9b8f607b811d510fdf
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Wed Feb 7 14:56:13 2018 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/golang-github-stretchr-testify.spec b/golang-github-stretchr-testify.spec
index 8ff3b45..5b29cf7 100644
--- a/golang-github-stretchr-testify.spec
+++ b/golang-github-stretchr-testify.spec
@@ -41,7 +41,7 @@
Name: golang-%{provider}-%{project}-%{repo}
Version: 1.1.4
-Release: 0.1.git%{shortcommit}%{?dist}
+Release: 0.2.git%{shortcommit}%{?dist}
Summary: Tools for testifying that your code will behave as you intend
License: MIT
URL: https://%{provider_prefix}
@@ -174,6 +174,9 @@ export
GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif
%changelog
+* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.1.4-0.2.git69483b4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
* Tue Sep 12 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 1.1.4-0.1.git69483b4
- Update to upstream v1.1.4
resolves: #1490397