The package rpms/golang-github-gorilla-mux.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-gorilla-mux.git/commit....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change: ============
commit 2249ca0a63a5fccc6a4b5b6a0f55f6418e4ac0ef Author: Jan Chaloupka jchaloup@redhat.com Date: Tue Feb 20 13:48:17 2018 +0100
Autogenerate some parts using the new macros
diff --git a/.gitignore b/.gitignore index 4716686..76cdf70 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/mux-bcd8bc7.tar.gz +/mux-53c1911.tar.gz diff --git a/golang-github-gorilla-mux.spec b/golang-github-gorilla-mux.spec index 97a46fa..02dcbb0 100644 --- a/golang-github-gorilla-mux.spec +++ b/golang-github-gorilla-mux.spec @@ -1,56 +1,17 @@ -# 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 - -%global provider github -%global provider_tld com -%global project gorilla -%global repo mux # https://github.com/gorilla/mux -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} +%global provider_prefix github.com/gorilla/mux +%global gobaseipath %{provider_prefix} %global commit 53c1911da2b537f792e7cafcb446b05ffe33b996 -%global shortcommit %(c=%{commit}; echo ${c:0:7})
-Name: golang-%{provider}-%{project}-%{repo} +%gocraftmeta -i + +Name: %{goname} Version: 1.6.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A powerful URL router and dispatcher for golang License: BSD -URL: https://%%7Bprovider_prefix%7D -Source0: https://%%7Bprovider_prefix%7D/archive/%%7Bcommit%7D/%%7Brepo%7D-%%7Bshortco... - -# 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} +URL: %{gourl} +Source0: %{gosource}
%description Package gorilla/mux implements a request router and dispatcher. @@ -60,19 +21,10 @@ http.ServeMux, mux.Router matches incoming requests against a list of registered routes and calls a handler for the route that matches the URL or other conditions.
-%if 0%{?with_devel} %package devel Summary: %{summary} BuildArch: noarch
-%if 0%{?with_check} -BuildRequires: golang(github.com/gorilla/context) -%endif - -Requires: golang(github.com/gorilla/context) - -Provides: golang(%{import_path}) = %{version}-%{release} - %description devel Package gorilla/mux implements a request router and dispatcher.
@@ -83,97 +35,28 @@ other conditions.
This package contains library source intended for building other packages which use import path with -%{import_path} prefix. -%endif - -%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 -#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 +%{gobaseipath} prefix.
%prep -%setup -q -n %{repo}-%{commit} - -%build +%gosetup
%install -# source codes for building projects -%if 0%{?with_devel} -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") ; 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.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.file-list -done -%endif - -%if 0%{?with_devel} -sort -u -o devel.file-list devel.file-list -%endif +%goinstall
%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 - -%if ! 0%{?gotest:1} -%global gotest go test -%endif - -%gotest %{import_path} -%endif +%gochecks
#define license tag if not already defined %{!?_licensedir:%global license %doc}
-%if 0%{?with_devel} %files devel -f devel.file-list %license LICENSE %doc README.md -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} -%endif - -%if 0%{?with_unit_test} && 0%{?with_devel} -%files unit-test -f unit-test.file-list -%license LICENSE -%doc README.md -%endif
%changelog +* Tue Feb 20 2018 Jan Chaloupka jchaloup@redhat.com - 1.6.1-2 +- Autogenerate some parts using the new macros + * Wed Feb 14 2018 Kaushal kshlmster@gmail.com - 1.6.1-1 - Update to v1.6.1
diff --git a/sources b/sources index 34e3175..e08fa77 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mux-bcd8bc7.tar.gz) = 15200e06ab30be4533a569c26450b85a909ecba6f507ecf27999da3debd85dcc1602fa138ad59c7a8294c772565ca8936cd3c4f668179f4ca35ced4370c3b197 +SHA512 (mux-53c1911.tar.gz) = 73bf47a367199f5a331bdcfc8bdf5f599e48d9bd9b76604c3ce75fc247b837d2e56d260f661adcbb48a6c94e1f3cc2915d23f2f6d096f84118e824ce3c180e85
arch-excludes@lists.fedoraproject.org