The package rpms/golang-github-lib-pq.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-lib-pq.git/commit/?....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit 28d2ec9c9b668d2939c567a2f8d114d4170c8cab
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Sun Jun 17 23:13:51 2018 +0200
Upload glide files
diff --git a/.gitignore b/.gitignore
index 0df5934..b76cc6c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/pq-0dad96c.tar.gz
+/pq-0dad96c0b94f8dee039aa40467f767467392a0af.tar.gz
diff --git a/glide.lock b/glide.lock
new file mode 100644
index 0000000..6c5662f
--- /dev/null
+++ b/glide.lock
@@ -0,0 +1,4 @@
+hash: a78f7489708399d4a59308ca6fb8993ccc93916419d6c7f79ce6a4bcc9f6b225
+imports: []
+updated: '2018-06-17T21:12:11.341085+00:00'
+
diff --git a/glide.yaml b/glide.yaml
new file mode 100644
index 0000000..f657b51
--- /dev/null
+++ b/glide.yaml
@@ -0,0 +1,3 @@
+import: []
+package:
github.com/lib/pq
+
diff --git a/golang-github-lib-pq.spec b/golang-github-lib-pq.spec
index c86e175..a76ecf3 100644
--- a/golang-github-lib-pq.spec
+++ b/golang-github-lib-pq.spec
@@ -1,18 +1,20 @@
#
http://github.com/lib/pq
-%global provider_prefix
github.com/lib/pq
-%global gobaseipath %{provider_prefix}
+
+%global goipath
github.com/lib/pq
%global commit 0dad96c0b94f8dee039aa40467f767467392a0af
-%global commitdate 20150723
-%gocraftmeta -i
+
+%gometa -i
Name: %{goname}
Version: 0
-Release: 0.9.%{commitdate}git%{shortcommit}%{?dist}
+Release: 0.10%{?dist}
Summary: Pure Go Postgres driver for database/sql
License: MIT
URL: %{gourl}
Source0: %{gosource}
+Source1: glide.yaml
+Source2: glide.yaml
%description
%{summary}
@@ -22,24 +24,23 @@ Summary: %{summary}
BuildArch: noarch
BuildRequires: glibc-devel
-Requires: glibc-devel
%description devel
%{summary}
This package contains library source intended for
building other packages which use import path with
-%{gobaseipath} prefix.
+%{goipath} prefix.
%prep
-%gosetup
-
+%gosetup -q
+cp %{SOURCE1} %{SOURCE2} .
%install
-%goinstall
+%goinstall glide.lock glide.yaml
%check
# Needs db running
-#%%gochecks %{gobaseipath}
+#%%gochecks -d .
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
@@ -49,6 +50,9 @@ building other packages which use import path with
%doc README.md CONTRIBUTING.md
%changelog
+* Sun Jun 17 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.10.git0dad96c
+- Upload glide files
+
* Thu Mar 01 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.9.20150723git0dad96c
- Autogenerate some parts using the new macros
diff --git a/sources b/sources
index 1cbc4a6..9c7d887 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a0bd38f8db60095994a91838a0d671ed pq-0dad96c.tar.gz
+SHA512 (pq-0dad96c0b94f8dee039aa40467f767467392a0af.tar.gz) =
12b5989b9011cfa4d168007eed8e7e980a3e21b47f8efc10c28985a6f957cff9e46251742d18182aa70d3c7d9d22f4fc79395f94a4da7cd96ec6dce679639e62
commit 8a6dabfddd6edec81136999396d5b2dce9d4a707
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Thu Mar 1 11:44:54 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-github-lib-pq.spec b/golang-github-lib-pq.spec
index 267b292..c86e175 100644
--- a/golang-github-lib-pq.spec
+++ b/golang-github-lib-pq.spec
@@ -1,158 +1,57 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-# Needs postgre running
-%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
-
-%global provider github
-%global provider_tld com
-%global project lib
-%global repo pq
-#
https://github.com/lib/pq
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+#
http://github.com/lib/pq
+%global provider_prefix
github.com/lib/pq
+%global gobaseipath %{provider_prefix}
%global commit 0dad96c0b94f8dee039aa40467f767467392a0af
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20150723
-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: Pure Go Postgres driver for database/sql
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 %{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}
-Provides: golang(%{import_path}/hstore) = %{version}-%{release}
-Provides: golang(%{import_path}/listen_example) = %{version}-%{release}
-Provides: golang(%{import_path}/oid) = %{version}-%{release}
+BuildRequires: glibc-devel
+Requires: glibc-devel
%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
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%gotest %{import_path}/hstore
-%endif
+# Needs db running
+#%%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.md
%doc README.md CONTRIBUTING.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.md
-%doc README.md CONTRIBUTING.md
-%endif
%changelog
+* Thu Mar 01 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.9.20150723git0dad96c
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.8.git0dad96c
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild