The package rpms/golang-github-mattn-go-sqlite3.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-mattn-go-sqlite3.gi....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit fa8f38b400c7ade6b81ce33ffe09cce293fbf8ec
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Mon Jun 18 00:32:12 2018 +0200
Upload glide files
diff --git a/.gitignore b/.gitignore
index a1e57f1..013c2f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/go-sqlite3-b4142c4.tar.gz
+/go-sqlite3-b4142c444a8941d0d92b0b7103a24df9cd815e42.tar.gz
diff --git a/glide.lock b/glide.lock
new file mode 100644
index 0000000..f0dc0c4
--- /dev/null
+++ b/glide.lock
@@ -0,0 +1,4 @@
+hash: 22344165c0cc9017e521c16ad040e795954c4ffc44749ff4dcbc4ffe65ef4a9c
+imports: []
+updated: '2018-06-17T22:31:31.851334+00:00'
+
diff --git a/glide.yaml b/glide.yaml
new file mode 100644
index 0000000..8d8b585
--- /dev/null
+++ b/glide.yaml
@@ -0,0 +1,3 @@
+import: []
+package:
github.com/mattn/go-sqlite3
+
diff --git a/golang-github-mattn-go-sqlite3.spec b/golang-github-mattn-go-sqlite3.spec
index 47700f7..c1a631e 100644
--- a/golang-github-mattn-go-sqlite3.spec
+++ b/golang-github-mattn-go-sqlite3.spec
@@ -1,19 +1,22 @@
#
http://github.com/mattn/go-sqlite3
-%global provider_prefix
github.com/mattn/go-sqlite3
-%global gobaseipath %{provider_prefix}
+
+%global goipath
github.com/mattn/go-sqlite3
%global commit b4142c444a8941d0d92b0b7103a24df9cd815e42
-%global commitdate 20150630
-%global __go_ignore_trees %{gobaseipath}/_example
-%gocraftmeta -i
+%global goreqflags -d _example
+%global goprovflags -d _example
+
+%gometa -i
-Name: %{goname}
+Name: golang-github-mattn-go-sqlite3
Version: 1.0.0
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Sqlite3 driver for go that using database/sql
License: MIT
URL: %{gourl}
Source0: %{gosource}
+Source1: glide.yaml
+Source2: glide.yaml
%description
%{summary}
@@ -27,16 +30,16 @@ BuildArch: noarch
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 code _example
+%goinstall glide.lock glide.yaml code _example
%check
-%gochecks %{gobaseipath}
+%gochecks -d .
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
@@ -46,6 +49,9 @@ building other packages which use import path with
%doc README.md
%changelog
+* Sun Jun 17 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 1.0.0-10.gitb4142c4
+- Upload glide files
+
* Thu Mar 01 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 1.0.0-9
- Autogenerate some parts using the new macros
diff --git a/sources b/sources
index c490702..f27eed8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a274b463ce0d8fd87fe98c5af8677492 go-sqlite3-b4142c4.tar.gz
+SHA512 (go-sqlite3-b4142c444a8941d0d92b0b7103a24df9cd815e42.tar.gz) =
c2c68ac6d39b38fb7f7e0e478d341ded30fdf2845ad31aedfe94587301a8872a33e7ea97ece7fb48d031af7fafa073d7ac843a8b8b5d6d329b8b9aa4118b1406
commit 4fe256874b4e8060d11f7a80010e8ccfc70eaab0
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Thu Mar 1 11:49:32 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-github-mattn-go-sqlite3.spec b/golang-github-mattn-go-sqlite3.spec
index 2a29287..47700f7 100644
--- a/golang-github-mattn-go-sqlite3.spec
+++ b/golang-github-mattn-go-sqlite3.spec
@@ -1,161 +1,54 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-# Needs sql 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 mattn
-%global repo go-sqlite3
-#
https://github.com/mattn/go-sqlite3
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+#
http://github.com/mattn/go-sqlite3
+%global provider_prefix
github.com/mattn/go-sqlite3
+%global gobaseipath %{provider_prefix}
%global commit b4142c444a8941d0d92b0b7103a24df9cd815e42
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20150630
+%global __go_ignore_trees %{gobaseipath}/_example
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 1.0.0
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Sqlite3 driver for go that using 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}/sqlite3_test) = %{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
-# 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
-for file in $(find . -iname "*.c" -or -iname "*.h") ; 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 code _example
%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
+* Thu Mar 01 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 1.0.0-9
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.0.0-8
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild