The package rpms/golang-github-armon-go-proxyproto.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-armon-go-proxyproto.gi....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change: ============
commit 07f98c323a9c80bbfae4f84599bc85e808583736 Author: Robert-Andr Mauchin zebob.m@gmail.com Date: Mon Nov 12 17:36:28 2018 +0100
Bump to commit 5b7edb60ff5f69b60d1950397f7bde6171f1807d Update to new go packaging
Signed-off-by: Robert-Andr Mauchin zebob.m@gmail.com
diff --git a/.gitignore b/.gitignore index 3eff67f..3df1780 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /go-proxyproto-48572f1.tar.gz +/go-proxyproto-5b7edb60ff5f69b60d1950397f7bde6171f1807d.tar.gz diff --git a/golang-github-armon-go-proxyproto.spec b/golang-github-armon-go-proxyproto.spec index 75be8c6..23eb513 100644 --- a/golang-github-armon-go-proxyproto.spec +++ b/golang-github-armon-go-proxyproto.spec @@ -1,193 +1,57 @@ -# 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 armon -%global repo go-proxyproto # https://github.com/armon/go-proxyproto -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global commit 48572f11356f1843b694f21a290d4f1006bc5e47 -%global commitdate 20170621 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global goipath github.com/armon/go-proxyproto +%global commit 5b7edb60ff5f69b60d1950397f7bde6171f1807d
-Name: golang-%{provider}-%{project}-%{repo} +%gometa + +Name: golang-github-armon-go-proxyproto Version: 0 -Release: 0.3.%{commitdate}git%{shortcommit}%{?dist} +Release: 0.4%{?dist} Summary: Golang package to handle HAProxy Proxy Protocol +# Detected licences +# - Expat License at 'LICENSE' License: MIT -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 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} - - +URL: %{gourl} +Source0: %{gosource}
%description -This library provides the proxyproto package which can be used for servers -listening behind HAProxy of Amazon ELB load balancers. Those load balancers -support the use of a proxy protocol, which provides a simple mechanism for the -server to get the address of the client instead of the load balancer. +%{summary} +
-%if 0%{?with_devel} %package devel Summary: %{summary} BuildArch: noarch
-%if 0%{?with_check} && ! 0%{?with_bundled} -%endif - - -Provides: golang(%{import_path}) = %{version}-%{release} - %description devel -This library provides the proxyproto package which can be used for servers -listening behind HAProxy of Amazon ELB load balancers. Those load balancers -support the use of a proxy protocol, which provides a simple mechanism for the -server to get the address of the client instead of the load balancer. +%{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} && 0%{?with_devel} -%package unit-test-devel -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} - -%if 0%{?with_check} && ! 0%{?with_bundled} -%endif - +%{goipath} prefix.
-%description unit-test-devel -This library provides the proxyproto package which can be used for servers -listening behind HAProxy of Amazon ELB load balancers. Those load balancers -support the use of a proxy protocol, which provides a simple mechanism for the -server to get the address of the client instead of the load balancer. - -This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif
%prep -%setup -q -n %{repo}-%{commit} - -%build -%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" -or -iname "*.s" ) ! -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" >> devel.file-list - - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -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 - 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 -%endif - -%if 0%{?with_devel} -sort -u -o devel.file-list devel.file-list -%endif +%forgeautosetup
-%check -%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel} -%if ! 0%{?with_bundled} -export GOPATH=%{buildroot}/%{gopath}:%{gopath} -%else -# No dependency directories so far - -export GOPATH=%{buildroot}/%{gopath}:%{gopath} -%endif
-%if ! 0%{?gotest:1} -%global gotest go test -%endif +%install +%goinstall
-%gotest %{import_path} -%endif
-#define license tag if not already defined -%{!?_licensedir:%global license %doc} +%check +%gochecks
-%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-devel -f unit-test-devel.file-list -%license LICENSE -%doc README.md -%endif
%changelog +* Mon Nov 12 2018 Robert-Andr Mauchin zebob.m@gmail.com - 0-0.4.20181112git5b7edb6 +- Bump to commit 5b7edb60ff5f69b60d1950397f7bde6171f1807d +- Update to new go packaging + * Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.3.20170621git48572f1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
@@ -196,3 +60,4 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Sat Oct 07 2017 Ed Marshall esm@logic.net - 0-0.1.20170621git48572f1 - First package for Fedora + diff --git a/sources b/sources index 4d8a889..f6a11cc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (go-proxyproto-48572f1.tar.gz) = a07b411a6002f6dfed2404f7f7990c5a8e1ed14f50bb4fecd96100784e0d825852884dc1c169ae2334fba1c8342d50f48ef0f5ebe3444a262c91e91bbe454a12 +SHA512 (go-proxyproto-5b7edb60ff5f69b60d1950397f7bde6171f1807d.tar.gz) = 5eabd8965f439accfd8638953b7a70e1f075bae1b8f091755a2b1a0a2291b2a13364fc1044ca4b9deb1d7880902032f4f58bb790a66f5579376216d7fdc9dadc
arch-excludes@lists.fedoraproject.org