The package rpms/golang-github-alecthomas-kingpin.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-alecthomas-kingpin.git... https://src.fedoraproject.org/cgit/rpms/golang-github-alecthomas-kingpin.git....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}} +ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change: ============
commit 34761f4c3ea1a0017c1405d3b967d6e8aac68609 Author: Robert-Andr Mauchin zebob.m@gmail.com Date: Sun Nov 11 21:15:13 2018 +0100
Release 2.2.6 Update to new Go packaging
Signed-off-by: Robert-Andr Mauchin zebob.m@gmail.com
diff --git a/.gitignore b/.gitignore index 38df485..f5d5c9e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /kingpin-1087e65.tar.gz +/kingpin-2.2.6.tar.gz diff --git a/golang-github-alecthomas-kingpin.spec b/golang-github-alecthomas-kingpin.spec index c909458..9cec597 100644 --- a/golang-github-alecthomas-kingpin.spec +++ b/golang-github-alecthomas-kingpin.spec @@ -1,122 +1,60 @@ -%global debug_package %{nil} - -%global provider github -%global provider_tld com -%global project alecthomas -%global repo kingpin # https://github.com/alecthomas/kingpin -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global import_path2 gopkg.in/%{project}/%{repo}.v2 -%global commit 1087e65c9441605df944fb12c33f0fe7072d18ca -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - -Name: golang-%{provider}-%{project}-%{repo} -Version: 2.2.5 -Release: 3.git%{shortcommit}%{?dist} +%global goipath gopkg.in/alecthomas/kingpin.v2 +%global forgeurl https://github.com/alecthomas/kingpin +Version: 2.2.6 + +%gometa + +Name: golang-github-alecthomas-kingpin +Release: 1%{?dist} Summary: A Go command line and flag parser +# Detected licences +# - Expat License at 'COPYING' License: MIT -URL: https://%%7Bprovider_prefix%7D -Source0: %{url}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz +URL: %{gourl} +Source0: %{gosource}
-# 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} +BuildRequires: golang(github.com/alecthomas/template) +BuildRequires: golang(github.com/alecthomas/units) +BuildRequires: golang(github.com/stretchr/testify/assert)
%description %{summary}.
+ %package devel -Summary: %{summary} -BuildArch: noarch -BuildRequires: golang(github.com/alecthomas/template) -BuildRequires: golang(github.com/alecthomas/units) -BuildRequires: golang(github.com/alecthomas/assert) -Requires: golang(github.com/alecthomas/template) -Requires: golang(github.com/alecthomas/units) -Provides: golang(%{import_path}) = %{version}-%{release} -Provides: golang(%{import_path2}) = %{version}-%{release} +Summary: %{summary} +BuildArch: noarch
%description devel %{summary}.
This package contains library source intended for building other packages which use import path with -%{import_path} prefix. - -%package unit-test-devel -Summary: Unit tests for %{name} package -BuildArch: noarch -# test subpackage tests code from devel subpackage -Requires: %{name}-devel = %{version}-%{release} - -%description unit-test-devel -%{summary}. - -This package contains unit tests for project -providing packages with %{import_path} prefix. - +%{goipath} prefix.
%prep -%setup -q -n %{repo}-%{commit} +%forgeautosetup
-%build
%install -# source codes for building projects -install -d -p %{buildroot}%{gopath}/src/%{import_path}/ -echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list -# find all *.go but no *_test.go files and generate devel.file-list -for file in $(find . -iname "*.go" ! -iname "*_test.go" ! -path "./_examples/*") ; 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 - -# Add symlink to older name -install -d -p %{buildroot}%{gopath}/src/gopkg.in/alecthomas/ -echo "%%dir %%{gopath}/src/gopkg.in/alecthomas/." >> devel.file-list -ln -s %{gopath}/src/%{import_path}/ %{buildroot}%{gopath}/src/%{import_path2} -echo "%%{gopath}/src/%{import_path2}" >> devel.file-list - -# testing files for this project -install -d %{buildroot}%{gopath}/src/%{import_path}/ -# find all *_test.go files and generate unit-test.file-list -for file in $(find . -iname "*_test.go"); do - dirprefix=$(dirname $file) - install -d -p %{buildroot}%{gopath}/src/%{import_path}/$dirprefix - cp -pav $file %{buildroot}%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -done - -sort -u -o devel.file-list devel.file-list -sort -u -o unit-test-devel.file-list unit-test-devel.file-list +%goinstall
-%check -export GOPATH=%{buildroot}%{gopath}:%{gopath}
-%if ! 0%{?gotest:1} -%global gotest go test -%endif +%check +%gochecks
-%gotest %{import_path}
%files devel -f devel.file-list -%doc README.md _examples %license COPYING -%dir %{gopath}/src/%{import_path}/cmd +%doc README.md _examples
-%files unit-test-devel -f unit-test-devel.file-list -%doc README.md -%license COPYING
%changelog +* Sun Nov 11 2018 Robert-Andr Mauchin zebob.m@gmail.com - 2.2.6-1 +- Release 2.2.6 +- Update to new Go packaging + * Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 2.2.5-3.git1087e65 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources index 23e0359..81ba87c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (kingpin-1087e65.tar.gz) = 6a546ed2ecc15d8b7d319a59fa4f4c96564b12e12e8440c07a2744f933ca5d68de7aa42f734688d92bc187200de55a467b50405ad5831e77fcd4661314cd8a47 +SHA512 (kingpin-2.2.6.tar.gz) = 09c6bb5782639efc7068ed7606fe22c463b2397dc95a89c27ba567a58da10660bfea60d7836b63dcedf7db702f79fe7247575c33a503990f5ba6ca92e29b06b3
commit 16a3057d57d162febc547a4715b8514dd147caa4 Author: Fedora Release Engineering releng@fedoraproject.org Date: Fri Jul 13 03:18:03 2018 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/golang-github-alecthomas-kingpin.spec b/golang-github-alecthomas-kingpin.spec index 71cb367..c909458 100644 --- a/golang-github-alecthomas-kingpin.spec +++ b/golang-github-alecthomas-kingpin.spec @@ -13,7 +13,7 @@
Name: golang-%{provider}-%{project}-%{repo} Version: 2.2.5 -Release: 2.git%{shortcommit}%{?dist} +Release: 3.git%{shortcommit}%{?dist} Summary: A Go command line and flag parser License: MIT URL: https://%%7Bprovider_prefix%7D @@ -117,6 +117,9 @@ export GOPATH=%{buildroot}%{gopath}:%{gopath} %license COPYING
%changelog +* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 2.2.5-3.git1087e65 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 2.2.5-2.git1087e65 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
commit df3ec569b59fe2966ffdced064f62590ae1df7b9 Author: Fedora Release Engineering releng@fedoraproject.org Date: Wed Feb 7 13:56:31 2018 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/golang-github-alecthomas-kingpin.spec b/golang-github-alecthomas-kingpin.spec index 077e00a..71cb367 100644 --- a/golang-github-alecthomas-kingpin.spec +++ b/golang-github-alecthomas-kingpin.spec @@ -13,7 +13,7 @@
Name: golang-%{provider}-%{project}-%{repo} Version: 2.2.5 -Release: 1.git%{shortcommit}%{?dist} +Release: 2.git%{shortcommit}%{?dist} Summary: A Go command line and flag parser License: MIT URL: https://%%7Bprovider_prefix%7D @@ -117,6 +117,9 @@ export GOPATH=%{buildroot}%{gopath}:%{gopath} %license COPYING
%changelog +* Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 2.2.5-2.git1087e65 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Mon Aug 7 2017 mosquito sensor.wen@gmail.com - 2.2.5-1 - Release 2.2.5
commit f709fdbe1805b618106e90fb9c2934ec8143e447 Author: mosquito sensor.wen@gmail.com Date: Sat Aug 26 19:02:00 2017 +0800
Initial import (#1480973)
Signed-off-by: mosquito sensor.wen@gmail.com
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..38df485 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/kingpin-1087e65.tar.gz diff --git a/golang-github-alecthomas-kingpin.spec b/golang-github-alecthomas-kingpin.spec new file mode 100644 index 0000000..077e00a --- /dev/null +++ b/golang-github-alecthomas-kingpin.spec @@ -0,0 +1,124 @@ +%global debug_package %{nil} + +%global provider github +%global provider_tld com +%global project alecthomas +%global repo kingpin +# https://github.com/alecthomas/kingpin +%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} +%global import_path %{provider_prefix} +%global import_path2 gopkg.in/%{project}/%{repo}.v2 +%global commit 1087e65c9441605df944fb12c33f0fe7072d18ca +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: golang-%{provider}-%{project}-%{repo} +Version: 2.2.5 +Release: 1.git%{shortcommit}%{?dist} +Summary: A Go command line and flag parser +License: MIT +URL: https://%%7Bprovider_prefix%7D +Source0: %{url}/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}} +# 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}. + +%package devel +Summary: %{summary} +BuildArch: noarch +BuildRequires: golang(github.com/alecthomas/template) +BuildRequires: golang(github.com/alecthomas/units) +BuildRequires: golang(github.com/alecthomas/assert) +Requires: golang(github.com/alecthomas/template) +Requires: golang(github.com/alecthomas/units) +Provides: golang(%{import_path}) = %{version}-%{release} +Provides: golang(%{import_path2}) = %{version}-%{release} + +%description devel +%{summary}. + +This package contains library source intended for +building other packages which use import path with +%{import_path} prefix. + +%package unit-test-devel +Summary: Unit tests for %{name} package +BuildArch: noarch +# test subpackage tests code from devel subpackage +Requires: %{name}-devel = %{version}-%{release} + +%description unit-test-devel +%{summary}. + +This package contains unit tests for project +providing packages with %{import_path} prefix. + + +%prep +%setup -q -n %{repo}-%{commit} + +%build + +%install +# source codes for building projects +install -d -p %{buildroot}%{gopath}/src/%{import_path}/ +echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list +# find all *.go but no *_test.go files and generate devel.file-list +for file in $(find . -iname "*.go" ! -iname "*_test.go" ! -path "./_examples/*") ; 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 + +# Add symlink to older name +install -d -p %{buildroot}%{gopath}/src/gopkg.in/alecthomas/ +echo "%%dir %%{gopath}/src/gopkg.in/alecthomas/." >> devel.file-list +ln -s %{gopath}/src/%{import_path}/ %{buildroot}%{gopath}/src/%{import_path2} +echo "%%{gopath}/src/%{import_path2}" >> devel.file-list + +# testing files for this project +install -d %{buildroot}%{gopath}/src/%{import_path}/ +# find all *_test.go files and generate unit-test.file-list +for file in $(find . -iname "*_test.go"); do + dirprefix=$(dirname $file) + install -d -p %{buildroot}%{gopath}/src/%{import_path}/$dirprefix + cp -pav $file %{buildroot}%{gopath}/src/%{import_path}/$file + echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list + while [ "$dirprefix" != "." ]; do + echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list + dirprefix=$(dirname $dirprefix) + done +done + +sort -u -o devel.file-list devel.file-list +sort -u -o unit-test-devel.file-list unit-test-devel.file-list + +%check +export GOPATH=%{buildroot}%{gopath}:%{gopath} + +%if ! 0%{?gotest:1} +%global gotest go test +%endif + +%gotest %{import_path} + +%files devel -f devel.file-list +%doc README.md _examples +%license COPYING +%dir %{gopath}/src/%{import_path}/cmd + +%files unit-test-devel -f unit-test-devel.file-list +%doc README.md +%license COPYING + +%changelog +* Mon Aug 7 2017 mosquito sensor.wen@gmail.com - 2.2.5-1 +- Release 2.2.5 + +* Mon Jan 16 2017 Jaroslav cz.guardian@gmail.com Stepanek 2.2.3-1.gite9044be +- Initial package build diff --git a/sources b/sources new file mode 100644 index 0000000..23e0359 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (kingpin-1087e65.tar.gz) = 6a546ed2ecc15d8b7d319a59fa4f4c96564b12e12e8440c07a2744f933ca5d68de7aa42f734688d92bc187200de55a467b50405ad5831e77fcd4661314cd8a47
arch-excludes@lists.fedoraproject.org