The package rpms/golang-github-lpabon-godbc.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-lpabon-godbc.git/co....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit 96beeefc715f53c71549217a162c16d5ce1c50ab
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Sun Jun 2 21:19:34 2019 +0200
Update to new macros
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index e3135a9..7f6eb48 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/godbc-9577782.tar.gz
+/godbc-9577782540c1398b710ddae1b86268ba03a19b0c.tar.gz
diff --git a/golang-github-lpabon-godbc.spec b/golang-github-lpabon-godbc.spec
index f7f6f2d..b42a8f5 100644
--- a/golang-github-lpabon-godbc.spec
+++ b/golang-github-lpabon-godbc.spec
@@ -1,157 +1,59 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%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
-%global with_check 0
-%global with_unit_test 0
-%endif
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%define copying() \
-%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7 \
-%license %{*} \
-%else \
-%doc %{*} \
-%endif
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project lpabon
-%global repo godbc
#
https://github.com/lpabon/godbc
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+%global goipath
github.com/lpabon/godbc
+Version: 1.0.1
%global commit 9577782540c1398b710ddae1b86268ba03a19b0c
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 1.0.1
-Release: 10.git%{shortcommit}%{?dist}
-Summary: Design by contract for Go
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%gometa
-# 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}}
-# 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}
-
-%description
-%{summary}
+%global common_description %{expand:
+Design by Contract is a programming methodology which binds the caller and the
+function called to a contract. The contract is represented using Hoare Triple:
+ {P} C {Q}
+where {P} is the precondition before executing command C, and {Q} is the
+postcondition. }
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%global golicenses LICENSE
+%global godocs README.md AUTHORS
-%if 0%{?with_check}
-BuildRequires:
golang(github.com/stretchr/testify/assert)
-%endif
-
-Requires:
golang(github.com/stretchr/testify/assert)
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-
-%description devel
-%{summary}
-
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+Name: %{goname}
+Release: 11%{?dist}
+Summary: Design by contract for Go
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test-devel
-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}
+# Upstream license specification: Apache-2.0
+License: ASL 2.0
+URL: %{gourl}
+Source0: %{gosource}
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
+%if %{with check}
+# Tests
+BuildRequires:
golang(github.com/stretchr/testify/assert)
%endif
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test-devel
-%{summary}
+%description
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%gopkg
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%goprep
%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
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- 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
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test-devel.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- 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-devel.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%gopkginstall
+%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}
-%endif
-%gotest %{import_path}
-%endif
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
-%copying LICENSE
-%doc README.md AUTHORS
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
+%gocheck
%endif
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%copying LICENSE
-%doc README.md AUTHORS
-%endif
+%gopkgfiles
%changelog
+* Sun Jun 02 21:13:37 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> -
1.0.1-11.20190602git9577782
+- Update to new macros
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> -
1.0.1-10.git9577782
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -181,5 +83,3 @@ export
GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
* Wed Oct 14 2015 lpabon <lpabon(a)redhat.com> - 1.0.1-1.git9577782
- First package for Fedora
-
-
diff --git a/sources b/sources
index da50ad1..70307ef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-678025a23e3cadc99f135cd896f413b5 godbc-9577782.tar.gz
+SHA512 (godbc-9577782540c1398b710ddae1b86268ba03a19b0c.tar.gz) =
5372ecf97c5113311738c0bb39351b0bc9f1ada157077b71dbba06cf2aac3f533e1128c712f32b53b140b97a635d1e969dbab64ee2f5a5899c6b1d5820981b6e