Architecture specific change in rpms/golang-github-mvo5-goconfigparser.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-mvo5-goconfigparser.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-mvo5-goconfigparser....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit 2b5cb704857ab69cd79414997ba2bfc093c68758
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Wed May 29 21:08:21 2019 +0200
Release 0.2, commit 6a365a5a3f41851b9e63e1234181bf9b0cf0be8c
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index e69de29..86a2b3d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/goconfigparser-6a365a5a3f41851b9e63e1234181bf9b0cf0be8c.tar.gz
diff --git a/goconfigparser-efba970.tar.gz b/goconfigparser-efba970.tar.gz
deleted file mode 100644
index de40699..0000000
Binary files a/goconfigparser-efba970.tar.gz and /dev/null differ
diff --git a/golang-github-mvo5-goconfigparser.spec b/golang-github-mvo5-goconfigparser.spec
index 96d1a25..4b6e81f 100644
--- a/golang-github-mvo5-goconfigparser.spec
+++ b/golang-github-mvo5-goconfigparser.spec
@@ -1,173 +1,57 @@
-%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
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project mvo5
-%global repo goconfigparser
# https://github.com/mvo5/goconfigparser
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit efba97014b80c1d34ead4f3bbafc5d8effe4d2b0
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.7.git%{shortcommit}%{?dist}
-Summary: Golang implementation of Python ConfigParser
-License: MIT
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%global goipath github.com/mvo5/goconfigparser
+Version: 0.2
+%global commit 6a365a5a3f41851b9e63e1234181bf9b0cf0be8c
-# 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}
+%gometa
-%if ! 0%{?with_bundled}
-BuildRequires: golang(gopkg.in/check.v1)
-%endif
-
-%description
-This parser is build as a go equivalent of the Python ConfigParser module and
-is aimed for maximum compatibility for both the file format and the API. This
-should make it easy to use existing python style configuration files from go
-and also ease the porting of existing python code.
+%global common_description %{expand:
+This parser is build as a Go equivalent of the Python ConfigParser module and is
+aimed for maximum compatibility for both the file format and the API. This
+should make it easy to use existing python style configuration files from Go and
+also ease the porting of existing python code.}
+%global golicenses COPYING
+%global godocs README.md
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires: golang(gopkg.in/check.v1)
-%endif
-
-Requires: golang(gopkg.in/check.v1)
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-
-%description devel
-%{summary}
+Name: %{goname}
+Release: 1%{?dist}
+Summary: Golang implementation of Python ConfigParser
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+License: MIT
+URL: %{gourl}
+Source0: %{gosource}
-%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
+%if %{with check}
+# Tests
+BuildRequires: golang(gopkg.in/check.v1)
%endif
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test-devel
-%{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
-mkdir -p src/github.com/mvo5
-ln -s ../../../ src/github.com/mvo5/goconfigparser
-
-%if ! 0%{?with_bundled}
-export GOPATH=$(pwd):%{gopath}
-%else
-export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
-%endif
+%goprep
%install
-install -d -p %{buildroot}%{_bindir}
-
-# 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-devel.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%gopkginstall
+%if %{with check}
%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
-
-%gotest %{import_path}
+%gocheck
%endif
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-%files
-%license COPYING
-%doc README.md
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
-%license COPYING
-%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 COPYING
-%doc README.md
-%endif
+%gopkgfiles
%changelog
+* Wed May 29 20:15:44 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0.2-1.20190529git6a365a5
+- Release 0.2, commit 6a365a5a3f41851b9e63e1234181bf9b0cf0be8c
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.7.gitefba970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -188,5 +72,3 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
* Fri Jun 10 2016 Zygmunt Krynicki <me(a)zygoon.pl> - 0-0.1.git2642627
- First package for Fedora
-
-
diff --git a/sources b/sources
index e69de29..be06200 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (goconfigparser-6a365a5a3f41851b9e63e1234181bf9b0cf0be8c.tar.gz) = 1a748d84c7b734cc2e1c050bc4bc7038e51b0d386fa90be17b86ab56602e0acb49fa04726b3d333858bbaa5eb2d1d8ad2c992e2962e3d99e6c67beacc045e24d
4 years, 10 months
Architecture specific change in rpms/golang-github-spacemonkeygo-openssl.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-spacemonkeygo-openssl.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-spacemonkeygo-opens....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm} ppc64le s390x}
Thanks.
Full change:
============
commit 28a61cc5d4d1bec0d29eebd8726d4e94a9a623d6
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Wed May 29 17:27:16 2019 +0200
Bump to commit c2dcc5cca94ac8f7f3f0c20e20050d4cce9d9730
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index ea6169a..5668e77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/openssl-e863d83.tar.gz
+/openssl-c2dcc5cca94ac8f7f3f0c20e20050d4cce9d9730.tar.gz
diff --git a/golang-github-spacemonkeygo-openssl.spec b/golang-github-spacemonkeygo-openssl.spec
index a499157..4b8cf41 100644
--- a/golang-github-spacemonkeygo-openssl.spec
+++ b/golang-github-spacemonkeygo-openssl.spec
@@ -1,190 +1,59 @@
-# 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
-
-%if ! 0%{?gobuild:1}
-%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
-%endif
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project spacemonkeygo
-%global repo openssl
# https://github.com/spacemonkeygo/openssl
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit e863d83e403e8d694fa7d17f4af3cd176624ef12
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global commitdate 20171219
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.5.%{commitdate}git%{shortcommit}%{?dist}
-Summary: OpenSSL bindings for Go
-# Detected licences
-# - Unknown at 'LICENSE'
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-# Fix failure of tests with golang 1.10
-# https://github.com/spacemonkeygo/openssl/pull/83
-Patch0: tests-golang-1.10.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 aarch64 %{arm} ppc64le s390x}
-# 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_bundled}
-# Remaining dependencies not included in main packages
-BuildRequires: golang(github.com/spacemonkeygo/spacelog)
-%endif
+%global goipath github.com/spacemonkeygo/openssl
+%global commit c2dcc5cca94ac8f7f3f0c20e20050d4cce9d9730
-%description
-%{summary}
-
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%gometa
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires: golang(github.com/spacemonkeygo/spacelog)
-%endif
+%global godevelheader %{expand:
+Requires: openssl-devel}
-Requires: golang(github.com/spacemonkeygo/spacelog)
+%global common_description %{expand:
+Package Openssl is a light wrapper around OpenSSL for Go.
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/utils) = %{version}-%{release}
+It strives to provide a near-drop-in replacement for the Go standard library tls
+package.}
-%description devel
-%{summary}
+%global golicenses LICENSE
+%global godocs AUTHORS README.md
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+Name: %{goname}
+Version: 0
+Release: 0.6%{?dist}
+Summary: OpenSSL bindings for Go
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test-devel
-Summary: Unit tests for %{name} package
-%if 0%{?with_check}
-BuildRequires: openssl-devel
-%endif
+# Upstream license specification: Apache-2.0
+License: ASL 2.0
+URL: %{gourl}
+Source0: %{gosource}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+BuildRequires: golang(github.com/spacemonkeygo/spacelog)
+BuildRequires: openssl-devel
-%description unit-test-devel
-%{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}
-%patch0 -p1
-
-%build
-mkdir -p src/%{provider}.%{provider_tld}/%{project}
-ln -s ../../../ src/%{import_path}
+%goprep
%install
-install -d -p %{buildroot}%{_bindir}
-
-# 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" -or -iname "*.c" -or -iname "*.h" \) \! -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
+%gopkginstall
+%if %{with check}
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-export CGO_CFLAGS=" -I$(pwd)"
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
-%license LICENSE
-%doc README.md AUTHORS
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%gocheck
%endif
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc README.md AUTHORS
-%endif
+%gopkgfiles
%changelog
+* Wed May 29 16:42:06 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0-0.6.20190529gitc2dcc5c
+- Bump to commit c2dcc5cca94ac8f7f3f0c20e20050d4cce9d9730
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.5.20171219gite863d83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -199,4 +68,3 @@ export CGO_CFLAGS=" -I$(pwd)"
* Mon Jan 15 2018 Marek Skalick <mskalick(a)redhat.com> - 0-0.1.20171219gite863d83
- First package for Fedora
-
diff --git a/sources b/sources
index b8d1b1f..bdc1754 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (openssl-e863d83.tar.gz) = 7ad633c2b600a416850eb2a62503c3d5ab4e293b02355458fce7cdc7dbf00225cd12c4eafb3072d82ee68d75e29af6430b55484c2b1ad3a34a71245a4fb593e8
+SHA512 (openssl-c2dcc5cca94ac8f7f3f0c20e20050d4cce9d9730.tar.gz) = 527bf4941f00592cdf69089ed7ffce2c2a04722c36263864127c02cb16f3be2eed047e93815587b8cd8d3a6c0254a2488fe46da8df749eea7d932bf1f0aa1c17
diff --git a/tests-golang-1.10.patch b/tests-golang-1.10.patch
deleted file mode 100644
index b2b4859..0000000
--- a/tests-golang-1.10.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-From 27042ed400b5f94b86ee8d722e788df6aea66a28 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <jcajka(a)redhat.com>
-Date: Mon, 15 Jan 2018 12:04:18 +0100
-Subject: [PATCH] Make test confom to new requirement enforced in go 1.10
- https://tip.golang.org/doc/go1.10#test. With out this change tests will
- always fails with go 1.10+.
-
----
- key_test.go | 4 ++--
- sha1_test.go | 4 ++--
- sha256_test.go | 4 ++--
- 3 files changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/key_test.go b/key_test.go
-index 1bbaf10..3f064df 100644
---- a/key_test.go
-+++ b/key_test.go
-@@ -77,7 +77,7 @@ func TestMarshal(t *testing.T) {
- }
- tls_der := x509.MarshalPKCS1PrivateKey(tls_key)
- if !bytes.Equal(der, tls_der) {
-- t.Fatal("invalid private key der bytes: %s\n v.s. %s\n",
-+ t.Fatalf("invalid private key der bytes: %s\n v.s. %s\n",
- hex.Dump(der), hex.Dump(tls_der))
- }
-
-@@ -291,7 +291,7 @@ func TestMarshalEC(t *testing.T) {
- t.Fatal(err)
- }
- if !bytes.Equal(der, tls_der) {
-- t.Fatal("invalid private key der bytes: %s\n v.s. %s\n",
-+ t.Fatalf("invalid private key der bytes: %s\n v.s. %s\n",
- hex.Dump(der), hex.Dump(tls_der))
- }
-
-diff --git a/sha1_test.go b/sha1_test.go
-index 2c25978..37808b5 100644
---- a/sha1_test.go
-+++ b/sha1_test.go
-@@ -35,7 +35,7 @@ func TestSHA1(t *testing.T) {
- }
-
- if expected != got {
-- t.Fatal("exp:%x got:%x", expected, got)
-+ t.Fatalf("exp:%x got:%x", expected, got)
- }
- }
- }
-@@ -73,7 +73,7 @@ func TestSHA1Writer(t *testing.T) {
- }
-
- if got != exp {
-- t.Fatal("exp:%x got:%x", exp, got)
-+ t.Fatalf("exp:%x got:%x", exp, got)
- }
- }
- }
-diff --git a/sha256_test.go b/sha256_test.go
-index b4e7af8..467e503 100644
---- a/sha256_test.go
-+++ b/sha256_test.go
-@@ -35,7 +35,7 @@ func TestSHA256(t *testing.T) {
- }
-
- if expected != got {
-- t.Fatal("exp:%x got:%x", expected, got)
-+ t.Fatalf("exp:%x got:%x", expected, got)
- }
- }
- }
-@@ -73,7 +73,7 @@ func TestSHA256Writer(t *testing.T) {
- }
-
- if got != exp {
-- t.Fatal("exp:%x got:%x", exp, got)
-+ t.Fatalf("exp:%x got:%x", exp, got)
- }
- }
- }
4 years, 10 months
Architecture specific change in rpms/golang-github-dsnet-compress.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-dsnet-compress.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-dsnet-compress.git/....
Change:
+%ifnarch ppc64le
Thanks.
Full change:
============
commit ef95da4e630dfc18071e47368c856d18645d9aaf
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Tue May 28 19:56:20 2019 +0200
Release 0.0.1
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index a693903..a7e0250 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/compress-cc9eb1d7ad760af14e8f918698f745e80377af4f.tar.gz
+/compress-0.0.1.tar.gz
diff --git a/0001-fix-bench-test-on-32bit-architectures.patch b/0001-fix-bench-test-on-32bit-architectures.patch
deleted file mode 100644
index a2d91fb..0000000
--- a/0001-fix-bench-test-on-32bit-architectures.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From ad5fd1c9434c3832bd22e721cef7ae2ccd2e8cdb Mon Sep 17 00:00:00 2001
-From: Dominik 'Rathann' Mierzejewski <dominik(a)greysector.net>
-Date: Wed, 28 Mar 2018 11:51:13 +0200
-Subject: [PATCH] fix bench test on 32bit architectures
-
-Fixes:
-./config.go:277:42: constant 10000000000 overflows int
-./config.go:277:48: constant 100000000000 overflows int
-./config.go:277:54: constant 1000000000000 overflows int
-while running internal/tool/bench test.
----
- internal/tool/bench/benchmarks.go | 2 +-
- internal/tool/bench/config.go | 4 ++--
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/internal/tool/bench/benchmarks.go b/internal/tool/bench/benchmarks.go
-index 059d69c..1537bf5 100644
---- a/internal/tool/bench/benchmarks.go
-+++ b/internal/tool/bench/benchmarks.go
-@@ -164,7 +164,7 @@ func benchmarkSuite(codecs []string, files []file, levels, sizes []int, tick fun
- b = testutil.ResizeData(b, n)
- }
- fname := strings.Replace(f.Rel, string(filepath.Separator), "_", -1)
-- name := fmt.Sprintf("%s:%d:%s", fname, l, intName(len(b)))
-+ name := fmt.Sprintf("%s:%d:%s", fname, l, intName(int64(len(b))))
- for j, c := range codecs {
- if tick != nil {
- tick()
-diff --git a/internal/tool/bench/config.go b/internal/tool/bench/config.go
-index a6a4192..ba0bc5d 100644
---- a/internal/tool/bench/config.go
-+++ b/internal/tool/bench/config.go
-@@ -252,7 +252,7 @@ func (vs *varStrings) Set(ss string) error {
- func (ds *varInts) String() string {
- var ss []string
- for _, d := range *ds {
-- ss = append(ss, intName(d))
-+ ss = append(ss, intName(int64(d)))
- }
- return strings.Join(ss, ",")
- }
-@@ -272,7 +272,7 @@ func (ds *varInts) Set(ss string) error {
- // It uses scientific notation for exact powers of 10.
- // It uses SI suffixes for powers of 1024.
- // If the number is small enough, it will be printed as is.
--func intName(n int) string {
-+func intName(n int64) string {
- switch n {
- case 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12:
- s := fmt.Sprintf("%e", float64(n))
---
-2.14.3
-
diff --git a/golang-github-dsnet-compress.spec b/golang-github-dsnet-compress.spec
index 7500fd5..918aeb5 100644
--- a/golang-github-dsnet-compress.spec
+++ b/golang-github-dsnet-compress.spec
@@ -1,21 +1,21 @@
-# disable tests on ppc64le for now
-# https://bugzilla.redhat.com/show_bug.cgi?id=1675014
-%ifarch ppc64le
-%bcond_with check
-%else
+# Generated by go2rpm
+%ifnarch ppc64le
%bcond_without check
%endif
-%global goipath github.com/dsnet/compress
-%global commit cc9eb1d7ad760af14e8f918698f745e80377af4f
-Version: 0
+
+# https://github.com/dsnet/compress
+%global goipath github.com/dsnet/compress
+Version: 0.0.1
+
+%gometa
%global common_description %{expand:
-This repository hosts a collection of compression related libraries. The goal of
+This package hosts a collection of compression related libraries. The goal of
this project is to provide pure Go implementations for popular compression
algorithms beyond what the Go standard library provides. The goals for these
packages are as follows:
-* Maintainable: That the code remains well documented, well tested, readable,
- easy to maintain, and easy to verify that it conforms to the specification
+* Maintainable: That the code remains well documented, well tested, readable,
+ easy to maintain, and easy to verify that it conforms to the specification
for the format being implemented.
* Performant: To be able to compress and decompress within at least 80% of the
rates that the C implementations are able to achieve.
@@ -30,77 +30,56 @@ situations, often complicates the API. Thus, this package will attempt to
satisfy all the goals, but will defer to favoring maintainability when the
performance or flexibility benefits are not significant enough.}
-%gometa
+%global golicenses LICENSE.md
+%global godocs doc README.md
-Name: %{goname}
-Release: 0.5%{?dist}
-Summary: Collection of compression related Go packages
-License: BSD
-URL: %{gourl}
-Source0: %{gosource}
-# https://github.com/dsnet/compress/pull/63
-Patch0: 0001-fix-bench-test-on-32bit-architectures.patch
-%if %{with check}
-BuildRequires: brotli-devel
-BuildRequires: bzip2-devel
-BuildRequires: golang(github.com/dsnet/golib/unitconv)
-BuildRequires: golang(github.com/klauspost/compress/flate)
-BuildRequires: golang(github.com/ulikunitz/xz/lzma)
-BuildRequires: libzstd-devel
-BuildRequires: xz-devel
-BuildRequires: zlib-devel
-%endif
+Name: %{goname}
+Release: 1%{?dist}
+Summary: Collection of compression related Go packages
-%description
-%{common_description}
+# Upstream license specification: BSD-3-Clause
+License: BSD
+URL: %{gourl}
+Source0: %{gosource}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+BuildRequires: golang(github.com/dsnet/golib/unitconv)
+BuildRequires: golang(github.com/klauspost/compress/flate)
+BuildRequires: golang(github.com/ulikunitz/xz/lzma)
+BuildRequires: brotli-devel
+BuildRequires: bzip2-devel
+BuildRequires: libzstd-devel
+BuildRequires: xz-devel
+BuildRequires: zlib-devel
-%description devel
-%{common_description}
-
-This package contains the source code needed for building packages that import
-the %{goipath} Go namespace.
-
-%package doc
-Summary: %{summary} - documentation
-BuildArch: noarch
-
-%description doc
+%description
%{common_description}
-This package contains the documentations.
+%gopkg
%prep
-%forgesetup
-%patch0 -p1
+%goprep
%install
-%goinstall
+%gopkginstall
%if %{with check}
%check
-%gochecks
+%gocheck
%endif
-%files devel -f devel.file-list
-%license LICENSE.md
-%doc README.md
-
-%files doc
-%doc doc/*
+%gopkgfiles
%changelog
+* Tue May 28 18:20:19 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0.0.1-1
+- Release 0.0.1
+
* Wed Feb 13 2019 Dominik Mierzejewski <dominik(a)greysector.net> - 0-0.5.gitcc9eb1d
- disable tests on ppc64le temporarily (#1675014)
* Thu Jan 31 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.5.gitcc9eb1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-* Tue Oct 23 2018 Nicolas Mailhot <nim(a)fedoraproject.org>
-- 0-0.4
+* Tue Oct 23 2018 Nicolas Mailhot <nim(a)fedoraproject.org> - 0-0.4
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as its just an alias
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.o...
diff --git a/sources b/sources
index 898d108..6dc67df 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (compress-cc9eb1d7ad760af14e8f918698f745e80377af4f.tar.gz) = 4d991bc8d1c34f792eb28b0fcfa0b6cfd054592170ef8e088aa80e9d1910d07e7855aae9f199f647ac5c3f05ef11f04352349734e4498314e11d5887e6032424
+SHA512 (compress-0.0.1.tar.gz) = 24b545fdfa6e5dcd942c9fc09614f755db341a16734f95dead2d344f06c74ca1c14e0b2674977066dee6094fd4d3bd7581ed9fe0285aeb1c62d2c68e0a3a095b
4 years, 10 months
Architecture specific change in rpms/golang-github-skynetservices-skydns.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-skynetservices-skydns.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-skynetservices-skyd....
Change:
-ExclusiveArch: %{ix86} x86_64 %{arm}
Thanks.
Full change:
============
commit 9dc3a891fad8a4b851b7f1088940bae44395f8de
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Tue May 28 15:54:00 2019 +0200
Release 2.5.3a, commit 15f42ac021b1f17a8b329f409539aa1624458da0
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 7cec732..800bf9f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/skydns-6c94cbe.tar.gz
/skydns-8688008.tar.gz
+/skydns-15f42ac021b1f17a8b329f409539aa1624458da0.tar.gz
diff --git a/0001-Fix-for-new-github.com-coreos-go-systemd.patch b/0001-Fix-for-new-github.com-coreos-go-systemd.patch
new file mode 100644
index 0000000..a7d2b1b
--- /dev/null
+++ b/0001-Fix-for-new-github.com-coreos-go-systemd.patch
@@ -0,0 +1,34 @@
+From bc5ed1725695dca5c10ac4f0af122689b9f36dd7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m(a)gmail.com>
+Date: Tue, 28 May 2019 15:00:52 +0200
+Subject: [PATCH] Fix for new github.com/coreos/go-systemd
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
+---
+ server/server.go | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/server/server.go b/server/server.go
+index 9162f94..1c01893 100644
+--- a/server/server.go
++++ b/server/server.go
+@@ -63,11 +63,11 @@ func (s *server) Run() error {
+ }
+
+ if s.config.Systemd {
+- packetConns, err := activation.PacketConns(false)
++ packetConns, err := activation.PacketConns()
+ if err != nil {
+ return err
+ }
+- listeners, err := activation.Listeners(true)
++ listeners, err := activation.Listeners()
+ if err != nil {
+ return err
+ }
+--
+2.21.0
+
diff --git a/0001-Remove-ErrTruncated.patch b/0001-Remove-ErrTruncated.patch
new file mode 100644
index 0000000..87c5468
--- /dev/null
+++ b/0001-Remove-ErrTruncated.patch
@@ -0,0 +1,29 @@
+From e6908463530c926029f6d7a977f7d147a5c8d86e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m(a)gmail.com>
+Date: Tue, 28 May 2019 15:24:02 +0200
+Subject: [PATCH] Remove ErrTruncated
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
+---
+ server/stub.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/server/stub.go b/server/stub.go
+index f7223f4..6e8b38c 100644
+--- a/server/stub.go
++++ b/server/stub.go
+@@ -103,7 +103,7 @@ Redo:
+ } else {
+ r, err = exchangeWithRetry(s.dnsUDPclient, req, ns[nsid])
+ }
+- if err == nil || err == dns.ErrTruncated {
++ if err == nil {
+ r.Compress = true
+ r.Id = req.Id
+ w.WriteMsg(r)
+--
+2.21.0
+
diff --git a/golang-github-skynetservices-skydns.spec b/golang-github-skynetservices-skydns.spec
index adc23cd..f340ec2 100644
--- a/golang-github-skynetservices-skydns.spec
+++ b/golang-github-skynetservices-skydns.spec
@@ -1,308 +1,118 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 1
-# server test takes more them 4 minutes, skipping
-%global with_check 0
-%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
+# Generated by go2rpm
+%bcond_without check
-%define copying() \
-%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7 \
-%license %{*} \
-%else \
-%doc %{*} \
-%endif
+# https://github.com/skynetservices/skydns
+%global goipath github.com/skynetservices/skydns
+Version: 2.5.3
+%global commit 15f42ac021b1f17a8b329f409539aa1624458da0
-%global isgccgoarch 0
-%if 0%{?gccgo_arches:1}
-%ifarch %{gccgo_arches}
-%global isgccgoarch 1
-%endif
-%endif
+%gometa
-%global provider github
-%global provider_tld com
-%global project skynetservices
-%global repo skydns
-# https://github.com/skynetservices/skydns
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 8688008ce43981615bad361523f68f1b36af2595
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 2.5.3
-Release: 0.10.a.git%{shortcommit}%{?dist}
-Summary: DNS service discovery for etcd
-License: MIT
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-Source1: %{repo}.service
-Source2: %{repo}.conf
-Source3: %{repo}.socket
-
-# 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
-%if %{isgccgoarch}
-BuildRequires: gcc-go >= %{gccgo_min_vers}
-%else
-BuildRequires: golang
-%endif
+%global common_description %{expand:
+DNS service discovery for etcd.}
-%description
-%{summary}
+%global golicenses LICENSE
+%global godocs AUTHORS CONTRIBUTORS README.md
-%package -n %{repo}
-Summary: %{summary}
+Name: %{goname}
+Release: 1.a%{?dist}
+Summary: DNS service discovery for etcd
-BuildRequires: systemd
-%if ! 0%{?with_bundled}
-BuildRequires: golang(github.com/coreos/go-etcd/etcd)
+License: MIT
+URL: %{gourl}
+Source0: %{gosource}
+Source1: skydns.service
+Source2: skydns.conf
+Source3: skydns.socket
+# Fix for new github.com/coreos/go-systemd
+Patch0: 0001-Fix-for-new-github.com-coreos-go-systemd.patch
+# Remove ErrTruncated, obsolete in new github.com/miekg/dns
+Patch1: 0001-Remove-ErrTruncated.patch
+
+BuildRequires: golang(go.etcd.io/etcd/client)
+BuildRequires: golang(go.etcd.io/etcd/clientv3)
+BuildRequires: golang(go.etcd.io/etcd/mvcc/mvccpb)
+BuildRequires: golang(go.etcd.io/etcd/pkg/transport)
BuildRequires: golang(github.com/coreos/go-systemd/activation)
BuildRequires: golang(github.com/miekg/dns)
BuildRequires: golang(github.com/prometheus/client_golang/prometheus)
-BuildRequires: golang(github.com/rcrowley/go-metrics)
-BuildRequires: golang(github.com/rcrowley/go-metrics/stathat)
-%endif
-
-Requires: etcd
-Requires(pre): shadow-utils
-Requires(post): systemd
-Requires(preun): systemd
-Requires(postun): systemd
-
-Provides: %{repo} = %{version}-%{release}
-
-%description -n %{repo}
-%{summary}
-
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check}
-BuildRequires: golang(github.com/coreos/go-etcd/etcd)
-BuildRequires: golang(github.com/coreos/go-systemd/activation)
-BuildRequires: golang(github.com/miekg/dns)
-BuildRequires: golang(github.com/prometheus/client_golang/prometheus)
-BuildRequires: golang(github.com/rcrowley/go-metrics)
-BuildRequires: golang(github.com/rcrowley/go-metrics/stathat)
-%endif
+BuildRequires: systemd-rpm-macros
-Requires: golang(github.com/coreos/go-etcd/etcd)
-Requires: golang(github.com/coreos/go-systemd/activation)
-Requires: golang(github.com/miekg/dns)
-Requires: golang(github.com/prometheus/client_golang/prometheus)
-Requires: golang(github.com/rcrowley/go-metrics)
-Requires: golang(github.com/rcrowley/go-metrics/stathat)
-
-Provides: golang(%{import_path}/backends/etcd) = %{version}-%{release}
-Provides: golang(%{import_path}/cache) = %{version}-%{release}
-Provides: golang(%{import_path}/msg) = %{version}-%{release}
-Provides: golang(%{import_path}/server) = %{version}-%{release}
-Provides: golang(%{import_path}/stats) = %{version}-%{release}
-
-%description devel
-%{summary}
-
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
+%if %{with check}
+# Tests
+BuildRequires: golang(golang.org/x/net/context)
%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
-%if %{isgccgoarch}
-BuildRequires: gcc-go >= %{gccgo_min_vers}
-%else
-BuildRequires: golang
-%endif
+%description
+%{common_description}
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+%package -n skydns
+Summary: DNS service discovery for etcd
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+Requires: etcd
+Requires(pre): shadow-utils
+Provides: skydns = %{version}-%{release}
-%description unit-test
-%{summary}
+%description -n skydns
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%gopkg
%prep
-%setup -q -n %{repo}-%{commit}
+%goprep
+%patch0 -p1
+%patch1 -p1
+find . -name "*.go" -exec sed -i "s|github.com/coreos/etcd|go.etcd.io/etcd|" "{}" +;
%build
-# If gccgo_arches does not fit or is not defined fall through to golang
-# gccco arches
-%if %{isgccgoarch}
-%if 0%{?gcc_go_build:1}
-export GOCOMPILER='%{gcc_go_build}'
-%else
-echo "No compiler for SA"
-exit 1
-%endif
-# golang arches (due to ExclusiveArch)
-%else
-%if 0%{?golang_build:1}
-export GOCOMPILER='%{golang_build} -ldflags "$LDFLAGS"'
-%else
-export GOCOMPILER='go build -ldflags "$LDFLAGS"'
-%endif
-%endif
+%gobuild -o %{gobuilddir}/bin/skydns %{goipath}
-export LDFLAGS=
-%if 0%{?with_debug}
-%if %{isgccgoarch}
-export OLD_RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
-function gobuild {
-export RPM_OPT_FLAGS="$OLD_RPM_OPT_FLAGS -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
-eval ${GOCOMPILER} -a -v -x "$@";
-}
-%else
-export OLD_LDFLAGS="$LDFLAGS"
-function gobuild {
-export LDFLAGS="$OLD_LDFLAGS -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
-eval ${GOCOMPILER} -a -v -x "$@";
-}
-%endif
-%else
-function gobuild { eval ${GOCOMPILER} -a -v -x "$@"; }
-%endif
+%install
+%gopkginstall
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
-mkdir -p src/github.com/skynetservices
-ln -s ../../../ src/github.com/skynetservices/skydns
+install -Dpm 0644 %{SOURCE1} %{buildroot}%{_unitdir}/skydns.service
+install -Dpm 0644 %{SOURCE3} %{buildroot}%{_unitdir}/skydns.socket
+install -dm 0755 %{buildroot}%{_sysconfdir}/skydns
+install -m 644 -t %{buildroot}%{_sysconfdir}/skydns %{SOURCE2}
+install -dm 0755 %{buildroot}%{_sharedstatedir}/skydns
-%if ! 0%{?with_bundled}
-export GOPATH=$(pwd):%{gopath}
-%else
-echo "Unable to build from bundled dependencies. No Godeps directory"
-exit 1
-%endif
+%pre -n skydns
+getent group skydns >/dev/null || groupadd -r skydns
+getent passwd skydns >/dev/null || useradd -r -g skydns -d %{_sharedstatedir}/skydns \
+ -s /sbin/nologin -c "Skydns user" skydns
-gobuild -o bin/%{repo} %{import_path}
+%post -n skydns
+%systemd_post skydns.service
-%install
-install -d -p %{buildroot}%{_bindir}
-install -p -m 755 bin/%{repo} %{buildroot}%{_bindir}
-install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{repo}.service
-install -d -m 0755 %{buildroot}%{_sysconfdir}/%{repo}
-install -m 644 -t %{buildroot}%{_sysconfdir}/%{repo} %{SOURCE2}
-install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{repo}.socket
-
-
-# And create /var/lib/skydns, even if not used at the moment
-install -d -m 0755 %{buildroot}%{_sharedstatedir}/%{repo}
-
-# 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
+%preun -n skydns
+%systemd_preun skydns.service
-# 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
-%endif
+%postun -n skydns
+%systemd_postun skydns.service
+%if %{with check}
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if %{isgccgoarch}
-function gotest { %{gcc_go_test} "$@"; }
-%else
-%if 0%{?golang_test:1}
-function gotest { %{golang_test} "$@"; }
-%else
-function gotest { go test "$@"; }
-%endif
+# server: needs network
+%gocheck -d server
%endif
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-gotest %{import_path}/cache
-gotest %{import_path}/msg
-gotest %{import_path}/server
-%endif
+%files -n skydns
+%license LICENSE
+%doc AUTHORS CONTRIBUTORS README.md
+%{_bindir}/*
+%dir %attr(-,skydns,skydns) %{_sharedstatedir}/skydns
+%{_unitdir}/skydns.service
+%{_unitdir}/skydns.socket
+%config(noreplace) %{_sysconfdir}/skydns
-%pre -n %{repo}
-getent group %{repo} >/dev/null || groupadd -r %{repo}
-getent passwd %{repo} >/dev/null || useradd -r -g %{repo} -d %{_sharedstatedir}/%{repo} \
- -s /sbin/nologin -c "skydns user" %{repo}
-
-%post -n %{repo}
-%systemd_post %{repo}.service
-
-%preun -n %{repo}
-%systemd_preun %{repo}.service
-
-%postun -n %{repo}
-%systemd_postun %{repo}.service
-
-%files -n %{repo}
-%copying LICENSE
-%doc README.md AUTHORS CONTRIBUTORS
-%{_bindir}/%{repo}
-%dir %attr(-,%{repo},%{repo}) %{_sharedstatedir}/%{repo}
-%{_unitdir}/%{repo}.service
-%{_unitdir}/%{repo}.socket
-%config(noreplace) %{_sysconfdir}/%{repo}
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
-%copying LICENSE
-%doc README.md AUTHORS CONTRIBUTORS
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
-%endif
-
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%copying LICENSE
-%doc README.md AUTHORS CONTRIBUTORS
-%endif
+%gopkgfiles
%changelog
+* Tue May 28 14:30:45 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 2.5.3-1.a.20190528git15f42ac
+- Release 2.5.3a, commit 15f42ac021b1f17a8b329f409539aa1624458da0
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.5.3-0.10.a.git8688008
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/sources b/sources
index afec9cc..a670dfd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0a05dfdceeeaee5e7537d55cb3b79fda skydns-8688008.tar.gz
+SHA512 (skydns-15f42ac021b1f17a8b329f409539aa1624458da0.tar.gz) = 92d7889169a82c8314b8c492e83dec46c94a933522527f4cbebeaa1f599a92f9c55e499d5e944b6c0a1872648327f38d2934a5f8ffafe409febc1b4176d14b60
4 years, 10 months
Architecture specific change in rpms/golang-github-spacejam-loghisto.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-spacejam-loghisto.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-spacejam-loghisto.g....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit ed755dcf62167faac5a09f2a946542502f6b6cdc
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Fri May 24 18:39:46 2019 +0200
Bump to commit ca67f4ecfdd38b57e4904162d3fef74f381632f6
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 1a4c656..99e628c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/loghisto-3233097.tar.gz
+/loghisto-ca67f4ecfdd38b57e4904162d3fef74f381632f6.tar.gz
diff --git a/add-license.patch b/add-license.patch
deleted file mode 100644
index 8e6b3c5..0000000
--- a/add-license.patch
+++ /dev/null
@@ -1,222 +0,0 @@
-From 3b09359d685a2f5d6cc888dbfdab904d03e65458 Mon Sep 17 00:00:00 2001
-From: Jan Chaloupka <jchaloup(a)redhat.com>
-Date: Mon, 21 Mar 2016 12:40:21 +0100
-Subject: [PATCH] add license
-
----
- LICENSE | 203 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 203 insertions(+)
- create mode 100644 LICENSE
-
-diff --git a/LICENSE b/LICENSE
-new file mode 100644
-index 0000000..540d183
---- /dev/null
-+++ b/LICENSE
-@@ -0,0 +1,203 @@
-+
-+ Apache License
-+ Version 2.0, January 2004
-+ http://www.apache.org/licenses/
-+
-+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-+
-+ 1. Definitions.
-+
-+ "License" shall mean the terms and conditions for use, reproduction,
-+ and distribution as defined by Sections 1 through 9 of this document.
-+
-+ "Licensor" shall mean the copyright owner or entity authorized by
-+ the copyright owner that is granting the License.
-+
-+ "Legal Entity" shall mean the union of the acting entity and all
-+ other entities that control, are controlled by, or are under common
-+ control with that entity. For the purposes of this definition,
-+ "control" means (i) the power, direct or indirect, to cause the
-+ direction or management of such entity, whether by contract or
-+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
-+ outstanding shares, or (iii) beneficial ownership of such entity.
-+
-+ "You" (or "Your") shall mean an individual or Legal Entity
-+ exercising permissions granted by this License.
-+
-+ "Source" form shall mean the preferred form for making modifications,
-+ including but not limited to software source code, documentation
-+ source, and configuration files.
-+
-+ "Object" form shall mean any form resulting from mechanical
-+ transformation or translation of a Source form, including but
-+ not limited to compiled object code, generated documentation,
-+ and conversions to other media types.
-+
-+ "Work" shall mean the work of authorship, whether in Source or
-+ Object form, made available under the License, as indicated by a
-+ copyright notice that is included in or attached to the work
-+ (an example is provided in the Appendix below).
-+
-+ "Derivative Works" shall mean any work, whether in Source or Object
-+ form, that is based on (or derived from) the Work and for which the
-+ editorial revisions, annotations, elaborations, or other modifications
-+ represent, as a whole, an original work of authorship. For the purposes
-+ of this License, Derivative Works shall not include works that remain
-+ separable from, or merely link (or bind by name) to the interfaces of,
-+ the Work and Derivative Works thereof.
-+
-+ "Contribution" shall mean any work of authorship, including
-+ the original version of the Work and any modifications or additions
-+ to that Work or Derivative Works thereof, that is intentionally
-+ submitted to Licensor for inclusion in the Work by the copyright owner
-+ or by an individual or Legal Entity authorized to submit on behalf of
-+ the copyright owner. For the purposes of this definition, "submitted"
-+ means any form of electronic, verbal, or written communication sent
-+ to the Licensor or its representatives, including but not limited to
-+ communication on electronic mailing lists, source code control systems,
-+ and issue tracking systems that are managed by, or on behalf of, the
-+ Licensor for the purpose of discussing and improving the Work, but
-+ excluding communication that is conspicuously marked or otherwise
-+ designated in writing by the copyright owner as "Not a Contribution."
-+
-+ "Contributor" shall mean Licensor and any individual or Legal Entity
-+ on behalf of whom a Contribution has been received by Licensor and
-+ subsequently incorporated within the Work.
-+
-+ 2. Grant of Copyright License. Subject to the terms and conditions of
-+ this License, each Contributor hereby grants to You a perpetual,
-+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-+ copyright license to reproduce, prepare Derivative Works of,
-+ publicly display, publicly perform, sublicense, and distribute the
-+ Work and such Derivative Works in Source or Object form.
-+
-+ 3. Grant of Patent License. Subject to the terms and conditions of
-+ this License, each Contributor hereby grants to You a perpetual,
-+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-+ (except as stated in this section) patent license to make, have made,
-+ use, offer to sell, sell, import, and otherwise transfer the Work,
-+ where such license applies only to those patent claims licensable
-+ by such Contributor that are necessarily infringed by their
-+ Contribution(s) alone or by combination of their Contribution(s)
-+ with the Work to which such Contribution(s) was submitted. If You
-+ institute patent litigation against any entity (including a
-+ cross-claim or counterclaim in a lawsuit) alleging that the Work
-+ or a Contribution incorporated within the Work constitutes direct
-+ or contributory patent infringement, then any patent licenses
-+ granted to You under this License for that Work shall terminate
-+ as of the date such litigation is filed.
-+
-+ 4. Redistribution. You may reproduce and distribute copies of the
-+ Work or Derivative Works thereof in any medium, with or without
-+ modifications, and in Source or Object form, provided that You
-+ meet the following conditions:
-+
-+ (a) You must give any other recipients of the Work or
-+ Derivative Works a copy of this License; and
-+
-+ (b) You must cause any modified files to carry prominent notices
-+ stating that You changed the files; and
-+
-+ (c) You must retain, in the Source form of any Derivative Works
-+ that You distribute, all copyright, patent, trademark, and
-+ attribution notices from the Source form of the Work,
-+ excluding those notices that do not pertain to any part of
-+ the Derivative Works; and
-+
-+ (d) If the Work includes a "NOTICE" text file as part of its
-+ distribution, then any Derivative Works that You distribute must
-+ include a readable copy of the attribution notices contained
-+ within such NOTICE file, excluding those notices that do not
-+ pertain to any part of the Derivative Works, in at least one
-+ of the following places: within a NOTICE text file distributed
-+ as part of the Derivative Works; within the Source form or
-+ documentation, if provided along with the Derivative Works; or,
-+ within a display generated by the Derivative Works, if and
-+ wherever such third-party notices normally appear. The contents
-+ of the NOTICE file are for informational purposes only and
-+ do not modify the License. You may add Your own attribution
-+ notices within Derivative Works that You distribute, alongside
-+ or as an addendum to the NOTICE text from the Work, provided
-+ that such additional attribution notices cannot be construed
-+ as modifying the License.
-+
-+ You may add Your own copyright statement to Your modifications and
-+ may provide additional or different license terms and conditions
-+ for use, reproduction, or distribution of Your modifications, or
-+ for any such Derivative Works as a whole, provided Your use,
-+ reproduction, and distribution of the Work otherwise complies with
-+ the conditions stated in this License.
-+
-+ 5. Submission of Contributions. Unless You explicitly state otherwise,
-+ any Contribution intentionally submitted for inclusion in the Work
-+ by You to the Licensor shall be under the terms and conditions of
-+ this License, without any additional terms or conditions.
-+ Notwithstanding the above, nothing herein shall supersede or modify
-+ the terms of any separate license agreement you may have executed
-+ with Licensor regarding such Contributions.
-+
-+ 6. Trademarks. This License does not grant permission to use the trade
-+ names, trademarks, service marks, or product names of the Licensor,
-+ except as required for reasonable and customary use in describing the
-+ origin of the Work and reproducing the content of the NOTICE file.
-+
-+ 7. Disclaimer of Warranty. Unless required by applicable law or
-+ agreed to in writing, Licensor provides the Work (and each
-+ Contributor provides its Contributions) on an "AS IS" BASIS,
-+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-+ implied, including, without limitation, any warranties or conditions
-+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-+ PARTICULAR PURPOSE. You are solely responsible for determining the
-+ appropriateness of using or redistributing the Work and assume any
-+ risks associated with Your exercise of permissions under this License.
-+
-+ 8. Limitation of Liability. In no event and under no legal theory,
-+ whether in tort (including negligence), contract, or otherwise,
-+ unless required by applicable law (such as deliberate and grossly
-+ negligent acts) or agreed to in writing, shall any Contributor be
-+ liable to You for damages, including any direct, indirect, special,
-+ incidental, or consequential damages of any character arising as a
-+ result of this License or out of the use or inability to use the
-+ Work (including but not limited to damages for loss of goodwill,
-+ work stoppage, computer failure or malfunction, or any and all
-+ other commercial damages or losses), even if such Contributor
-+ has been advised of the possibility of such damages.
-+
-+ 9. Accepting Warranty or Additional Liability. While redistributing
-+ the Work or Derivative Works thereof, You may choose to offer,
-+ and charge a fee for, acceptance of support, warranty, indemnity,
-+ or other liability obligations and/or rights consistent with this
-+ License. However, in accepting such obligations, You may act only
-+ on Your own behalf and on Your sole responsibility, not on behalf
-+ of any other Contributor, and only if You agree to indemnify,
-+ defend, and hold each Contributor harmless for any liability
-+ incurred by, or claims asserted against, such Contributor by reason
-+ of your accepting any such warranty or additional liability.
-+
-+ END OF TERMS AND CONDITIONS
-+
-+ APPENDIX: How to apply the Apache License to your work.
-+
-+ To apply the Apache License to your work, attach the following
-+ boilerplate notice, with the fields enclosed by brackets "[]"
-+ replaced with your own identifying information. (Don't include
-+ the brackets!) The text should be enclosed in the appropriate
-+ comment syntax for the file format. We also recommend that a
-+ file or class name and description of purpose be included on the
-+ same "printed page" as the copyright notice for easier
-+ identification within third-party archives.
-+
-+ Copyright 2014 The Cockroach Authors.
-+ Copyright 2016 Tyler Neely
-+
-+ Licensed under the Apache License, Version 2.0 (the "License");
-+ you may not use this file except in compliance with the License.
-+ You may obtain a copy of the License at
-+
-+ http://www.apache.org/licenses/LICENSE-2.0
-+
-+ Unless required by applicable law or agreed to in writing, software
-+ distributed under the License is distributed on an "AS IS" BASIS,
-+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-+ See the License for the specific language governing permissions and
-+ limitations under the License.
---
-1.9.3
-
diff --git a/golang-github-spacejam-loghisto.spec b/golang-github-spacejam-loghisto.spec
index 106b2a7..c5a881b 100644
--- a/golang-github-spacejam-loghisto.spec
+++ b/golang-github-spacejam-loghisto.spec
@@ -1,161 +1,65 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-# Failing from some reason
-%global with_check 0
-%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
+# Generated by go2rpm
+# Tests fails in Mock
+%bcond_with check
-%global provider github
-%global provider_tld com
-%global project spacejam
-%global repo loghisto
# https://github.com/spacejam/loghisto
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 323309774dec8b7430187e46cd0793974ccca04a
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
+%global goipath github.com/spacejam/loghisto
+%global commit ca67f4ecfdd38b57e4904162d3fef74f381632f6
+
+%gometa
+
+%global common_description %{expand:
+A metric system for high performance counters and histograms. Unlike popular
+metric systems today, this does not destroy the accuracy of histograms by
+sampling. Instead, a logarithmic bucketing function compresses values, generally
+within 1% of their true value (although between 0 and 1 the precision loss may
+not be within this boundary). This allows for extreme compression, which allows
+us to calculate arbitrarily high percentiles with no loss of accuracy - just a
+small amount of precision. This is particularly useful for highly-clustered
+events that are tolerant of a small precision loss, but for which you REALLY
+care about what the tail looks like, such as measuring latency across a
+distributed system.
+
+Copied out of my work for the CockroachDB metrics system. Based on an algorithm
+created by Keith Frost.}
+
+%global golicenses LICENSE
+%global godocs readme.md
+
+Name: %{goname}
Version: 0
-Release: 0.8.git%{shortcommit}%{?dist}
+Release: 0.9%{?dist}
Summary: Counters and logarithmically bucketed histograms for distributed systems
+
+# Upstream license specification: Apache-2.0
License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-Patch0: add-license.patch
+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/golang/glog)
%description
-%{summary}
-
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires: golang(github.com/golang/glog)
-%endif
-
-Requires: golang(github.com/golang/glog)
-
-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} && 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
+%{common_description}
-%description unit-test-devel
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%gopkg
%prep
-%setup -q -n %{repo}-%{commit}
-%patch0 -p1
-
-%build
+%goprep
%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-devel.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-devel.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%gopkginstall
+%if %{with check}
%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}
+%gocheck
%endif
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
-
-#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-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc readme.md
-%endif
+%gopkgfiles
%changelog
+* Fri May 24 18:27:04 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0-0.9.20190524gitca67f4e
+- Bump to commit ca67f4ecfdd38b57e4904162d3fef74f381632f6
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.8.git3233097
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/sources b/sources
index 23bf081..912b7d6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7ecbcc799baec6a44f310f7913ee5cda loghisto-3233097.tar.gz
+SHA512 (loghisto-ca67f4ecfdd38b57e4904162d3fef74f381632f6.tar.gz) = 7179f30763eaa1493c045f245f1ac8b5640f170277dd3960016c4204606296da5b6a34e67e2dcaaf99bff681acaf96c773f8bbff16ad7aff21d5c3e01a92f9c1
4 years, 10 months
Architecture specific change in rpms/golang-github-client9-gospell.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-client9-gospell.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-client9-gospell.git....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit cfb91f84bcdabd2c2341d1d355eed7a9e4ddd139
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Fri May 24 18:08:38 2019 +0200
Update to new macro
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 9a3d594..f5cf850 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/gospell-90dfc71.tar.gz
+/gospell-90dfc71015dfebd3a7274f1ad2756c1dbf09e250.tar.gz
diff --git a/golang-github-client9-gospell.spec b/golang-github-client9-gospell.spec
index 5a85b8f..b60404a 100644
--- a/golang-github-client9-gospell.spec
+++ b/golang-github-client9-gospell.spec
@@ -1,172 +1,64 @@
-# 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
-
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project client9
-%global repo gospell
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+# https://github.com/client9/gospell
+%global goipath github.com/client9/gospell
%global commit 90dfc71015dfebd3a7274f1ad2756c1dbf09e250
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.3.git%{shortcommit}%{?dist}
-Summary: Pure golang spelling based on hunspell dictionaries
-License: MIT
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/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 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}
-
-
-
-%description
-%{summary}
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%gometa
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires: golang(golang.org/x/net/html)
-%endif
-
-Requires: golang(golang.org/x/net/html)
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/plaintext) = %{version}-%{release}
-
-%description devel
-%{summary}
-
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+%global common_description %{expand:
+Pure golang spelling based on Hunspell dictionaries.}
-%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
+%global golicenses LICENSE
+%global godocs README.md
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+Name: %{goname}
+Version: 0
+Release: 0.4%{?dist}
+Summary: Pure golang spelling based on Hunspell dictionaries
-%if 0%{?with_check} && ! 0%{?with_bundled}
-%endif
+License: MIT
+URL: %{gourl}
+Source0: %{gosource}
+BuildRequires: golang(github.com/client9/plaintext)
+BuildRequires: golang(github.com/naoina/toml)
+BuildRequires: golang(github.com/ryanuber/go-glob)
+BuildRequires: golang(golang.org/x/net/html)
-%description unit-test-devel
-%{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}
+%goprep
%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
+%gobuild -o %{gobuilddir}/bin/gospell %{goipath}/cmd/gospell
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%install
+%gopkginstall
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
+%if %{with check}
%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
-
-%gotest %{import_path}
-%gotest %{import_path}/plaintext
+%gocheck
%endif
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
+%files
%license LICENSE
%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
+%{_bindir}/*
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc README.md
-%endif
+%gopkgfiles
%changelog
+* Fri May 24 17:47:11 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0-0.4.20190524git90dfc71
+- Update to new macro
+
* Thu Jan 31 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.3.git90dfc71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/sources b/sources
index 5c34619..edd9c6b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (gospell-90dfc71.tar.gz) = d288037651d988c23b4f387c31241f15e83a16ecf61c95f3fdc3408e243e7c261be4ea6c346717513dfd41b7b89dafbc6430a6d75dde94127b37b16615f11104
+SHA512 (gospell-90dfc71015dfebd3a7274f1ad2756c1dbf09e250.tar.gz) = d288037651d988c23b4f387c31241f15e83a16ecf61c95f3fdc3408e243e7c261be4ea6c346717513dfd41b7b89dafbc6430a6d75dde94127b37b16615f11104
4 years, 10 months
Architecture specific change in rpms/golang-github-rackspace-gophercloud.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-rackspace-gophercloud.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-rackspace-gopherclo....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 31aa2a04bf20d7104fb441c38b0c1a588f20da86
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Fri May 24 18:00:15 2019 +0200
Bump to commit e00690e87603abe613e9f02c816c7c4bef82e063
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index c4848ce..2c9ad7f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/gophercloud-c90cb95.tar.gz
+/gophercloud-e00690e87603abe613e9f02c816c7c4bef82e063.tar.gz
diff --git a/golang-github-rackspace-gophercloud.spec b/golang-github-rackspace-gophercloud.spec
index f359857..9d710ce 100644
--- a/golang-github-rackspace-gophercloud.spec
+++ b/golang-github-rackspace-gophercloud.spec
@@ -1,496 +1,78 @@
-# 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
-# Two following test passes but it is about 50% of all.
-# Some tests fails, some fails on build failure
-# Besides, BuildRequires is not complete as there is a cyclic deps with smashwilson/gophercloud
-%global with_check 0
-# 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
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project rackspace
-%global repo gophercloud
# https://github.com/rackspace/gophercloud
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit c90cb954266e1bdd6d1914678fd6909fc5fabbfa
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 1.0.0
-Release: 20%{?dist}
-Summary: The Go SDK for Openstack http://gophercloud.io
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/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 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}
-
-%description
-Gophercloud currently lets you authenticate with OpenStack providers to create
-and manage servers. We are working on extending the API to further include
-cloud files, block storage, DNS, databases, security groups,
-and other features.
-
-This library is still in the very early stages of development.
+%global goipath github.com/rackspace/gophercloud
+Version: 1.0.0
+%global commit e00690e87603abe613e9f02c816c7c4bef82e063
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%gometa
-%if 0%{?with_check}
-BuildRequires: golang(github.com/mitchellh/mapstructure)
-BuildRequires: golang(gopkg.in/yaml.v2)
-%endif
+%global common_description %{expand:
+Gophercloud is a flexible SDK that allows you to consume and work with OpenStack
+clouds in a simple and idiomatic way using Golang. Many services are supported,
+including Compute, Block Storage, Object Storage, Networking, and Identity. Each
+service API is backed with getting started guides, code samples, reference
+documentation, unit tests and acceptance tests.}
-Requires: golang(github.com/mitchellh/mapstructure)
-Requires: golang(gopkg.in/yaml.v2)
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/blockstorage/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/blockstorage/v2) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/blockstorage/v2/extensions) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/compute/v2) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/db/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/identity/v2) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/identity/v3) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/imageservice/v2) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/networking/v2) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/networking/v2/extensions) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/networking/v2/extensions/fwaas) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/networking/v2/extensions/lbaas) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/networking/v2/extensions/lbaas_v2) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/networking/v2/extensions/portsbinding) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/objectstorage/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/openstack/orchestration/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/blockstorage/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/cdn/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/compute/v2) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/db/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/identity/v2) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/lb/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/networking/v2) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/objectstorage/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/orchestration/v1) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/rackspace/rackconnect/v3) = %{version}-%{release}
-Provides: golang(%{import_path}/acceptance/tools) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/blockstorage/v1/apiversions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/blockstorage/v1/snapshots) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/blockstorage/v1/volumes) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/blockstorage/v1/volumes/testing) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/blockstorage/v1/volumetypes) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/blockstorage/v2/extensions/volumeactions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/blockstorage/v2/volumes) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/cdn/v1/base) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/cdn/v1/flavors) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/cdn/v1/serviceassets) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/cdn/v1/services) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/common/extensions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/adminactions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/bootfromvolume) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/defsecrules) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/diskconfig) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/floatingip) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/keypairs) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/networks) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/quotasets) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/schedulerhints) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/secgroups) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/servergroups) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/startstop) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/tenantnetworks) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/volumeattach) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/extensions/volumeattach/testing) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/flavors) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/images) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/compute/v2/servers) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/db/v1/configurations) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/db/v1/databases) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/db/v1/datastores) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/db/v1/flavors) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/db/v1/instances) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/db/v1/users) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v2/extensions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v2/extensions/admin/roles) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v2/tenants) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v2/tokens) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v2/users) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v3/endpoints) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v3/extensions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v3/extensions/trust) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v3/roles) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v3/services) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/identity/v3/tokens) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/imageservice/v2/images) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/imageservice/v2/members) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/apiversions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/common) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/external) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/fwaas) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/fwaas/firewalls) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/fwaas/policies) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/fwaas/rules) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/layer3) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/layer3/floatingips) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/layer3/routers) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas/members) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas/monitors) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas/pools) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas/vips) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas_v2) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas_v2/listeners) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas_v2/loadbalancers) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas_v2/monitors) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/lbaas_v2/pools) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/portsbinding) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/provider) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/security) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/security/groups) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/extensions/security/rules) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/networks) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/ports) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/networking/v2/subnets) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/objectstorage/v1/accounts) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/objectstorage/v1/containers) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/objectstorage/v1/objects) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/orchestration/v1/apiversions) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/orchestration/v1/buildinfo) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/orchestration/v1/stackevents) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/orchestration/v1/stackresources) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/orchestration/v1/stacks) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/orchestration/v1/stacktemplates) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/telemetry/v2/meters) = %{version}-%{release}
-Provides: golang(%{import_path}/openstack/utils) = %{version}-%{release}
-Provides: golang(%{import_path}/pagination) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/autoscale/v1/policies) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/autoscale/v1/webhooks) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/blockstorage/v1/snapshots) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/blockstorage/v1/volumes) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/blockstorage/v1/volumetypes) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/cdn/v1/base) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/cdn/v1/flavors) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/cdn/v1/serviceassets) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/cdn/v1/services) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/compute/v2/bootfromvolume) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/compute/v2/flavors) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/compute/v2/images) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/compute/v2/keypairs) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/compute/v2/networks) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/compute/v2/servers) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/compute/v2/virtualinterfaces) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/compute/v2/volumeattach) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/db/v1/backups) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/db/v1/configurations) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/db/v1/databases) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/db/v1/datastores) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/db/v1/flavors) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/db/v1/instances) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/db/v1/users) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/identity/v2/extensions) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/identity/v2/roles) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/identity/v2/tenants) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/identity/v2/tokens) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/identity/v2/users) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/lb/v1/acl) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/lb/v1/lbs) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/lb/v1/monitors) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/lb/v1/nodes) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/lb/v1/sessions) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/lb/v1/ssl) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/lb/v1/throttle) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/lb/v1/vips) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/networking/v2/common) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/networking/v2/networks) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/networking/v2/ports) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/networking/v2/security) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/networking/v2/security/groups) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/networking/v2/security/rules) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/networking/v2/subnets) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/objectstorage/v1/accounts) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/objectstorage/v1/bulk) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/objectstorage/v1/cdncontainers) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/objectstorage/v1/cdnobjects) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/objectstorage/v1/containers) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/objectstorage/v1/objects) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/orchestration/v1/buildinfo) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/orchestration/v1/stackevents) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/orchestration/v1/stackresources) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/orchestration/v1/stacks) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/orchestration/v1/stacktemplates) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/rackconnect/v3) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/rackconnect/v3/cloudnetworks) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/rackconnect/v3/lbpools) = %{version}-%{release}
-Provides: golang(%{import_path}/rackspace/rackconnect/v3/publicips) = %{version}-%{release}
-Provides: golang(%{import_path}/testhelper) = %{version}-%{release}
-Provides: golang(%{import_path}/testhelper/client) = %{version}-%{release}
-Provides: golang(%{import_path}/testhelper/fixture) = %{version}-%{release}
-
-%description devel
-Gophercloud currently lets you authenticate with OpenStack providers to create
-and manage servers. We are working on extending the API to further include
-cloud files, block storage, DNS, databases, security groups,
-and other features.
-
-This library is still in the very early stages of development.
-
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+%global golicenses LICENSE
+%global godocs CONTRIBUTING.md CONTRIBUTORS.md README.md\\\
+ UPGRADING.md
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
+Name: %{goname}
+Release: 21%{?dist}
+Summary: A Go SDK for OpenStack
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-BuildRequires: golang(golang.org/x/crypto/ssh)
-%endif
+# Upstream license specification: Apache-2.0
+License: ASL 2.0
+URL: %{gourl}
+Source0: %{gosource}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+BuildRequires: golang(github.com/mitchellh/mapstructure)
+BuildRequires: golang(gopkg.in/yaml.v2)
-Requires: golang(golang.org/x/crypto/ssh)
+%description
+%{common_description}
-%description unit-test
-%{summary}
-
-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}/
-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
- 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
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%gopkginstall
+%if %{with check}
%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}
-%gotest %{import_path}/acceptance/openstack
-%gotest %{import_path}/acceptance/openstack/blockstorage/v1
-%gotest %{import_path}/acceptance/openstack/compute/v2
-%gotest %{import_path}/acceptance/openstack/identity/v2
-%gotest %{import_path}/acceptance/openstack/identity/v3
-%gotest %{import_path}/acceptance/openstack/networking/v2
-%gotest %{import_path}/acceptance/openstack/networking/v2/extensions
-%gotest %{import_path}/acceptance/openstack/networking/v2/extensions/fwaas
-%gotest %{import_path}/acceptance/openstack/networking/v2/extensions/lbaas
-%gotest %{import_path}/acceptance/openstack/objectstorage/v1
-%gotest %{import_path}/acceptance/openstack/orchestration/v1
-%gotest %{import_path}/acceptance/rackspace
-%gotest %{import_path}/acceptance/rackspace/blockstorage/v1
-%gotest %{import_path}/acceptance/rackspace/cdn/v1
-%gotest %{import_path}/acceptance/rackspace/compute/v2
-%gotest %{import_path}/acceptance/rackspace/identity/v2
-%gotest %{import_path}/acceptance/rackspace/lb/v1
-%gotest %{import_path}/acceptance/rackspace/networking/v2
-%gotest %{import_path}/acceptance/rackspace/objectstorage/v1
-%gotest %{import_path}/acceptance/rackspace/orchestration/v1
-%gotest %{import_path}/acceptance/rackspace/rackconnect/v3
-%gotest %{import_path}/openstack
-%gotest %{import_path}/openstack/blockstorage/v1/apiversions
-%gotest %{import_path}/openstack/blockstorage/v1/snapshots
-%gotest %{import_path}/openstack/blockstorage/v1/volumes
-%gotest %{import_path}/openstack/blockstorage/v1/volumetypes
-%gotest %{import_path}/openstack/cdn/v1/base
-%gotest %{import_path}/openstack/cdn/v1/flavors
-%gotest %{import_path}/openstack/cdn/v1/serviceassets
-%gotest %{import_path}/openstack/cdn/v1/services
-%gotest %{import_path}/openstack/common/extensions
-%gotest %{import_path}/openstack/compute/v2/extensions
-%gotest %{import_path}/openstack/compute/v2/extensions/bootfromvolume
-%gotest %{import_path}/openstack/compute/v2/extensions/defsecrules
-%gotest %{import_path}/openstack/compute/v2/extensions/diskconfig
-%gotest %{import_path}/openstack/compute/v2/extensions/floatingip
-%gotest %{import_path}/openstack/compute/v2/extensions/keypairs
-%gotest %{import_path}/openstack/compute/v2/extensions/secgroups
-%gotest %{import_path}/openstack/compute/v2/extensions/servergroups
-%gotest %{import_path}/openstack/compute/v2/extensions/startstop
-%gotest %{import_path}/openstack/compute/v2/extensions/tenantnetworks
-%gotest %{import_path}/openstack/compute/v2/extensions/volumeattach
-%gotest %{import_path}/openstack/compute/v2/flavors
-%gotest %{import_path}/openstack/compute/v2/images
-%gotest %{import_path}/openstack/compute/v2/servers
-%gotest %{import_path}/openstack/identity/v2/extensions
-%gotest %{import_path}/openstack/identity/v2/extensions/admin/roles
-%gotest %{import_path}/openstack/identity/v2/tenants
-%gotest %{import_path}/openstack/identity/v2/tokens
-%gotest %{import_path}/openstack/identity/v2/users
-%gotest %{import_path}/openstack/identity/v3/endpoints
-%gotest %{import_path}/openstack/identity/v3/services
-%gotest %{import_path}/openstack/identity/v3/tokens
-%gotest %{import_path}/openstack/networking/v2/apiversions
-%gotest %{import_path}/openstack/networking/v2/extensions
-%gotest %{import_path}/openstack/networking/v2/extensions/external
-%gotest %{import_path}/openstack/networking/v2/extensions/fwaas/firewalls
-%gotest %{import_path}/openstack/networking/v2/extensions/fwaas/policies
-%gotest %{import_path}/openstack/networking/v2/extensions/fwaas/rules
-%gotest %{import_path}/openstack/networking/v2/extensions/layer3/floatingips
-%gotest %{import_path}/openstack/networking/v2/extensions/layer3/routers
-%gotest %{import_path}/openstack/networking/v2/extensions/lbaas/members
-%gotest %{import_path}/openstack/networking/v2/extensions/lbaas/monitors
-%gotest %{import_path}/openstack/networking/v2/extensions/lbaas/pools
-%gotest %{import_path}/openstack/networking/v2/extensions/lbaas/vips
-%gotest %{import_path}/openstack/networking/v2/extensions/provider
-%gotest %{import_path}/openstack/networking/v2/extensions/security/groups
-%gotest %{import_path}/openstack/networking/v2/extensions/security/rules
-%gotest %{import_path}/openstack/networking/v2/networks
-%gotest %{import_path}/openstack/networking/v2/ports
-%gotest %{import_path}/openstack/networking/v2/subnets
-%gotest %{import_path}/openstack/objectstorage/v1/accounts
-%gotest %{import_path}/openstack/objectstorage/v1/containers
-%gotest %{import_path}/openstack/objectstorage/v1/objects
-%gotest %{import_path}/openstack/orchestration/v1/apiversions
-%gotest %{import_path}/openstack/orchestration/v1/buildinfo
-%gotest %{import_path}/openstack/orchestration/v1/stackevents
-%gotest %{import_path}/openstack/orchestration/v1/stackresources
-%gotest %{import_path}/openstack/orchestration/v1/stacks
-%gotest %{import_path}/openstack/orchestration/v1/stacktemplates
-%gotest %{import_path}/openstack/utils
-%gotest %{import_path}/pagination
-%gotest %{import_path}/rackspace
-%gotest %{import_path}/rackspace/blockstorage/v1/snapshots
-%gotest %{import_path}/rackspace/blockstorage/v1/volumes
-%gotest %{import_path}/rackspace/blockstorage/v1/volumetypes
-%gotest %{import_path}/rackspace/cdn/v1/base
-%gotest %{import_path}/rackspace/cdn/v1/flavors
-%gotest %{import_path}/rackspace/cdn/v1/serviceassets
-%gotest %{import_path}/rackspace/cdn/v1/services
-%gotest %{import_path}/rackspace/compute/v2/bootfromvolume
-%gotest %{import_path}/rackspace/compute/v2/flavors
-%gotest %{import_path}/rackspace/compute/v2/images
-%gotest %{import_path}/rackspace/compute/v2/keypairs
-%gotest %{import_path}/rackspace/compute/v2/networks
-%gotest %{import_path}/rackspace/compute/v2/servers
-%gotest %{import_path}/rackspace/compute/v2/virtualinterfaces
-%gotest %{import_path}/rackspace/compute/v2/volumeattach
-%gotest %{import_path}/rackspace/identity/v2/extensions
-%gotest %{import_path}/rackspace/identity/v2/roles
-%gotest %{import_path}/rackspace/identity/v2/tenants
-%gotest %{import_path}/rackspace/identity/v2/tokens
-%gotest %{import_path}/rackspace/identity/v2/users
-%gotest %{import_path}/rackspace/lb/v1/acl
-%gotest %{import_path}/rackspace/lb/v1/lbs
-%gotest %{import_path}/rackspace/lb/v1/monitors
-%gotest %{import_path}/rackspace/lb/v1/nodes
-%gotest %{import_path}/rackspace/lb/v1/sessions
-%gotest %{import_path}/rackspace/lb/v1/ssl
-%gotest %{import_path}/rackspace/lb/v1/throttle
-%gotest %{import_path}/rackspace/lb/v1/vips
-%gotest %{import_path}/rackspace/networking/v2/networks
-%gotest %{import_path}/rackspace/networking/v2/ports
-%gotest %{import_path}/rackspace/networking/v2/security/groups
-%gotest %{import_path}/rackspace/networking/v2/security/rules
-%gotest %{import_path}/rackspace/networking/v2/subnets
-%gotest %{import_path}/rackspace/objectstorage/v1/accounts
-%gotest %{import_path}/rackspace/objectstorage/v1/bulk
-%gotest %{import_path}/rackspace/objectstorage/v1/cdncontainers
-%gotest %{import_path}/rackspace/objectstorage/v1/cdnobjects
-%gotest %{import_path}/rackspace/objectstorage/v1/containers
-%gotest %{import_path}/rackspace/objectstorage/v1/objects
-%gotest %{import_path}/rackspace/orchestration/v1/buildinfo
-%gotest %{import_path}/rackspace/orchestration/v1/stackevents
-%gotest %{import_path}/rackspace/orchestration/v1/stackresources
-%gotest %{import_path}/rackspace/orchestration/v1/stacks
-%gotest %{import_path}/rackspace/orchestration/v1/stacktemplates
-%gotest %{import_path}/rackspace/rackconnect/v3/cloudnetworks
-%gotest %{import_path}/rackspace/rackconnect/v3/lbpools
-%gotest %{import_path}/rackspace/rackconnect/v3/publicips
+%gocheck -t openstack/blockstorage \
+ -t openstack/cdn/v1 \
+ -d openstack/common/extensions \
+ -t openstack/compute/v2 \
+ -t openstack/db/v1 \
+ -t openstack/identity/v2 \
+ -t openstack/imageservice/v2 \
+ -t openstack/networking/v2 \
+ -t openstack/objectstorage/v1 \
+ -t openstack/orchestration/v1 \
+ -t openstack/telemetry/v2 \
+ -t rackspace/autoscale/v1 \
+ -t rackspace/blockstorage/v1 \
+ -t rackspace/cdn/v1 \
+ -t rackspace/compute/v2 \
+ -t rackspace/db/v1 \
+ -t rackspace/identity/v2 \
+ -t rackspace/lb/v1 \
+ -t rackspace/networking/v2 \
+ -t rackspace/objectstorage/v1 \
+ -t rackspace/orchestration/v1
%endif
-#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 CONTRIBUTING.md UPGRADING.md CONTRIBUTORS.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%endif
+%gopkgfiles
%changelog
+* Fri May 24 15:47:08 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 1.0.0-21.20190524gite00690e
+- Bump to commit e00690e87603abe613e9f02c816c7c4bef82e063
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.0.0-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -564,4 +146,3 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
* Thu Oct 16 2014 jchaloup <jchaloup(a)redhat.com> - 0-0.1.gite13cda2
- First package for Fedora
resolves: #1153733
-
diff --git a/sources b/sources
index 54a664d..550a79b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (gophercloud-c90cb95.tar.gz) = 0085e6954883991a623eadaf4fc1545273f6189d23112a09a530338faa145bf876c9d6844a87301093b46c709a815057f2256624e7278d1c6d5f59018d1bce2c
+SHA512 (gophercloud-e00690e87603abe613e9f02c816c7c4bef82e063.tar.gz) = 3c4e684fcdec115f488f52f8ba395269606c2d2d5637a338dee3ccb78ed7e94bab64ee09b02622149773fcc6a601631b99bc79b20624732dfe3a14b1759b4ed4
4 years, 10 months
Architecture specific change in rpms/golang-github-bep-gitmap.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-bep-gitmap.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-bep-gitmap.git/comm....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit dae22fc648cb210990fa14561a904ef58ef60ed5
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Fri May 24 15:38:34 2019 +0200
Update to new macros
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/golang-github-bep-gitmap.spec b/golang-github-bep-gitmap.spec
index 4dc36c5..2581823 100644
--- a/golang-github-bep-gitmap.spec
+++ b/golang-github-bep-gitmap.spec
@@ -1,168 +1,61 @@
-# 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
-
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project bep
-%global repo gitmap
# https://github.com/bep/gitmap
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 1.0.0
-Release: 1%{?dist}
-Summary: Create map from filename to info object from revision of a repo
-License: MIT
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/v%{version}/%{repo}-%{version}.tar.gz
-# Skip tests that expect gitmap to be a real clone instead of an archive.
-Patch0001: skip-repo-tests.patch
-Requires: git-core
-# 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}
-BuildRequires: git-core
-
-%description
-%{summary}.
-
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%global goipath github.com/bep/gitmap
+Version: 1.0.0
-%if 0%{?with_check} && ! 0%{?with_bundled}
-%endif
+%gometa
+%global godevelheader %{expand:
+Requires: git-core}
-Provides: golang(%{import_path}) = %{version}-%{release}
+%global common_description %{expand:
+A fairly fast way to create a map from all the filenames to info objects for a
+given revision of a Git repo.
-%description devel
-%{summary}.
+This library uses os/exec to talk to Git. There are faster ways to do this by
+using some Go Git-lib or C bindings, but that adds dependencies I really don't
+want or need.}
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+%global golicenses LICENSE
+%global godocs README.md
-%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}
+Name: %{goname}
+Release: 2%{?dist}
+Summary: Create map from filename to info object from revision of a repo
-%if 0%{?with_check} && ! 0%{?with_bundled}
-%endif
+License: MIT
+URL: %{gourl}
+Source0: %{gosource}
+# Skip tests that expect gitmap to be a real clone instead of an archive
+Patch0: skip-repo-tests.patch
+BuildRequires: git-core
-%description unit-test-devel
-%{summary}.
+%description
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%gopkg
%prep
-%autosetup -n %{repo}-%{version} -p1
+%goprep
+%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" -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
+%gopkginstall
+%if %{with check}
%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
+%gocheck
%endif
-%gotest %{import_path}
-%endif
-
-#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-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc README.md
-%endif
+%gopkgfiles
%changelog
+* Fri May 24 15:23:07 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 1.0.0-2
+- Update to new macros
+
* Tue Feb 19 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 1.0.0-1
- Update to first tagged version
@@ -183,4 +76,3 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Sat Feb 25 2017 Frederico Lima <fredlima(a)fedoraproject.org> - 0-0.1.gitdcb907b
- First package for Fedora
-
4 years, 10 months