The package rpms/golang-github-rakyll-globalconf.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-rakyll-globalconf.g....
Change:
-%ifarch 0%{?gccgo_arches}
Thanks.
Full change:
============
commit 5b8002fe43dd0007d0699b735d3664460faa9918
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Sun Jun 2 17:50:34 2019 +0200
Bump to commit 87f8127c421f4ccdaac33c9fca40c305c654f1de
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 1c7f7b7..e6041b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/globalconf-415abc3.tar.gz
+/globalconf-87f8127c421f4ccdaac33c9fca40c305c654f1de.tar.gz
diff --git a/golang-github-rakyll-globalconf.spec b/golang-github-rakyll-globalconf.spec
index da9cc12..677183d 100644
--- a/golang-github-rakyll-globalconf.spec
+++ b/golang-github-rakyll-globalconf.spec
@@ -1,180 +1,53 @@
-%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 rakyll
-%global repo globalconf
#
https://github.com/rakyll/globalconf
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 415abc325023f1a00cd2d9fa512e0e71745791a2
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global goipath
github.com/rakyll/globalconf
+%global commit 87f8127c421f4ccdaac33c9fca40c305c654f1de
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.12.git%{shortcommit}%{?dist}
-Summary: Effortlessly persist and read flag values from an ini config file
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# If go_arches not defined fall through to implicit golang archs
-%if 0%{?go_arches:1}
-ExclusiveArch: %{go_arches}
-%else
-ExclusiveArch: %{ix86} x86_64 %{arm}
-%endif
-# If gccgo_arches does not fit or is not defined fall through to golang
-%ifarch 0%{?gccgo_arches}
-BuildRequires: gcc-go >= %{gccgo_min_vers}
-%else
-BuildRequires: golang
-%endif
+%gometa
-%description
-%{summary}
+%global common_description %{expand:
+Effortlessly persist/retrieve flags of your Golang programs. If you need global
+configuration instead of requiring user always to set command line flags, you
+are looking at the right package. globalconf allows your users to not only
+provide flags, but config files and environment variables as well.}
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%global godocs README.md
-%if 0%{?with_check}
-BuildRequires:
golang(github.com/rakyll/goini)
-%endif
-
-Requires:
golang(github.com/rakyll/goini)
-
-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
-
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-# If go_arches not defined fall through to implicit golang archs
-%if 0%{?go_arches:1}
-ExclusiveArch: %{go_arches}
-%else
-ExclusiveArch: %{ix86} x86_64 %{arm}
-%endif
-# If gccgo_arches does not fit or is not defined fall through to golang
-%ifarch 0%{?gccgo_arches}
-BuildRequires: gcc-go >= %{gccgo_min_vers}
-%else
-BuildRequires: golang
-%endif
+Name: %{goname}
+Version: 0
+Release: 0.13%{?dist}
+Summary: Persist flag values into an ini file
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+License: # FIXME
+URL: %{gourl}
+Source0: %{gosource}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+BuildRequires:
golang(github.com/glacjay/goini)
-%description unit-test
-%{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
- 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}
-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
-for file in ./testdata/*; 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
+%gopkginstall
+%if %{with check}
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%ifarch 0%{?gccgo_arches}
-function gotest { %{gcc_go_test} "$@"; }
-%else
-%if 0%{?golang_test:1}
-function gotest { %{golang_test} "$@"; }
-%else
-function gotest { go test "$@"; }
-%endif
-%endif
-
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-gotest %{import_path}
-%endif
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
-%copying
-%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
+%gocheck
%endif
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%copying
-%doc README.md
-%endif
+%gopkgfiles
%changelog
+* Sun Jun 02 17:44:18 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> -
0-0.13.20190602git87f8127
+- Bump to commit 87f8127c421f4ccdaac33c9fca40c305c654f1de
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.12.git415abc3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -212,4 +85,3 @@ gotest %{import_path}
* Sat Dec 27 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.1.git415abc3
- First package for Fedora
resolves: #1177487
-
diff --git a/sources b/sources
index 6c3531d..2fb17b3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-32aff790330eea726a1daf76689870fd globalconf-415abc3.tar.gz
+SHA512 (globalconf-87f8127c421f4ccdaac33c9fca40c305c654f1de.tar.gz) =
a76997e915049ad8e0551ebaf50002df6df1ae82c6638737fa879241977f01a82d9f523b27464af535fc870dd440cfc784e5f73e162ccbfbb0d64a77c538fdef