Architecture specific change in rpms/golang-github-cznic-ql.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-cznic-ql.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-cznic-ql.git/commit....
Change:
+ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 8ac310731070e333b778597f566e3b93f5e486ef
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Tue Aug 1 09:57:47 2017 +0200
Initial import (#1431748).
diff --git a/.gitignore b/.gitignore
index e69de29..f82d5a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cznic-ql-ba9eea9.tar.gz
diff --git a/golang-github-cznic-ql.spec b/golang-github-cznic-ql.spec
new file mode 100644
index 0000000..657f8b2
--- /dev/null
+++ b/golang-github-cznic-ql.spec
@@ -0,0 +1,236 @@
+# Generate devel rpm
+%global with_devel 1
+# Build project from bundled dependencies
+%global with_bundled 0
+# Build with debug info rpm
+%global with_debug 1
+# Run tests in check section
+%global with_check 1
+# Generate unit-test rpm
+%global with_unit_test 1
+# Build command line tool
+%global with_cli_tool 1
+
+%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 cznic
+%global repo ql
+# https://github.com/cznic/ql
+%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
+%global import_path %{provider_prefix}
+%global commit ba9eea98e3d20b3485b5b3d4a77775ee8bdd5387
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20170522
+
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 1.1.0
+Release: 1.%{commitdate}.git%{shortcommit}%{?dist}
+Summary: Embedded SQL database written in Go
+
+# This package is BSD licensed, but the vendored go4.org/lock library is ASLv2.0
+License: BSD and ASL 2.0
+URL: https://%{provider_prefix}
+Source0: https://%{provider_prefix}/archive/%{commit}/%{project}-%{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}
+
+%if 0%{?with_cli_tool}
+BuildRequires: golang(github.com/cznic/b)
+BuildRequires: golang(github.com/cznic/golex/lex)
+BuildRequires: golang(github.com/cznic/lldb)
+BuildRequires: golang(github.com/cznic/mathutil)
+BuildRequires: golang(github.com/cznic/strutil)
+
+Provides: ql%{?_isa} = %{version}-%{release}
+%endif
+
+%description
+%{summary}
+
+
+%if 0%{?with_devel}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%if 0%{?with_check} && ! 0%{?with_bundled}
+BuildRequires: golang(github.com/cznic/b)
+BuildRequires: golang(github.com/cznic/golex/lex)
+BuildRequires: golang(github.com/cznic/lldb)
+BuildRequires: golang(github.com/cznic/mathutil)
+BuildRequires: golang(github.com/cznic/strutil)
+%endif
+
+Requires: golang(github.com/cznic/b)
+Requires: golang(github.com/cznic/golex/lex)
+Requires: golang(github.com/cznic/lldb)
+Requires: golang(github.com/cznic/mathutil)
+Requires: golang(github.com/cznic/strutil)
+
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path}/design) = %{version}-%{release}
+Provides: golang(%{import_path}/driver) = %{version}-%{release}
+Provides: bundled(golang(github.com/camlistore/go4/lock))
+
+%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
+
+# test subpackage tests code from devel subpackage
+Requires: %{name}-devel = %{version}-%{release}
+
+%description unit-test-devel
+%{summary}
+
+This package contains unit tests for project
+providing packages with %{import_path} prefix.
+%endif
+
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+
+%build
+%if 0%{?with_cli_tool}
+# prepare build environment
+mkdir -p ./_build/src/%{provider}.%{provider_tld}/%{project}
+ln -s $(pwd) ./_build/src/%{import_path}
+
+# run build and set version correctly
+export GOPATH=$(pwd)/_build:%{gopath}
+%gobuild -o bin/ql %{import_path}/ql
+%endif
+
+
+%install
+%if 0%{?with_cli_tool}
+mkdir -p %{buildroot}/%{_bindir}
+cp -pav ./bin/ql %{buildroot}/%{_bindir}/
+%endif
+
+# 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
+
+# add test data for unit test subpackage
+cp -pavr _testdata %{buildroot}/%{gopath}/src/%{import_path}/
+echo "%%{gopath}/src/%%{import_path}/_testdata" >> unit-test-devel.file-list
+
+cp -pav testdata.ql %{buildroot}/%{gopath}/src/%{import_path}/
+echo "%%{gopath}/src/%%{import_path}/testdata.ql" >> unit-test-devel.file-list
+%endif
+
+# install license file for bundled go4.org/lock library
+mkdir -p %{buildroot}%{_licensedir}/%{name}
+cp -pav vendored/github.com/camlistore/LICENSE \
+ %{buildroot}/%{_licensedir}/%{name}/LICENSE.camlistore-go4-lock
+
+%if 0%{?with_devel}
+sort -u -o devel.file-list devel.file-list
+%endif
+
+
+%check
+%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
+export GOPATH=%{buildroot}/%{gopath}:%{gopath}
+
+%if ! 0%{?gotest:1}
+%global gotest go test
+%endif
+
+%gotest %{import_path}
+%gotest %{import_path}/driver
+%gotest %{import_path}/vendored/github.com/camlistore/go4/lock
+
+# Clean up test logs
+rm %{buildroot}/%{gopath}/src/%{import_path}/testdata.log
+%endif
+
+
+#define license tag if not already defined
+%{!?_licensedir:%global license %doc}
+
+
+%if 0%{?with_cli_tool}
+%files
+%license LICENSE
+%doc CONTRIBUTORS README.md AUTHORS
+%{_bindir}/ql
+%{_licensedir}/%{name}/LICENSE.camlistore-go4-lock
+%endif
+
+%if 0%{?with_devel}
+%files devel -f devel.file-list
+%license LICENSE
+%doc CONTRIBUTORS README.md AUTHORS
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{_licensedir}/%{name}/LICENSE.camlistore-go4-lock
+%endif
+
+%if 0%{?with_unit_test} && 0%{?with_devel}
+%files unit-test-devel -f unit-test-devel.file-list
+%license LICENSE
+%doc CONTRIBUTORS README.md AUTHORS
+%{_licensedir}/%{name}/LICENSE.camlistore-go4-lock
+%endif
+
+
+%changelog
+* Wed Jun 28 2017 Fabio Valentini <decathorpe(a)gmail.com> - 1.1.0-1.20170522.gitba9eea9
+- Bump to commit ba9eea9.
+
+* Sat Mar 11 2017 Fabio Valentini <decathorpe(a)gmail.com> - 1.1.0-1.20170517.gitf39e59d
+- First package for Fedora
+
diff --git a/sources b/sources
index e69de29..58e9e96 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (cznic-ql-ba9eea9.tar.gz) = a2b52ee4a2728edbb6f8bb252496dcaf71554b82f333a626602e15176176c4f3d45ee129ff9254fce6fd598f04a10023c87281a0c463bfac6e2923c82e3ed9ee
6 years, 4 months
Architecture specific change in rpms/golang-github-cznic-ql.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-cznic-ql.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-cznic-ql.git/commit....
Change:
+ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 8ac310731070e333b778597f566e3b93f5e486ef
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Tue Aug 1 09:57:47 2017 +0200
Initial import (#1431748).
diff --git a/.gitignore b/.gitignore
index e69de29..f82d5a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cznic-ql-ba9eea9.tar.gz
diff --git a/golang-github-cznic-ql.spec b/golang-github-cznic-ql.spec
new file mode 100644
index 0000000..657f8b2
--- /dev/null
+++ b/golang-github-cznic-ql.spec
@@ -0,0 +1,236 @@
+# Generate devel rpm
+%global with_devel 1
+# Build project from bundled dependencies
+%global with_bundled 0
+# Build with debug info rpm
+%global with_debug 1
+# Run tests in check section
+%global with_check 1
+# Generate unit-test rpm
+%global with_unit_test 1
+# Build command line tool
+%global with_cli_tool 1
+
+%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 cznic
+%global repo ql
+# https://github.com/cznic/ql
+%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
+%global import_path %{provider_prefix}
+%global commit ba9eea98e3d20b3485b5b3d4a77775ee8bdd5387
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20170522
+
+
+Name: golang-%{provider}-%{project}-%{repo}
+Version: 1.1.0
+Release: 1.%{commitdate}.git%{shortcommit}%{?dist}
+Summary: Embedded SQL database written in Go
+
+# This package is BSD licensed, but the vendored go4.org/lock library is ASLv2.0
+License: BSD and ASL 2.0
+URL: https://%{provider_prefix}
+Source0: https://%{provider_prefix}/archive/%{commit}/%{project}-%{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}
+
+%if 0%{?with_cli_tool}
+BuildRequires: golang(github.com/cznic/b)
+BuildRequires: golang(github.com/cznic/golex/lex)
+BuildRequires: golang(github.com/cznic/lldb)
+BuildRequires: golang(github.com/cznic/mathutil)
+BuildRequires: golang(github.com/cznic/strutil)
+
+Provides: ql%{?_isa} = %{version}-%{release}
+%endif
+
+%description
+%{summary}
+
+
+%if 0%{?with_devel}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%if 0%{?with_check} && ! 0%{?with_bundled}
+BuildRequires: golang(github.com/cznic/b)
+BuildRequires: golang(github.com/cznic/golex/lex)
+BuildRequires: golang(github.com/cznic/lldb)
+BuildRequires: golang(github.com/cznic/mathutil)
+BuildRequires: golang(github.com/cznic/strutil)
+%endif
+
+Requires: golang(github.com/cznic/b)
+Requires: golang(github.com/cznic/golex/lex)
+Requires: golang(github.com/cznic/lldb)
+Requires: golang(github.com/cznic/mathutil)
+Requires: golang(github.com/cznic/strutil)
+
+Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path}/design) = %{version}-%{release}
+Provides: golang(%{import_path}/driver) = %{version}-%{release}
+Provides: bundled(golang(github.com/camlistore/go4/lock))
+
+%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
+
+# test subpackage tests code from devel subpackage
+Requires: %{name}-devel = %{version}-%{release}
+
+%description unit-test-devel
+%{summary}
+
+This package contains unit tests for project
+providing packages with %{import_path} prefix.
+%endif
+
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+
+%build
+%if 0%{?with_cli_tool}
+# prepare build environment
+mkdir -p ./_build/src/%{provider}.%{provider_tld}/%{project}
+ln -s $(pwd) ./_build/src/%{import_path}
+
+# run build and set version correctly
+export GOPATH=$(pwd)/_build:%{gopath}
+%gobuild -o bin/ql %{import_path}/ql
+%endif
+
+
+%install
+%if 0%{?with_cli_tool}
+mkdir -p %{buildroot}/%{_bindir}
+cp -pav ./bin/ql %{buildroot}/%{_bindir}/
+%endif
+
+# 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
+
+# add test data for unit test subpackage
+cp -pavr _testdata %{buildroot}/%{gopath}/src/%{import_path}/
+echo "%%{gopath}/src/%%{import_path}/_testdata" >> unit-test-devel.file-list
+
+cp -pav testdata.ql %{buildroot}/%{gopath}/src/%{import_path}/
+echo "%%{gopath}/src/%%{import_path}/testdata.ql" >> unit-test-devel.file-list
+%endif
+
+# install license file for bundled go4.org/lock library
+mkdir -p %{buildroot}%{_licensedir}/%{name}
+cp -pav vendored/github.com/camlistore/LICENSE \
+ %{buildroot}/%{_licensedir}/%{name}/LICENSE.camlistore-go4-lock
+
+%if 0%{?with_devel}
+sort -u -o devel.file-list devel.file-list
+%endif
+
+
+%check
+%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
+export GOPATH=%{buildroot}/%{gopath}:%{gopath}
+
+%if ! 0%{?gotest:1}
+%global gotest go test
+%endif
+
+%gotest %{import_path}
+%gotest %{import_path}/driver
+%gotest %{import_path}/vendored/github.com/camlistore/go4/lock
+
+# Clean up test logs
+rm %{buildroot}/%{gopath}/src/%{import_path}/testdata.log
+%endif
+
+
+#define license tag if not already defined
+%{!?_licensedir:%global license %doc}
+
+
+%if 0%{?with_cli_tool}
+%files
+%license LICENSE
+%doc CONTRIBUTORS README.md AUTHORS
+%{_bindir}/ql
+%{_licensedir}/%{name}/LICENSE.camlistore-go4-lock
+%endif
+
+%if 0%{?with_devel}
+%files devel -f devel.file-list
+%license LICENSE
+%doc CONTRIBUTORS README.md AUTHORS
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{_licensedir}/%{name}/LICENSE.camlistore-go4-lock
+%endif
+
+%if 0%{?with_unit_test} && 0%{?with_devel}
+%files unit-test-devel -f unit-test-devel.file-list
+%license LICENSE
+%doc CONTRIBUTORS README.md AUTHORS
+%{_licensedir}/%{name}/LICENSE.camlistore-go4-lock
+%endif
+
+
+%changelog
+* Wed Jun 28 2017 Fabio Valentini <decathorpe(a)gmail.com> - 1.1.0-1.20170522.gitba9eea9
+- Bump to commit ba9eea9.
+
+* Sat Mar 11 2017 Fabio Valentini <decathorpe(a)gmail.com> - 1.1.0-1.20170517.gitf39e59d
+- First package for Fedora
+
diff --git a/sources b/sources
index e69de29..58e9e96 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (cznic-ql-ba9eea9.tar.gz) = a2b52ee4a2728edbb6f8bb252496dcaf71554b82f333a626602e15176176c4f3d45ee129ff9254fce6fd598f04a10023c87281a0c463bfac6e2923c82e3ed9ee
6 years, 4 months