jchaloup pushed to golang-github-imdario-mergo (master).
"Autogenerate some parts using the new macros"
by notificationsï¼ fedoraproject.org
From 58762b71ae3465d0fc89c4a1a7718316c43601f7 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Feb 28 2018 22:38:59 +0000
Subject: Autogenerate some parts using the new macros
---
diff --git a/golang-github-imdario-mergo.spec b/golang-github-imdario-mergo.spec
index 3107c81..513acd1 100644
--- a/golang-github-imdario-mergo.spec
+++ b/golang-github-imdario-mergo.spec
@@ -1,164 +1,55 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-%global with_check 1
-%global with_unit_test 1
-%else
-%global with_devel 0
-%global with_bundled 0
-%global with_debug 0
-%global with_check 0
-%global with_unit_test 0
-%endif
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global provider github
-%global provider_tld com
-%global project imdario
-%global repo mergo
-# https://github.com/imdario/mergo
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+# http://github.com/imdario/mergo
+%global provider_prefix github.com/imdario/mergo
+%global gobaseipath %{provider_prefix}
%global commit 6ce7536fed6623eff47b95768f858a0f8d1ac57b
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20141213
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 0
-Release: 0.11.git%{shortcommit}%{?dist}
+Release: 0.12.%{commitdate}git%{shortcommit}%{?dist}
Summary: Merging Go structs and maps
License: BSD
-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 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check}
BuildRequires: golang(gopkg.in/yaml.v1)
-%endif
-
-Requires: golang(gopkg.in/yaml.v1)
-
-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
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%{gobaseipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-for file in $(find ./testdata/ -iname "*.yml"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall $(find . -iname "*.yaml")
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
+%gochecks %{gobaseipath}
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE
%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc README.md
-%endif
%changelog
+* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.12.20141213git6ce7536
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.11.git6ce7536
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@@ -195,4 +86,3 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
- First package for Fedora
resolves: #1181100
-
https://src.fedoraproject.org/rpms/golang-github-imdario-mergo/c/58762b71...
4Â years, 11Â months
jchaloup pushed to golang-github-howeyc-gopass (master).
"Autogenerate some parts using the new macros"
by notificationsï¼ fedoraproject.org
From 8b78b962bc0e1ddcaad674c40e0fbbe67c744774 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Feb 28 2018 22:38:28 +0000
Subject: Autogenerate some parts using the new macros
---
diff --git a/golang-github-howeyc-gopass.spec b/golang-github-howeyc-gopass.spec
index 2d90e4b..4b9092a 100644
--- a/golang-github-howeyc-gopass.spec
+++ b/golang-github-howeyc-gopass.spec
@@ -1,160 +1,57 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-# No tests provided
-%global with_check 0
-%global with_unit_test 0
-%else
-%global with_devel 0
-%global with_bundled 0
-%global with_debug 0
-%global with_check 0
-%global with_unit_test 0
-%endif
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global provider github
-%global provider_tld com
-%global project howeyc
-%global repo gopass
-# https://github.com/howeyc/gopass
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+# http://github.com/howeyc/gopass
+%global provider_prefix github.com/howeyc/gopass
+%global gobaseipath %{provider_prefix}
%global commit 3ca23474a7c7203e0a0a070fd33508f6efdb9b3d
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20160826
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 0
-Release: 0.11.git%{shortcommit}%{?dist}
+Release: 0.12.%{commitdate}git%{shortcommit}%{?dist}
Summary: Getpasswd for Go
License: ISC
-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 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check}
BuildRequires: golang(golang.org/x/crypto/ssh/terminal)
BuildRequires: golang(golang.org/x/sys/unix)
-%endif
-
-Requires: golang(golang.org/x/crypto/ssh/terminal)
-Requires: golang(golang.org/x/sys/unix)
-
-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
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%{gobaseipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%endif
+# Errorf call has arguments but no formatting directives
+%gochecks %{gobaseipath}
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE.txt
%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test -f unit-test.file-list
-%license LICENSE.txt
-%doc README.md
-%endif
%changelog
+* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.12.20160826git3ca2347
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.11.git3ca2347
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@@ -192,4 +89,3 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
- First package for Fedora
resolves: #1232214
-
https://src.fedoraproject.org/rpms/golang-github-howeyc-gopass/c/8b78b962...
4Â years, 11Â months
jchaloup pushed to golang-github-influxdb-gomdb (master).
"Autogenerate some parts using the new macros"
by notificationsï¼ fedoraproject.org
From 4ec74e758ed40726a7010bc0ea61779f9f05fd43 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Feb 28 2018 22:40:47 +0000
Subject: Autogenerate some parts using the new macros
---
diff --git a/golang-github-influxdb-gomdb.spec b/golang-github-influxdb-gomdb.spec
index 4e7d56d..9aa7cf1 100644
--- a/golang-github-influxdb-gomdb.spec
+++ b/golang-github-influxdb-gomdb.spec
@@ -1,58 +1,48 @@
-%global provider github
-%global provider_tld com
-%global project influxdb
-%global repo gomdb
+# https://github.com/influxdb/gomdb
+%global provider_prefix github.com/influxdb/gomdb
%global commit 29fe330c5ab33c4e48470bd4b980bf522471190a
+%global gobaseipath %{provider_prefix}
+%global commitdate 20140621
-%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global debug_package %{nil}
+%gocraftmeta -i
-Name: golang-%{provider}-%{project}-%{repo}
+Name: %{goname}
Version: 0
-Release: 0.8.git%{shortcommit}%{?dist}
+Release: 0.9.git%{shortcommit}%{?dist}
Summary: Go wrapper for LMDB
License: BSD
-URL: http://%{import_path}
-Source0: https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortco...
+URL: %{gourl}
+Source0: %{gosource}
BuildArch: noarch
%description
Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database
%package devel
-BuildRequires: golang >= 1.2.1-3
-Requires: golang >= 1.2.1-3
Summary: Go wrapper for LMDB
-Provides: golang(%{import_path}) = %{version}-%{release}
%description devel
Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database
This package contains library source intended for
-building other packages which use %{project}/%{repo}.
+building other packages which use %{gobaseipath}.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-cp -pav *.{go,c,h} %{buildroot}/%{gopath}/src/%{import_path}/
+%goinstall
%check
-GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+%gochecks %{gobaseipath}
-%files devel
+%files devel -f devel.file-list
%doc LICENSE README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
-%{gopath}/src/%{import_path}/*.go
-%{gopath}/src/%{import_path}/*.c
-%{gopath}/src/%{import_path}/*.h
%changelog
+* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.9.git29fe330
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.8.git29fe330
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@@ -77,6 +67,3 @@ GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
* Thu Sep 25 2014 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.1.git29fe330
- First package for Fedora
-
-
-
https://src.fedoraproject.org/rpms/golang-github-influxdb-gomdb/c/4ec74e7...
4Â years, 11Â months
jchaloup pushed to golang-github-hashicorp-serf (master).
"Autogenerate some parts using the new macros"
by notificationsï¼ fedoraproject.org
From dd0aed0147a2f20061e1fe4c1986e3e6db4673ca Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Feb 28 2018 22:36:00 +0000
Subject: Autogenerate some parts using the new macros
---
diff --git a/golang-github-hashicorp-serf.spec b/golang-github-hashicorp-serf.spec
index 0857994..d767ae1 100644
--- a/golang-github-hashicorp-serf.spec
+++ b/golang-github-hashicorp-serf.spec
@@ -1,62 +1,26 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-%global with_check 1
-%global with_unit_test 1
-%else
-%global with_devel 0
-%global with_bundled 0
-%global with_debug 0
-%global with_check 0
-%global with_unit_test 0
-%endif
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global isgccgoarch 0
-%if 0%{?gccgo_arches:1}
-%ifarch %{gccgo_arches}
-%global isgccgoarch 1
-%endif
-%endif
-
-%global provider github
-%global provider_tld com
-%global project hashicorp
-%global repo serf
-# https://github.com/hashicorp/serf
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+# http://github.com/hashicorp/serf
+%global provider_prefix github.com/hashicorp/serf
+%global gobaseipath %{provider_prefix}
%global commit a72c0453da2ba628a013e98bf323a76be4aa1443
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20151109
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 0.6.4
-Release: 0.8.git%{shortcommit}%{?dist}
+Release: 0.9.%{commitdate}git%{shortcommit}%{?dist}
Summary: Service orchestration and management tool http://www.serfdom.io
License: MPLv2.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 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check}
BuildRequires: golang(github.com/armon/circbuf)
BuildRequires: golang(github.com/armon/go-metrics)
BuildRequires: golang(github.com/hashicorp/go-msgpack/codec)
@@ -68,142 +32,36 @@ BuildRequires: golang(github.com/hashicorp/memberlist)
BuildRequires: golang-github-mitchellh-cli-devel-temporary
BuildRequires: golang(github.com/mitchellh/mapstructure)
BuildRequires: golang(github.com/ryanuber/columnize)
-%endif
-
-Requires: golang(github.com/armon/circbuf)
-Requires: golang(github.com/armon/go-metrics)
-Requires: golang(github.com/hashicorp/go-msgpack/codec)
-Requires: golang(github.com/hashicorp/go-syslog)
-Requires: golang(github.com/hashicorp/logutils)
-Requires: golang(github.com/hashicorp/mdns)
-Requires: golang(github.com/hashicorp/memberlist)
-#Requires: golang(github.com/mitchellh/cli)
-Requires: golang-github-mitchellh-cli-devel-temporary
-Requires: golang(github.com/mitchellh/mapstructure)
-Requires: golang(github.com/ryanuber/columnize)
-Provides: golang(%{import_path}/client) = %{version}-%{release}
-Provides: golang(%{import_path}/command) = %{version}-%{release}
-Provides: golang(%{import_path}/command/agent) = %{version}-%{release}
-Provides: golang(%{import_path}/coordinate) = %{version}-%{release}
-Provides: golang(%{import_path}/serf) = %{version}-%{release}
-Provides: golang(%{import_path}/testutil) = %{version}-%{release}
+#Requires: golang(github.com/mitchellh/cli)
%description devel
%{summary}
This package contains library source intended for
building other packages which use import path with
-%{import_path} prefix.
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%{gobaseipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if %{isgccgoarch}
-function gotest { %{gcc_go_test} "$@"; }
-%else
-%if 0%{?golang_test:1}
-function gotest { %{golang_test} "$@"; }
-%else
-function gotest { go test "$@"; }
-%endif
-%endif
-
-%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}
-# --- FAIL: TestForceLeaveCommandRun (0.16s)
-#%%gotest %%{import_path}/command
-# --- FAIL: TestSyslogFilter (0.00s)
-# syslog_test.go:17: err: Unix syslog delivery error
-#%%gotest %%{import_path}/command/agent
-# --- FAIL: TestSerf_Join_IgnoreOld (0.08s)
-# --- FAIL: TestSerf_SnapshotRecovery (0.72s)
-#%%gotest %%{import_path}/serf
-%gotest %{import_path}/testutil
-%endif
+%gochecks %{gobaseipath}/{command,command/agent,serf}
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE
%doc CHANGELOG.md README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc CHANGELOG.md README.md
-%endif
%changelog
+* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0.6.4-0.9.20151109gita72c045
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.6.4-0.8.gita72c045
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
https://src.fedoraproject.org/rpms/golang-github-hashicorp-serf/c/dd0aed0...
4Â years, 11Â months
jchaloup pushed to golang-github-influxdb-go-cache (master).
"Autogenerate some parts using the new macros"
by notificationsï¼ fedoraproject.org
From 3075a5faec84b1804a1c966d7abfd9566c020fc9 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Feb 28 2018 22:32:08 +0000
Subject: Autogenerate some parts using the new macros
---
diff --git a/golang-github-influxdb-go-cache.spec b/golang-github-influxdb-go-cache.spec
index f8eaec8..641bdc6 100644
--- a/golang-github-influxdb-go-cache.spec
+++ b/golang-github-influxdb-go-cache.spec
@@ -1,59 +1,50 @@
-%global provider github
-%global provider_tld com
-%global project influxdb
-%global repo go-cache
+# https://github.com/influxdb/go-cache
+%global provider_prefix github.com/influxdb/go-cache
+%global gobaseipath %{provider_prefix}
%global commit 7d1d6d6ae935664bc8b80ab2b1fc7ab77a7e46da
+%global commitdate 20130808
-%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global debug_package %{nil}
+%gocraftmeta -i
-Name: golang-%{provider}-%{project}-%{repo}
+Name: %{goname}
Version: 0
-Release: 0.8.git%{shortcommit}%{?dist}
+Release: 0.9.%{commitdate}git%{shortcommit}%{?dist}
Summary: An in-memory key:value store/cache library for Go
License: MIT
-URL: http://%{import_path}
-Source0: https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortco...
+URL: %{gourl}
+Source0: %{gosource}
BuildArch: noarch
%description
An in-memory key:value store/cache (similar to Memcached) library for Go,
suitable for single-machine applications
-
%package devel
-BuildRequires: golang >= 1.2.1-3
-Requires: golang >= 1.2.1-3
Summary: An in-memory key:value store/cache library for Go
-Provides: golang(%{import_path}) = %{version}-%{release}
%description devel
An in-memory key:value store/cache (similar to Memcached) library for Go,
suitable for single-machine applications
This package contains library source intended for
-building other packages which use %{project}/%{repo}.
+building other packages which use %{gobaseipath}.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
+%goinstall
%check
-GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+%gochecks
-%files devel
+%files devel -f devel.file-list
%doc LICENSE README CONTRIBUTORS
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
-%{gopath}/src/%{import_path}/*.go
%changelog
+* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.9.20130808git7d1d6d6
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.8.git7d1d6d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@@ -78,5 +69,3 @@ GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
* Thu Sep 25 2014 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.1.git7d1d6d6
- First package for Fedora
-
-
https://src.fedoraproject.org/rpms/golang-github-influxdb-go-cache/c/3075...
4Â years, 11Â months
jchaloup pushed to golang-github-inconshreveable-mousetrap (master).
"Autogenerate some parts using the new macros"
by notificationsï¼ fedoraproject.org
From 19195dd811f9b24b476970157627f3625bcb520f Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Feb 28 2018 22:25:44 +0000
Subject: Autogenerate some parts using the new macros
---
diff --git a/golang-github-inconshreveable-mousetrap.spec b/golang-github-inconshreveable-mousetrap.spec
index 27fb5bf..0c0de2d 100644
--- a/golang-github-inconshreveable-mousetrap.spec
+++ b/golang-github-inconshreveable-mousetrap.spec
@@ -1,153 +1,53 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-%global with_check 1
-# no tests so far
-%global with_unit_test 0
-%else
-%global with_devel 0
-%global with_bundled 0
-%global with_debug 0
-%global with_check 0
-%global with_unit_test 0
-%endif
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global provider github
-%global provider_tld com
-%global project inconshreveable
-%global repo mousetrap
-# https://github.com/inconshreveable/mousetrap
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+# http://github.com/inconshreveable/mousetrap
+%global provider_prefix github.com/inconshreveable/mousetrap
+%global gobaseipath %{provider_prefix}
%global commit 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20141217
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 0
-Release: 0.8.git%{shortcommit}%{?dist}
+Release: 0.9.%{commitdate}git%{shortcommit}%{?dist}
Summary: Detect starting from Windows explorer
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 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check}
-%endif
-
-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
-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}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%{gobaseipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-find . -iname "*windows*" -exec rm -f {} \;
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%endif
+%gochecks
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE
%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc README.md
-%endif
%changelog
+* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.9.20141217git76626ae
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.8.git76626ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
https://src.fedoraproject.org/rpms/golang-github-inconshreveable-mousetra...
4Â years, 11Â months
germano pushed to esteidcerts (epel7). "Revert "2017-06-11: Retired
orphaned package, because it was orphaned for" (..more)"
by notificationsï¼ fedoraproject.org
From 283f76d233abfa1ffea92283a9efe16f2b258087 Mon Sep 17 00:00:00 2001
From: Mohan Boddu <mboddu(a)redhat.com>
Date: Dec 11 2017 21:31:56 +0000
Subject: Revert "2017-06-11: Retired orphaned package, because it was orphaned for"
Unretiring for https://pagure.io/releng/issue/7203
This reverts commit d5c6630ff817e06e290bd22a2c6b8995a3ed7557.
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b88634b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/esteidcerts-3.8.0.9128.tar.gz
diff --git a/dead.package b/dead.package
deleted file mode 100644
index fc640e4..0000000
--- a/dead.package
+++ /dev/null
@@ -1,3 +0,0 @@
-2017-06-11: Retired orphaned package, because it was orphaned for
-more than six weeks.
-
diff --git a/esteidcerts.spec b/esteidcerts.spec
new file mode 100644
index 0000000..ad713c3
--- /dev/null
+++ b/esteidcerts.spec
@@ -0,0 +1,69 @@
+Name: esteidcerts
+Version: 3.8.0.9128
+Release: 5%{?dist}
+Summary: Estonian ID-card certificates
+
+License: Public Domain
+URL: http://www.ria.ee
+Source: https://installer.id.ee/media/sources/%{name}-%{version}.tar.gz
+Buildarch: noarch
+
+
+%description
+Estonian ID card root, intermediate and OCSP certificates
+
+
+%package test
+Summary: Estonian ID card test certificates
+
+Requires: %{name} = %{version}-%{release}
+
+%description test
+Estonian ID card test root, intermediate and OCSP certificates
+
+%prep
+%setup -q
+
+%build
+
+%install
+install -d %{buildroot}%{_datadir}/esteid/certs
+install -D -c -p -m 644 *.crt %{buildroot}%{_datadir}/esteid/certs/
+
+%files
+%doc README.txt
+%dir %{_datadir}/esteid
+%exclude %{_datadir}/esteid/certs/TEST*
+%{_datadir}/esteid/certs
+
+%files test
+%doc README.txt
+%{_datadir}/esteid/certs/TEST*
+
+%changelog
+* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.0.9128-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Wed Feb 03 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.0.9128-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 3.8.0.9128-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 3.8.0.9128-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Tue Feb 18 2014 Mihkel Vain <mihkel(a)fedoraproject.org> - 3.8.0.9128-1
+- More spec file fixes
+
+* Mon Feb 17 2014 Mihkel Vain <mihkel(a)fedoraproject.org> - 3.8.0.9128-1
+- Fix spec file according to suggestions and move TEST* certs to *-test package
+
+* Sat Jan 18 2014 Mihkel Vain <turakas(a)gmail.com> - 3.8.0.9128-1
+- Move test certs to devel package
+
+* Fri Jan 17 2014 Mihkel Vain <turakas(a)gmail.com> - 3.8.0.9128-1
+- First rpm package for Fedora
+
+* Fri Aug 13 2010 RIA <info(a)ria.ee> 1.0-1
+- first build no changes
diff --git a/sources b/sources
new file mode 100644
index 0000000..586ed8e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+92b79074e4f6db85453f561f9d9ab35f esteidcerts-3.8.0.9128.tar.gz
https://src.fedoraproject.org/rpms/esteidcerts/c/283f76d233abfa1ffea92283...
4Â years, 11Â months
germano pushed to esteidcerts (epel7). "2017-06-11: Retired orphaned
package, because it was orphaned for (..more)"
by notificationsï¼ fedoraproject.org
From d5c6630ff817e06e290bd22a2c6b8995a3ed7557 Mon Sep 17 00:00:00 2001
From: Till Maas <opensource(a)till.name>
Date: Jun 11 2017 12:21:55 +0000
Subject: 2017-06-11: Retired orphaned package, because it was orphaned for
more than six weeks.
---
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index b88634b..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/esteidcerts-3.8.0.9128.tar.gz
diff --git a/dead.package b/dead.package
new file mode 100644
index 0000000..fc640e4
--- /dev/null
+++ b/dead.package
@@ -0,0 +1,3 @@
+2017-06-11: Retired orphaned package, because it was orphaned for
+more than six weeks.
+
diff --git a/esteidcerts.spec b/esteidcerts.spec
deleted file mode 100644
index ad713c3..0000000
--- a/esteidcerts.spec
+++ /dev/null
@@ -1,69 +0,0 @@
-Name: esteidcerts
-Version: 3.8.0.9128
-Release: 5%{?dist}
-Summary: Estonian ID-card certificates
-
-License: Public Domain
-URL: http://www.ria.ee
-Source: https://installer.id.ee/media/sources/%{name}-%{version}.tar.gz
-Buildarch: noarch
-
-
-%description
-Estonian ID card root, intermediate and OCSP certificates
-
-
-%package test
-Summary: Estonian ID card test certificates
-
-Requires: %{name} = %{version}-%{release}
-
-%description test
-Estonian ID card test root, intermediate and OCSP certificates
-
-%prep
-%setup -q
-
-%build
-
-%install
-install -d %{buildroot}%{_datadir}/esteid/certs
-install -D -c -p -m 644 *.crt %{buildroot}%{_datadir}/esteid/certs/
-
-%files
-%doc README.txt
-%dir %{_datadir}/esteid
-%exclude %{_datadir}/esteid/certs/TEST*
-%{_datadir}/esteid/certs
-
-%files test
-%doc README.txt
-%{_datadir}/esteid/certs/TEST*
-
-%changelog
-* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.0.9128-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Wed Feb 03 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.0.9128-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
-
-* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 3.8.0.9128-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
-
-* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 3.8.0.9128-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
-
-* Tue Feb 18 2014 Mihkel Vain <mihkel(a)fedoraproject.org> - 3.8.0.9128-1
-- More spec file fixes
-
-* Mon Feb 17 2014 Mihkel Vain <mihkel(a)fedoraproject.org> - 3.8.0.9128-1
-- Fix spec file according to suggestions and move TEST* certs to *-test package
-
-* Sat Jan 18 2014 Mihkel Vain <turakas(a)gmail.com> - 3.8.0.9128-1
-- Move test certs to devel package
-
-* Fri Jan 17 2014 Mihkel Vain <turakas(a)gmail.com> - 3.8.0.9128-1
-- First rpm package for Fedora
-
-* Fri Aug 13 2010 RIA <info(a)ria.ee> 1.0-1
-- first build no changes
diff --git a/sources b/sources
deleted file mode 100644
index 586ed8e..0000000
--- a/sources
+++ /dev/null
@@ -1 +0,0 @@
-92b79074e4f6db85453f561f9d9ab35f esteidcerts-3.8.0.9128.tar.gz
https://src.fedoraproject.org/rpms/esteidcerts/c/d5c6630ff817e06e290bd22a...
4Â years, 11Â months