The package rpms/golang-github-bmizerany-perks.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-bmizerany-perks.git/co....
Change: -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change: ============
commit 8f0ebd6a13c50682e63bf18948fc2ca0180f5c91 Author: Jan Chaloupka jchaloup@redhat.com Date: Fri Jun 8 21:50:08 2018 +0200
Upload glide.lock and glide.yaml
diff --git a/.gitignore b/.gitignore index c9dd9a7..770efd1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/perks-d9a9656.tar.gz +/perks-d9a9656a3a4b1c2864fdb44db2ef8619772d92aa.tar.gz diff --git a/Fix-formatting.patch b/Fix-formatting.patch new file mode 100644 index 0000000..182071a --- /dev/null +++ b/Fix-formatting.patch @@ -0,0 +1,25 @@ +From 58da4dd6f4c995037ca9a41f00d3420e552a7298 Mon Sep 17 00:00:00 2001 +From: Jan Chaloupka jchaloup@redhat.com +Date: Fri, 8 Jun 2018 21:52:26 +0200 +Subject: [PATCH] Fix formatting + +--- + histogram/histogram_test.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/histogram/histogram_test.go b/histogram/histogram_test.go +index 0575ebe..2a2d057 100644 +--- a/histogram/histogram_test.go ++++ b/histogram/histogram_test.go +@@ -25,7 +25,7 @@ func TestHistogram(t *testing.T) { + } + + if g := count(h.Bins()); g != numPoints { +- t.Fatalf("binned %d points, wanted %d", g, numPoints) ++ t.Fatalf("binned %d points, wanted %f", g, numPoints) + } + } + +-- +2.7.5 + diff --git a/glide.lock b/glide.lock new file mode 100644 index 0000000..07fa886 --- /dev/null +++ b/glide.lock @@ -0,0 +1,3 @@ +hash: 8cb66e1977dbbf63fa96a2eec7a1c63262a7eaef9fb716ddd3a85d7c33bf8250 +imports: [] +updated: '2018-06-08T19:48:30.498449+00:00' diff --git a/glide.yaml b/glide.yaml new file mode 100644 index 0000000..9d1ba1f --- /dev/null +++ b/glide.yaml @@ -0,0 +1,3 @@ +import: [] +package: github.com/bmizerany/perks + diff --git a/golang-github-bmizerany-perks.spec b/golang-github-bmizerany-perks.spec index 3cb7ad6..0c15735 100644 --- a/golang-github-bmizerany-perks.spec +++ b/golang-github-bmizerany-perks.spec @@ -1,19 +1,20 @@ -# https://github.com/bmizerany/perks -%global provider_prefix github.com/bmizerany/perks -%global gobaseipath %{provider_prefix} +# http://github.com/bmizerany/perks +%global goipath github.com/bmizerany/perks %global commit d9a9656a3a4b1c2864fdb44db2ef8619772d92aa -%global commitdate 20140716
-%gocraftmeta -i +%gometa -i
Name: %{goname} Version: 0 -Release: 0.12.%{commitdate}git%{shortcommit}%{?dist} +Release: 0.13%{?dist} Summary: Effective Computation of Things License: MIT URL: %{gourl} Source0: %{gosource} +Source1: glide.lock +Source2: glide.yaml Patch0: add-license.patch +Patch1: Fix-formatting.patch
%description %{summary} @@ -27,17 +28,19 @@ BuildArch: noarch
This package contains library source intended for building other packages which use import path with -%{gobaseipath} prefix. +%{goipath} prefix.
%prep %gosetup %patch0 -p1 +%patch1 -p1 +cp %{SOURCE1} %{SOURCE2} .
%install -%goinstall quantile/exampledata.txt ./quantile +%goinstall quantile/exampledata.txt ./quantile glide.lock glide.yaml
%check -%gochecks %{gobaseipath}/{histogram,quantile} +%gochecks
#define license tag if not already defined %{!?_licensedir:%global license %doc} @@ -47,6 +50,9 @@ building other packages which use import path with %doc README.md
%changelog +* Fri Jun 08 2018 Jan Chaloupka jchaloup@redhat.com - 0-0.13.gitd9a9656 +- Upload glide.lock and glide.yaml + * Wed Feb 28 2018 Jan Chaloupka jchaloup@redhat.com - 0-0.12.20140716gitd9a9656 - Autogenerate some parts using the new macros
@@ -86,4 +92,3 @@ building other packages which use import path with - First package for Fedora resolves: #1190431
- diff --git a/sources b/sources index 4b610a5..0d969e1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a7bb958770896857f8815cef71f1ebec perks-d9a9656.tar.gz +SHA512 (perks-d9a9656a3a4b1c2864fdb44db2ef8619772d92aa.tar.gz) = 850c3bb64b3f956e1b6c8efafe11e5ac819fa6d87e83f5cddb886aca968aa9c17525a0df9d634b7fca1096c37579856307a2a6e29c0d4260bd0d96453be70d7d
commit 27649c185e91f9e023064efd1a595803865f65ef Author: Jan Chaloupka jchaloup@redhat.com Date: Wed Feb 28 10:36:19 2018 +0100
Exclude quantile
diff --git a/golang-github-bmizerany-perks.spec b/golang-github-bmizerany-perks.spec index b279676..3cb7ad6 100644 --- a/golang-github-bmizerany-perks.spec +++ b/golang-github-bmizerany-perks.spec @@ -37,7 +37,7 @@ building other packages which use import path with %goinstall quantile/exampledata.txt ./quantile
%check -%gochecks %{gobaseipath}/histogram +%gochecks %{gobaseipath}/{histogram,quantile}
#define license tag if not already defined %{!?_licensedir:%global license %doc}
commit 07ec87cdbfde5cfccdfdfd70ec0d54b23ed2d2af Author: Jan Chaloupka jchaloup@redhat.com Date: Wed Feb 28 10:03:33 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-github-bmizerany-perks.spec b/golang-github-bmizerany-perks.spec index 12c2a15..b279676 100644 --- a/golang-github-bmizerany-perks.spec +++ b/golang-github-bmizerany-perks.spec @@ -1,167 +1,55 @@ -%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 - -%global provider github -%global provider_tld com -%global project bmizerany -%global repo perks # https://github.com/bmizerany/perks -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} +%global provider_prefix github.com/bmizerany/perks +%global gobaseipath %{provider_prefix} %global commit d9a9656a3a4b1c2864fdb44db2ef8619772d92aa -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commitdate 20140716
-Name: golang-%{provider}-%{project}-%{repo} +%gocraftmeta -i + +Name: %{goname} Version: 0 -Release: 0.11.git%{shortcommit}%{?dist} +Release: 0.12.%{commitdate}git%{shortcommit}%{?dist} Summary: Effective Computation of Things License: MIT -URL: https://%%7Bprovider_prefix%7D -Source0: https://%%7Bprovider_prefix%7D/archive/%%7Bcommit%7D/%%7Brepo%7D-%%7Bshortco... +URL: %{gourl} +Source0: %{gosource} Patch0: add-license.patch
-# 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}
-%if 0%{?with_devel} %package devel Summary: %{summary} BuildArch: noarch
-%if 0%{?with_check} -%endif - - -Provides: golang(%{import_path}/histogram) = %{version}-%{release} -Provides: golang(%{import_path}/quantile) = %{version}-%{release} -Provides: golang(%{import_path}/topk) = %{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} && 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} +%gosetup %patch0 -p1
-%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" ! -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}/ -install -d -p %{buildroot}/%{gopath}/src/%{import_path}/quantile -echo "%%dir %%{gopath}/src/%%{import_path}/./quantile" >> devel.file-list - -cp -pav quantile/exampledata.txt %{buildroot}/%{gopath}/src/%{import_path}/quantile/. -echo "%%{gopath}/src/%%{import_path}/quantile/exampledata.txt" >> unit-test.file-list -# 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 quantile/exampledata.txt ./quantile
%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}/histogram -%gotest %{import_path}/quantile -%gotest %{import_path}/topk -%endif +%gochecks %{gobaseipath}/histogram
#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 +* Wed Feb 28 2018 Jan Chaloupka jchaloup@redhat.com - 0-0.12.20140716gitd9a9656 +- Autogenerate some parts using the new macros + * Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.11.gitd9a9656 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
commit 846fa84ebdcc97e72427b08b9b2a7e769f1a2a7d Author: Fedora Release Engineering releng@fedoraproject.org Date: Wed Feb 7 14:00:49 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-bmizerany-perks.spec b/golang-github-bmizerany-perks.spec index dff6bed..12c2a15 100644 --- a/golang-github-bmizerany-perks.spec +++ b/golang-github-bmizerany-perks.spec @@ -30,7 +30,7 @@
Name: golang-%{provider}-%{project}-%{repo} Version: 0 -Release: 0.10.git%{shortcommit}%{?dist} +Release: 0.11.git%{shortcommit}%{?dist} Summary: Effective Computation of Things License: MIT URL: https://%%7Bprovider_prefix%7D @@ -162,6 +162,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath} %endif
%changelog +* Wed Feb 07 2018 Fedora Release Engineering releng@fedoraproject.org - 0-0.11.gitd9a9656 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Aug 02 2017 Fedora Release Engineering releng@fedoraproject.org - 0-0.10.gitd9a9656 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild