Architecture specific change in rpms/golang-github-templexxx-reedsolomon.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-templexxx-reedsolomon.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-templexxx-reedsolom....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit b69579b0889da638cf44a2647c564f8cff39579e
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun Sep 2 20:37:53 2018 +0200
update to spec 3.0
diff --git a/.gitignore b/.gitignore
index 06fca8d..57109eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/templexxx-reedsolomon-6b5871b.tar.gz
/templexxx-reedsolomon-0.1.1.tar.gz
+/reedsolomon-0.1.1.tar.gz
diff --git a/golang-github-templexxx-reedsolomon.spec b/golang-github-templexxx-reedsolomon.spec
index 1d2cf8c..0518ae3 100644
--- a/golang-github-templexxx-reedsolomon.spec
+++ b/golang-github-templexxx-reedsolomon.spec
@@ -1,173 +1,60 @@
-# 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
-
-%global provider github
-%global provider_tld com
-%global project templexxx
-%global repo reedsolomon
# https://github.com/templexxx/reedsolomon
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 5e06b81a1c7628d9c8d4fb7c3c4e401e37db39b4
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global commitdate 20170905
+%global goipath github.com/templexxx/reedsolomon
+%global tag 0.1.1
-# commit 5e06b81a1c7628d9c8d4fb7c3c4e401e37db39b4 == version 0.1.1
-
-
-Name: golang-%{provider}-%{project}-%{repo}
+Name: golang-github-templexxx-reedsolomon
Version: 0.1.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Reed-Solomon Erasure Code engine in Go
License: MIT
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{version}/%{project}-%{repo}-%{version}.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}
+%gometa
+
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
-BuildArch: noarch
-%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/templexxx/cpufeat)
-%endif
-
-Requires: golang(github.com/templexxx/cpufeat)
-
-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
-
-# 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
+%{goipath} prefix.
%prep
-%setup -q -n %{repo}-%{version}
+%gosetup -q
# Unmark source files as executable
# https://github.com/templexxx/reedsolomon/issues/8
chmod -R a-x+X .
-%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
+%goinstall
%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}
-%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-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc README.md
-%endif
%changelog
+* Sun Sep 02 2018 Fabio Valentini <decathorpe(a)gmail.com> - 0.1.1-4
+- Update to use spec 3.0.
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index 702dd6f..6d66ed6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (templexxx-reedsolomon-0.1.1.tar.gz) = d3ca66c43f7102bc73b2745db2e186af294e8924f7c2c407c0eaddc9fac22230f86b829f2d816ff8e883d5574553b17231cae4f36d01d4be39dffb1c02b9d53a
+SHA512 (reedsolomon-0.1.1.tar.gz) = d3ca66c43f7102bc73b2745db2e186af294e8924f7c2c407c0eaddc9fac22230f86b829f2d816ff8e883d5574553b17231cae4f36d01d4be39dffb1c02b9d53a
5 years, 7 months
Architecture specific change in rpms/golang-github-templexxx-cpufeat.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-templexxx-cpufeat.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-templexxx-cpufeat.g....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit e5ed00142b33224b3f385481503d3b6a790ba215
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun Sep 2 20:24:21 2018 +0200
bump to commit cef66df and update to spec 3.0
diff --git a/.gitignore b/.gitignore
index 6b1094a..b6241ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/templexxx-cpufeat-3794dfb.tar.gz
+/cpufeat-cef66df7f161dee20f4d650da7268d77eaaec82d.tar.gz
diff --git a/golang-github-templexxx-cpufeat.spec b/golang-github-templexxx-cpufeat.spec
index 41ee7ee..6f64f80 100644
--- a/golang-github-templexxx-cpufeat.spec
+++ b/golang-github-templexxx-cpufeat.spec
@@ -1,159 +1,57 @@
-# 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
-
-%global provider github
-%global provider_tld com
-%global project templexxx
-%global repo cpufeat
# https://github.com/templexxx/cpufeat
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 3794dfbfb04749f896b521032f69383f24c3687e
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global commitdate 20170927
+%global goipath github.com/templexxx/cpufeat
+%global commit cef66df7f161dee20f4d650da7268d77eaaec82d
+%global date 20180724
+%gometa
-Name: golang-%{provider}-%{project}-%{repo}
+Name: %{goname}
Version: 0
-Release: 0.3.%{commitdate}.git%{shortcommit}%{?dist}
+Release: 0.4%{?dist}
Summary: Implementation of internal/cpu in Go
License: BSD
-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}
+URL: %{gourl}
+Source0: %{gosource}
%description
-%{summary}.
+%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-Provides: golang(%{import_path}) = %{version}-%{release}
-
%description devel
-%{summary}.
+%{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
+%{goipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-
-%build
+%gosetup -q
%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
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
+%gochecks
-%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
-%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
-%endif
+%doc README.md
%changelog
+* Sun Sep 02 2018 Fabio Valentini <decathorpe(a)gmail.com> - 0-0.4.20180724gitcef66df
+- Bump to commit cef66df.
+- Update to use spec 3.0.
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.3.20170927.git3794dfb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index ae80ee3..85a689d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (templexxx-cpufeat-3794dfb.tar.gz) = d42fe2bd9581229f761bbb8913deded0966079042af497a7fe6a5264997706877b5b24cb92609d698a0e7f78917fc6aeae689398b82caa78d50424f117225527
+SHA512 (cpufeat-cef66df7f161dee20f4d650da7268d77eaaec82d.tar.gz) = e2d57b773fecfe2564f33ef868e6f5450ed608b4ed03dff02c861bf47d2f492089439aa687b4e65672095b35c7a8dadd71c73faec967a716fca7d5660a8e78b2
5 years, 7 months
Architecture specific change in rpms/golang-github-sasha-s-go-deadlock.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-sasha-s-go-deadlock.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-sasha-s-go-deadlock....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 14633c8d3174b97b7e7e9833ed8738194227dfc6
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun Sep 2 20:15:11 2018 +0200
bump to commit d68e2bc and update to spec 3.0
diff --git a/.gitignore b/.gitignore
index 0f6140a..04ac2e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/go-deadlock-3410008.tar.gz
/go-deadlock-565eb44.tar.gz
/sasha-s-go-deadlock-03d40e5.tar.gz
+/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e.tar.gz
diff --git a/00-fix-locking-order.patch b/00-fix-locking-order.patch
deleted file mode 100644
index 6f09f02..0000000
--- a/00-fix-locking-order.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff --git a/deadlock.go b/deadlock.go
-index 6f8f81e..68c7b7a 100644
---- a/deadlock.go
-+++ b/deadlock.go
-@@ -189,8 +189,8 @@ func lock(lockFn func(), ptr interface{}) {
- if buf, ok := Opts.LogBuf.(*bufio.Writer); ok {
- buf.Flush()
- }
-- lo.mu.Unlock()
- Opts.mu.Unlock()
-+ lo.mu.Unlock()
- Opts.OnPotentialDeadlock()
- <-ch
- PostLock(4, ptr)
diff --git a/01-fix-another-locking-order.patch b/01-fix-another-locking-order.patch
deleted file mode 100644
index f1f2e3a..0000000
--- a/01-fix-another-locking-order.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 6970cb987309cbf378c4797818df3dc55da31726 Mon Sep 17 00:00:00 2001
-From: Nao YONASHIRO <owan.orisano(a)gmail.com>
-Date: Thu, 7 Jun 2018 16:41:41 +0900
-Subject: [PATCH] fix: fix RUnlock timing (#10)
-
-* fix: fix RUnlock timing
----
- deadlock.go | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/deadlock.go b/deadlock.go
-index 68c7b7a..39eefeb 100644
---- a/deadlock.go
-+++ b/deadlock.go
-@@ -115,10 +115,10 @@ func (m *RWMutex) RLock() {
- // It is a run-time error if rw is not locked for reading
- // on entry to RUnlock.
- func (m *RWMutex) RUnlock() {
-+ m.mu.RUnlock()
- if !Opts.Disable {
- PostUnlock(m)
- }
-- m.mu.RUnlock()
- }
-
- // RLocker returns a Locker interface that implements
diff --git a/golang-github-sasha-s-go-deadlock.spec b/golang-github-sasha-s-go-deadlock.spec
index 52527a1..a678bb8 100644
--- a/golang-github-sasha-s-go-deadlock.spec
+++ b/golang-github-sasha-s-go-deadlock.spec
@@ -1,179 +1,59 @@
-# 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
-
-%global provider github
-%global provider_tld com
-%global project sasha-s
-%global repo go-deadlock
# https://github.com/sasha-s/go-deadlock
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 03d40e5dbd5488667a13b3c2600b2f7c2886f02f
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global commitdate 20171130
+%global goipath github.com/sasha-s/go-deadlock
+%global commit d68e2bc52ae3291765881b9056f2c1527f245f1e
+%global date 20180822
-# commit 03d40e5dbd5488667a13b3c2600b2f7c2886f02f == version 0.2.0
+%gometa
-
-Name: golang-%{provider}-%{project}-%{repo}
+Name: golang-github-sasha-s-go-deadlock
Version: 0.2.0
-Release: 5%{?dist}
+Release: 7%{?dist}
Summary: Online deadlock detection in go
License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{project}-%{repo}-%{shortcommit}.tar.gz
-
-# Upstream patch to fix a locking order, from commit:
-# https://github.com/sasha-s/go-deadlock/commit/89fc81536521522e45c1465e2b4...
-Patch0: 00-fix-locking-order.patch
-
-# Another upstream patch to fix locking order, from commit:
-# https://github.com/sasha-s/go-deadlock/commit/6970cb987309cbf378c4797818d...
-Patch1: 01-fix-another-locking-order.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}}
-# 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} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/petermattis/goid)
-%endif
-
-Requires: golang(github.com/petermattis/goid)
-
-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
-
-# 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
+%{goipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-%patch0 -p1
-%patch1 -p1
-
-
-%build
+%gosetup -q
%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
+%goinstall
%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}
-%endif
-
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
+%gochecks
-%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
%changelog
+* Sun Sep 02 2018 Fabio Valentini <decathorpe(a)gmail.com> - 0.2.0-7.20180822gitd68e2bc
+- Bump to commit d68e2bc.
+- Update to use spec 3.0.
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.2.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index 9af6fe7..b61d9fd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sasha-s-go-deadlock-03d40e5.tar.gz) = 3284aba71a7524af624ab1cb63e8926809e19e778af07994ec2f210d33c7cb63819c93e117dc17240f0618e6710c7a4d65b3eeba34690f4d56080ffd99a70bfb
+SHA512 (go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e.tar.gz) = 3b0e7d2c0cf8b87fe3326951e417414059b26d4725c423f300fd58396565ae5cd38a9258330ea829e9422a1459601ee7e535b7446f1848d9006160fcabb27592
5 years, 7 months
Architecture specific change in rpms/llvm.git
by githook-noreply@fedoraproject.org
The package rpms/llvm.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/llvm.git/commit/?id=165caa696e4bb...
https://src.fedoraproject.org/cgit/rpms/llvm.git/commit/?id=c96d6793e9e41....
Change:
+%ifarch %{gold_arches}
+%ifarch %{valgrind_arches}
Thanks.
Full change:
============
commit 165caa696e4bb066cfad2523e14d846a85fe7d57
Author: Tom Stellard <tstellar(a)redhat.com>
Date: Wed Aug 29 03:35:53 2018 +0000
Build the gold plugin on all supported architectures
rhbz#1623305
diff --git a/llvm.spec b/llvm.spec
index 9c24d27..0cd4698 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -1,6 +1,7 @@
#global debug_package %%{nil}
# Components enabled if supported by target architecture:
-%ifarch %ix86 x86_64
+%define gold_arches %{ix86} x86_64 %{arm} aarch64 %{power64} s390x
+%ifarch %{gold_arches}
%bcond_without gold
%else
%bcond_with gold
@@ -50,7 +51,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
-Release: 0.8.rc%{rc_ver}%{?dist}
+Release: 0.9.rc%{rc_ver}%{?dist}
Summary: The Low Level Virtual Machine
License: NCSA
@@ -410,6 +411,9 @@ fi
%endif
%changelog
+* Thu Aug 30 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.9.rc2
+- Build the gold plugin on all supported architectures
+
* Wed Aug 29 2018 Kevin Fenzi <kevin(a)scrye.com> - 7.0.0-0.8.rc2
- Re-enable debuginfo to avoid 25x size increase.
commit a057ddec79b1e42141b7ccb00a64a3b1fd2779a5
Author: Kevin Fenzi <kevin(a)scrye.com>
Date: Wed Aug 29 16:03:47 2018 -0700
Re-enable debuginfo to avoid 25x size increase.
diff --git a/llvm.spec b/llvm.spec
index 10b03ce..9c24d27 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -1,4 +1,4 @@
-%global debug_package %{nil}
+#global debug_package %%{nil}
# Components enabled if supported by target architecture:
%ifarch %ix86 x86_64
%bcond_without gold
@@ -50,7 +50,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
-Release: 0.7.rc%{rc_ver}%{?dist}
+Release: 0.8.rc%{rc_ver}%{?dist}
Summary: The Low Level Virtual Machine
License: NCSA
@@ -410,6 +410,9 @@ fi
%endif
%changelog
+* Wed Aug 29 2018 Kevin Fenzi <kevin(a)scrye.com> - 7.0.0-0.8.rc2
+- Re-enable debuginfo to avoid 25x size increase.
+
* Tue Aug 28 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.7.rc2
- 7.0.0-rc2 Release
commit 1bf09a7cfb57e9e49bb0c1b05abe33aaef60e1b7
Author: Tom Stellard <tstellar(a)redhat.com>
Date: Tue Aug 28 17:53:32 2018 +0000
7.0.0-rc2 Release
diff --git a/.gitignore b/.gitignore
index 72c8511..02c09e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,3 +41,4 @@
/llvm-6.0.1rc2.src.tar.xz
/llvm-6.0.1.src.tar.xz
/llvm-7.0.0rc1.src.tar.xz
+/llvm-7.0.0rc2.src.tar.xz
diff --git a/0001-Don-t-run-BV-DAG-Combine-before-legalization-if-it-a.patch b/0001-Don-t-run-BV-DAG-Combine-before-legalization-if-it-a.patch
deleted file mode 100644
index 31d2b44..0000000
--- a/0001-Don-t-run-BV-DAG-Combine-before-legalization-if-it-a.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 2eb830fed5b813c5624e770c244eec61dacb04d7 Mon Sep 17 00:00:00 2001
-From: Tom Stellard <tstellar(a)redhat.com>
-Date: Mon, 9 Jul 2018 10:35:30 -0700
-Subject: [PATCH] Don't run BV DAG Combine before legalization if it assumes
- legal types
-
----
- lib/Target/PowerPC/PPCISelLowering.cpp | 13 ++++++++++---
- 1 file changed, 10 insertions(+), 3 deletions(-)
-
-diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp
-index 26e9f13..f622b05 100644
---- a/lib/Target/PowerPC/PPCISelLowering.cpp
-+++ b/lib/Target/PowerPC/PPCISelLowering.cpp
-@@ -11790,10 +11790,15 @@ static SDValue combineBVOfVecSExt(SDNode *N, SelectionDAG &DAG) {
- auto isSExtOfVecExtract = [&](SDValue Op) -> bool {
- if (!Op)
- return false;
-- if (Op.getOpcode() != ISD::SIGN_EXTEND)
-+ if (Op.getOpcode() != ISD::SIGN_EXTEND &&
-+ Op.getOpcode() != ISD::SIGN_EXTEND_INREG)
- return false;
-
-+ // A SIGN_EXTEND_INREG might be fed by an ANY_EXTEND to produce a value
-+ // of the right width.
- SDValue Extract = Op.getOperand(0);
-+ if (Extract.getOpcode() == ISD::ANY_EXTEND)
-+ Extract = Extract.getOperand(0);
- if (Extract.getOpcode() != ISD::EXTRACT_VECTOR_ELT)
- return false;
-
-@@ -11881,8 +11886,10 @@ SDValue PPCTargetLowering::DAGCombineBuildVector(SDNode *N,
- return Reduced;
-
- // If we're building a vector out of extended elements from another vector
-- // we have P9 vector integer extend instructions.
-- if (Subtarget.hasP9Altivec()) {
-+ // we have P9 vector integer extend instructions. The code assumes legal
-+ // input types (i.e. it can't handle things like v4i16) so do not run before
-+ // legalization.
-+ if (Subtarget.hasP9Altivec() && !DCI.isBeforeLegalize()) {
- Reduced = combineBVOfVecSExt(N, DAG);
- if (Reduced)
- return Reduced;
---
-1.8.3.1
-
diff --git a/0001-bpf-fix-an-assertion-in-BPFAsmBackend-applyFixup.patch b/0001-bpf-fix-an-assertion-in-BPFAsmBackend-applyFixup.patch
new file mode 100644
index 0000000..7a5831c
--- /dev/null
+++ b/0001-bpf-fix-an-assertion-in-BPFAsmBackend-applyFixup.patch
@@ -0,0 +1,77 @@
+From 39184e407cd937f2f20d3f61eec205925bae7b13 Mon Sep 17 00:00:00 2001
+From: Yonghong Song <yhs(a)fb.com>
+Date: Wed, 22 Aug 2018 21:21:03 +0000
+Subject: [PATCH] bpf: fix an assertion in BPFAsmBackend applyFixup()
+
+Fix bug https://bugs.llvm.org/show_bug.cgi?id=38643
+
+In BPFAsmBackend applyFixup(), there is an assertion for FixedValue to be 0.
+This may not be true, esp. for optimiation level 0.
+For example, in the above bug, for the following two
+static variables:
+ @bpf_map_lookup_elem = internal global i8* (i8*, i8*)*
+ inttoptr (i64 1 to i8* (i8*, i8*)*), align 8
+ @bpf_map_update_elem = internal global i32 (i8*, i8*, i8*, i64)*
+ inttoptr (i64 2 to i32 (i8*, i8*, i8*, i64)*), align 8
+
+The static variable @bpf_map_update_elem will have a symbol
+offset of 8 and a FK_SecRel_8 with FixupValue 8 will cause
+the assertion if llvm is built with -DLLVM_ENABLE_ASSERTIONS=ON.
+
+The above relocations will not exist if the program is compiled
+with optimization level -O1 and above as the compiler optimizes
+those static variables away. In the below error message, -O2
+is suggested as this is the common practice.
+
+Note that FixedValue = 0 in applyFixup() does exist and is valid,
+e.g., for the global variable my_map in the above bug. The bpf
+loader will process them properly for map_id's before loading
+the program into the kernel.
+
+The static variables, which are not optimized away by compiler,
+may have FK_SecRel_8 relocation with non-zero FixedValue.
+
+The patch removed the offending assertion and will issue
+a hard error as below if the FixedValue in applyFixup()
+is not 0.
+ $ llc -march=bpf -filetype=obj fixup.ll
+ LLVM ERROR: Unsupported relocation: try to compile with -O2 or above,
+ or check your static variable usage
+
+Signed-off-by: Yonghong Song <yhs(a)fb.com>
+
+git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340455 91177308-0d34-0410-b5e6-96231b3b80d8
+---
+ lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp b/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
+index 6c255e9..1822d86 100644
+--- a/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
++++ b/lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
+@@ -10,6 +10,8 @@
+ #include "MCTargetDesc/BPFMCTargetDesc.h"
+ #include "llvm/ADT/StringRef.h"
+ #include "llvm/MC/MCAsmBackend.h"
++#include "llvm/MC/MCAssembler.h"
++#include "llvm/MC/MCContext.h"
+ #include "llvm/MC/MCFixup.h"
+ #include "llvm/MC/MCObjectWriter.h"
+ #include "llvm/Support/EndianStream.h"
+@@ -71,7 +73,12 @@ void BPFAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
+ bool IsResolved,
+ const MCSubtargetInfo *STI) const {
+ if (Fixup.getKind() == FK_SecRel_4 || Fixup.getKind() == FK_SecRel_8) {
+- assert(Value == 0);
++ if (Value) {
++ MCContext &Ctx = Asm.getContext();
++ Ctx.reportError(Fixup.getLoc(),
++ "Unsupported relocation: try to compile with -O2 or above, "
++ "or check your static variable usage");
++ }
+ } else if (Fixup.getKind() == FK_Data_4) {
+ support::endian::write<uint32_t>(&Data[Fixup.getOffset()], Value, Endian);
+ } else if (Fixup.getKind() == FK_Data_8) {
+--
+1.8.3.1
+
diff --git a/0001-gold-Fix-Tests-cases-on-i686.patch b/0001-gold-Fix-Tests-cases-on-i686.patch
deleted file mode 100644
index f35db4f..0000000
--- a/0001-gold-Fix-Tests-cases-on-i686.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-From bda67d3141acf120df8db57052603e9a18d86523 Mon Sep 17 00:00:00 2001
-From: Tom Stellard <tstellar(a)redhat.com>
-Date: Fri, 10 Aug 2018 14:54:17 -0700
-Subject: [PATCH] [gold] Fix Tests cases on i686
-
----
- test/tools/gold/X86/common.ll | 10 +++++-----
- test/tools/gold/X86/v1.16/wrap-1.ll | 4 ++--
- test/tools/gold/X86/v1.16/wrap-2.ll | 4 ++--
- 3 files changed, 9 insertions(+), 9 deletions(-)
-
-diff --git a/test/tools/gold/X86/common.ll b/test/tools/gold/X86/common.ll
-index 1debe78..d8b4e03 100644
---- a/test/tools/gold/X86/common.ll
-+++ b/test/tools/gold/X86/common.ll
-@@ -8,7 +8,7 @@ target triple = "x86_64-unknown-linux-gnu"
-
- @a = common global i16 0, align 8
-
--; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
-+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
- ; RUN: --plugin-opt=emit-llvm \
- ; RUN: -shared %t1.o %t2.o -o %t3.o
- ; RUN: llvm-dis %t3.o -o - | FileCheck %s --check-prefix=A
-@@ -16,7 +16,7 @@ target triple = "x86_64-unknown-linux-gnu"
- ; Shared library case, we merge @a as common and keep it for the symbol table.
- ; A: @a = common global [4 x i8] zeroinitializer, align 8
-
--; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
-+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
- ; RUN: --plugin-opt=emit-llvm \
- ; RUN: -shared %t1.o %t2b.o -o %t3.o
- ; RUN: llvm-dis %t3.o -o - | FileCheck %s --check-prefix=B
-@@ -24,7 +24,7 @@ target triple = "x86_64-unknown-linux-gnu"
- ; (i16 align 8) + (i8 align 16) = i16 align 16
- ; B: @a = common global i16 0, align 16
-
--; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
-+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
- ; RUN: --plugin-opt=emit-llvm \
- ; RUN: -shared %t1.o %t2c.o -o %t3.o
- ; RUN: llvm-dis %t3.o -o - | FileCheck %s --check-prefix=C
-@@ -32,7 +32,7 @@ target triple = "x86_64-unknown-linux-gnu"
- ; (i16 align 8) + (i8 align 1) = i16 align 8.
- ; C: @a = common global i16 0, align 8
-
--; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
-+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
- ; RUN: --plugin-opt=emit-llvm \
- ; RUN: %t1.o %t2.o -o %t3.o
- ; RUN: llvm-dis %t3.o -o - | FileCheck --check-prefix=EXEC %s
-@@ -41,7 +41,7 @@ target triple = "x86_64-unknown-linux-gnu"
- ; EXEC: @a = internal global [4 x i8] zeroinitializer, align 8
-
- ; RUN: llc %p/Inputs/common.ll -o %t2native.o -filetype=obj
--; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
-+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
- ; RUN: --plugin-opt=emit-llvm \
- ; RUN: %t1.o %t2native.o -o %t3.o
- ; RUN: llvm-dis %t3.o -o - | FileCheck --check-prefix=MIXED %s
-diff --git a/test/tools/gold/X86/v1.16/wrap-1.ll b/test/tools/gold/X86/v1.16/wrap-1.ll
-index 5ea83b0..806442e 100644
---- a/test/tools/gold/X86/v1.16/wrap-1.ll
-+++ b/test/tools/gold/X86/v1.16/wrap-1.ll
-@@ -1,12 +1,12 @@
- ; LTO
- ; RUN: llvm-as %s -o %t.o
--; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext %t.o -o %t.out -wrap=bar -plugin-opt=save-temps
-+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext %t.o -o %t.out -wrap=bar -plugin-opt=save-temps
- ; RUN: llvm-readobj -t %t.out | FileCheck %s
- ; RUN: cat %t.out.resolution.txt | FileCheck -check-prefix=RESOLS %s
-
- ; ThinLTO
- ; RUN: opt -module-summary %s -o %t.o
--; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext %t.o -o %t.out -wrap=bar -plugin-opt=save-temps
-+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext %t.o -o %t.out -wrap=bar -plugin-opt=save-temps
- ; RUN: llvm-readobj -t %t.out | FileCheck %s
- ; RUN: cat %t.out.resolution.txt | FileCheck -check-prefix=RESOLS %s
-
-diff --git a/test/tools/gold/X86/v1.16/wrap-2.ll b/test/tools/gold/X86/v1.16/wrap-2.ll
-index 7c1d95d..f36456c 100644
---- a/test/tools/gold/X86/v1.16/wrap-2.ll
-+++ b/test/tools/gold/X86/v1.16/wrap-2.ll
-@@ -7,14 +7,14 @@
- ; LTO defsym handling, gold will need a fix (not the gold plugin).
- ; RUN-TODO: llvm-as %s -o %t.o
- ; RUN-TODO: llvm-as %S/Inputs/wrap-bar.ll -o %t1.o
--; RUN-TODO: %gold -plugin %llvmshlibdir/LLVMgold%shlibext %t.o %t1.o -shared -o %t.so -wrap=bar
-+; RUN-TODO: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext %t.o %t1.o -shared -o %t.so -wrap=bar
- ; RUN-TODO: llvm-objdump -d %t.so | FileCheck %s
- ; RUN-TODO: llvm-readobj -t %t.so | FileCheck -check-prefix=BIND %s
-
- ; ThinLTO
- ; RUN: opt -module-summary %s -o %t.o
- ; RUN: opt -module-summary %S/Inputs/wrap-bar.ll -o %t1.o
--; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext %t.o %t1.o -shared -o %t.so -wrap=bar
-+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext %t.o %t1.o -shared -o %t.so -wrap=bar
- ; RUN: llvm-objdump -d %t.so | FileCheck %s -check-prefix=THIN
- ; RUN: llvm-readobj -t %t.so | FileCheck -check-prefix=BIND %s
-
---
-1.8.3.1
-
diff --git a/llvm.spec b/llvm.spec
index b6e2b71..10b03ce 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -12,7 +12,7 @@
%global maj_ver 7
%global min_ver 0
%global patch_ver 0
-%global rc_ver 1
+%global rc_ver 2
%ifarch s390x
%global llvm_targets SystemZ;BPF
@@ -50,7 +50,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
-Release: 0.6.rc%{rc_ver}%{?dist}
+Release: 0.7.rc%{rc_ver}%{?dist}
Summary: The Low Level Virtual Machine
License: NCSA
@@ -61,9 +61,9 @@ Source1: run-lit-tests
Patch3: 0001-CMake-Split-static-library-exports-into-their-own-ex.patch
Patch7: 0001-Filter-out-cxxflags-not-supported-by-clang.patch
-Patch10: 0001-Don-t-run-BV-DAG-Combine-before-legalization-if-it-a.patch
-Patch11: 0001-gold-Fix-Tests-cases-on-i686.patch
Patch12: 0001-unittests-Don-t-install-TestPlugin.so.patch
+# rhbz#1618958
+Patch13: 0001-bpf-fix-an-assertion-in-BPFAsmBackend-applyFixup.patch
BuildRequires: gcc
BuildRequires: gcc-c++
@@ -410,6 +410,9 @@ fi
%endif
%changelog
+* Tue Aug 28 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.7.rc2
+- 7.0.0-rc2 Release
+
* Tue Aug 28 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.6.rc1
- Guard valgrind usage with valgrind_arches macro
diff --git a/sources b/sources
index 49e0836..f1fbd2c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (llvm-7.0.0rc1.src.tar.xz) = 9fe5de3b373e3e9f32b81ac920dfbb6fd6a03118f0c1e9c2b6d93a0a0742c122d5c08e97c71262a7c273badb1d336b813143c1055d7c49c22394151a1520e064
+SHA512 (llvm-7.0.0rc2.src.tar.xz) = 4211fdbd2278ed325d3f6a1f1fa706351e768e2cd1445abf6664bed39b7b5d0c5e04514711d627f9ae1e271300f410635bb54ba004a5bece0d68450d3a1b52e4
commit c96d6793e9e411070a3587c63c88d590017e1ab8
Author: Tom Stellard <tstellar(a)redhat.com>
Date: Tue Aug 28 05:46:20 2018 +0000
Guard valgrind usage with valgrind_arches macro
diff --git a/llvm.spec b/llvm.spec
index b1f8ba2..b6e2b71 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -50,7 +50,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
-Release: 0.5.rc%{rc_ver}%{?dist}
+Release: 0.6.rc%{rc_ver}%{?dist}
Summary: The Low Level Virtual Machine
License: NCSA
@@ -80,8 +80,10 @@ BuildRequires: multilib-rpm-config
BuildRequires: binutils-devel
%endif
BuildRequires: libstdc++-static
+%ifarch %{valgrind_arches}
# Enable extra functionality when run the LLVM JIT under valgrind.
BuildRequires: valgrind-devel
+%endif
# LLVM's LineEditor library will use libedit if it is available.
BuildRequires: libedit-devel
@@ -408,6 +410,9 @@ fi
%endif
%changelog
+* Tue Aug 28 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.6.rc1
+- Guard valgrind usage with valgrind_arches macro
+
* Thu Aug 23 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.5.rc1
- Package lit tests and googletest sources.
commit a47388f920237b801b73638a4c8fc4aa77ba866f
Author: Tom Stellard <tstellar(a)redhat.com>
Date: Mon Mar 19 16:26:08 2018 +0000
Package lit tests and googletest sources
diff --git a/llvm.spec b/llvm.spec
index cfd88ce..b1f8ba2 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -1,3 +1,4 @@
+%global debug_package %{nil}
# Components enabled if supported by target architecture:
%ifarch %ix86 x86_64
%bcond_without gold
@@ -49,12 +50,13 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
-Release: 0.4.rc%{rc_ver}%{?dist}
+Release: 0.5.rc%{rc_ver}%{?dist}
Summary: The Low Level Virtual Machine
License: NCSA
URL: http://llvm.org
Source0: http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/llvm-%{version}%{?rc_ver:rc%{rc_ver}}.src.tar.xz
+Source1: run-lit-tests
Patch3: 0001-CMake-Split-static-library-exports-into-their-own-ex.patch
Patch7: 0001-Filter-out-cxxflags-not-supported-by-clang.patch
@@ -125,6 +127,24 @@ Summary: LLVM static libraries
%description static
Static libraries for the LLVM compiler infrastructure.
+%if !0%{?compat_build}
+
+%package test
+Summary: LLVM regression tests.
+
+%description test
+LLVM regression tests.
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: python3-lit
+
+%package googletest
+Summary: LLVM's modified googletest sources.
+
+%description googletest
+LLVM's modified googletest sources.
+
+%endif
+
%prep
%autosetup -n llvm-%{version}%{?rc_ver:rc%{rc_ver}}.src -p1
@@ -209,6 +229,44 @@ mv -v %{buildroot}%{_bindir}/llvm-config{,-%{__isa_bits}}
%multilib_fix_c_header --file %{_includedir}/llvm/Config/llvm-config.h
+# Install binaries needed for lit tests
+%global test_binaries lli-child-target llvm-isel-fuzzer llvm-opt-fuzzer yaml-bench
+for f in %{test_binaries}; do
+install -m 0755 ./bin/$f %{buildroot}%{llvm_bindir}
+done
+
+%global install_srcdir %{buildroot}%{_datadir}/llvm/src
+%global lit_cfg test/lit.site.cfg.py
+%global lit_unit_cfg test/Unit/lit.site.cfg.py
+
+cd ..
+
+# Install gtest sources so clang can use them for gtest
+install -d %{install_srcdir}
+install -d %{install_srcdir}/utils/
+cp -R utils/unittest %{install_srcdir}/utils/
+
+# Generate lit config files.
+cat _build/test/lit.site.cfg.py >> %{lit_cfg}
+cat _build/test/Unit/lit.site.cfg.py >> %{lit_unit_cfg}
+sed -i -e s~`pwd`/_build~%{_prefix}~g -e s~`pwd`~.~g %{lit_cfg} %{lit_cfg} %{lit_unit_cfg}
+
+# obj_root needs to be set to the directory containing the unit test binaries.
+sed -i 's~\(config.llvm_obj_root = \)"[^"]\+"~\1"%{llvm_bindir}"~' %{lit_unit_cfg}
+
+install -d %{buildroot}%{_libexecdir}/tests/llvm
+install -m 0755 %{SOURCE1} %{buildroot}%{_libexecdir}/tests/llvm
+
+# Install lit tests. We need to put these in a tarball otherwise rpm will complain
+# about some of the test inputs having the wrong object file format.
+install -d %{buildroot}%{_datadir}/llvm/
+tar -czf %{install_srcdir}/test.tar.gz test/
+
+# Install the unit test binaries
+cp -R _build/unittests %{buildroot}%{llvm_bindir}/
+# FIXME: Can't figure out how to make the find command succeed.
+find %{buildroot}%{llvm_bindir} -ignore_readdir_race -iname 'cmake*' -exec rm -Rf '{}' ';' || true
+
%else
# Add version suffix to binaries
@@ -272,6 +330,7 @@ fi
%exclude %{_bindir}/llvm-config-%{__isa_bits}
%exclude %{_mandir}/man1/llvm-config.1.*
%{_datadir}/opt-viewer
+%exclude %{llvm_bindir}/unittests
%else
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%exclude %{pkg_bindir}/llvm-config
@@ -332,7 +391,26 @@ fi
%{_libdir}/%{name}/lib/*.a
%endif
+%if !0%{?compat_build}
+
+%files test
+%{_libexecdir}/tests/llvm/
+%{llvm_bindir}/unittests/
+%{_datadir}/llvm/src/test.tar.gz
+%{llvm_bindir}/yaml-bench
+%{llvm_bindir}/lli-child-target
+%{llvm_bindir}/llvm-isel-fuzzer
+%{llvm_bindir}/llvm-opt-fuzzer
+
+%files googletest
+%{_datadir}/llvm/src/utils
+
+%endif
+
%changelog
+* Thu Aug 23 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.5.rc1
+- Package lit tests and googletest sources.
+
* Mon Aug 20 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.4.rc1
- Re-enable AMDGPU target on ARM rhbz#1618922
diff --git a/run-lit-tests b/run-lit-tests
new file mode 100755
index 0000000..12fae3e
--- /dev/null
+++ b/run-lit-tests
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -xe
+
+#lit -v /usr/share/llvm/src/test
+
+TOOLS_DIR=/usr/lib64/llvm
+cd $(mktemp -d)
+tar -xzf /usr/share/llvm/src/test.tar.gz
+lit test \
+ -DFileCheck=$TOOLS_DIR/FileCheck \
+ -Dcount=$TOOlS_DIR/count \
+ -Dnot=$TOOLS_DIR/not \
+ -Dlli-child-target=$TOOLS_DIR/lli-child-target \
+ -Dllvm-isel-fuzzer=$TOOLS_DIR/llvm-isel-fuzzer \
+ -Dllvm-opt-fuzzer=$TOOLS_DIR/llvm-opt-fuzzer \
+ -Dyaml-bench$TOOLS_DIR/yaml-bench
diff --git a/tests/tests.yml b/tests/tests.yml
new file mode 100644
index 0000000..6cc4703
--- /dev/null
+++ b/tests/tests.yml
@@ -0,0 +1,11 @@
+- hosts: localhost
+ roles:
+ - role: standard-test-basic
+ tags:
+ - classic
+ required_packages:
+ - llvm-test
+ tests:
+ - rhbz#482491:
+ dir: ./
+ run: /usr/libexec/tests/llvm/run-lit-tests
commit 1948d64c186e33ddb7c1030194d679e53c0933da
Author: Tom Stellard <tstellar(a)redhat.com>
Date: Mon Aug 20 17:46:15 2018 +0000
Re-enable AMDGPU target on ARM rhbz#1618922
diff --git a/llvm.spec b/llvm.spec
index 28a2309..cfd88ce 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -26,7 +26,7 @@
%global llvm_targets AArch64;AMDGPU;BPF
%endif
%ifarch %{arm}
-%global llvm_targets ARM;BPF
+%global llvm_targets ARM;AMDGPU;BPF
%endif
%if 0%{?compat_build}
@@ -49,7 +49,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
-Release: 0.3.rc%{rc_ver}%{?dist}
+Release: 0.4.rc%{rc_ver}%{?dist}
Summary: The Low Level Virtual Machine
License: NCSA
@@ -333,6 +333,9 @@ fi
%endif
%changelog
+* Mon Aug 20 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.4.rc1
+- Re-enable AMDGPU target on ARM rhbz#1618922
+
* Mon Aug 13 2018 Tom Stellard <tstellar(a)redhat.com> - 7.0.0-0.3.rc1
- Drop references to TestPlugin.so from cmake files
5 years, 7 months
Architecture specific change in rpms/libsedml.git
by githook-noreply@fedoraproject.org
The package rpms/libsedml.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/libsedml.git/commit/?id=f60129167....
Change:
+%ifarch s390x %{arm} aarch64 %{power64}
Thanks.
Full change:
============
commit f601291672f65c5a26a5431f8cb995bc9e118118
Author: sagitter <sagitter(a)fedoraproject.org>
Date: Sun Sep 2 19:15:37 2018 +0200
Deprecate python2 on fedora 30+
diff --git a/libsedml.spec b/libsedml.spec
index 6c62a15..9d60b63 100644
--- a/libsedml.spec
+++ b/libsedml.spec
@@ -1,9 +1,13 @@
##Documents generation and Octave binding look not available yet
+%if 0%{?fedora} >= 30
+%global with_python2 0
+%else
%global with_python2 1
+%endif
%global with_python3 1
%global with_ruby 1
-%ifarch s390 s390x %{arm} aarch64 ppc64 ppc64le
+%ifarch s390x %{arm} aarch64 %{power64}
%global with_java 0
%else
%global with_java 1
@@ -33,7 +37,7 @@
Name: libsedml
Summary: Library that fully supports SED-ML for SBML
Version: 0.4.3
-Release: 15%{?dist}
+Release: 16%{?dist}
Epoch: 1
URL: https://github.com/fbergmann/libSEDML
Source0: https://github.com/fbergmann/libSEDML/archive/v%{version}.tar.gz#/libSEDM...
@@ -241,7 +245,7 @@ export CXXFLAGS="$SEDMLOPT_FLAGS $RPM_LD_FLAGS -Wl,-z,now"
-DCPACK_SOURCE_TZ:BOOL=OFF -DWITH_ZLIB:BOOL=ON -DWITH_CPP_NAMESPACE:BOOL=OFF \
-DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES ..
-make %{?_smp_mflags}
+%make_build
popd
%endif
@@ -307,16 +311,16 @@ export CXXFLAGS="$SEDMLOPT_FLAGS $RPM_LD_FLAGS -Wl,-z,now"
%if 0%{?with_java}
make -j1
%else
-make %{?_smp_mflags}
+%make_build
%endif
####################################################################################################
%install
-make -C build DESTDIR=$RPM_BUILD_ROOT install
+%make_install -C build
%if 0%{?with_python3}
-make -C build2 DESTDIR=$RPM_BUILD_ROOT install
+%make_install -C build2
%endif
mkdir -p $RPM_BUILD_ROOT%{_datadir}/libsedml
@@ -453,6 +457,9 @@ cd build
%endif
%changelog
+* Sun Sep 02 2018 Antonio Trande <sagitterATfedoraproject.org> - 1:0.4.3-16
+- Deprecate python2 on fedora 30+
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1:0.4.3-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5 years, 7 months
Architecture specific change in rpms/golang-github-petermattis-goid.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-petermattis-goid.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-petermattis-goid.gi....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 33b19bb8badba00502201a06c0e76faf860a857f
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun Sep 2 19:00:45 2018 +0200
update to spec 3.0
diff --git a/.gitignore b/.gitignore
index 648241a..1924265 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/petermattis-goid-3db12eb.tar.gz
/petermattis-goid-176e84a.tar.gz
/petermattis-goid-b0b1615.tar.gz
+/goid-b0b1615b78e5ee59739545bb38426383b2cda4c9.tar.gz
diff --git a/golang-github-petermattis-goid.spec b/golang-github-petermattis-goid.spec
index 298a4dc..d185143 100644
--- a/golang-github-petermattis-goid.spec
+++ b/golang-github-petermattis-goid.spec
@@ -1,162 +1,56 @@
-# 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
-
-%global provider github
-%global provider_tld com
-%global project petermattis
-%global repo goid
# https://github.com/petermattis/goid
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit b0b1615b78e5ee59739545bb38426383b2cda4c9
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global commitdate 20180202
+%global goipath github.com/petermattis/goid
+%global commit b0b1615b78e5ee59739545bb38426383b2cda4c9
+%global date 20180202
+%gometa
-Name: golang-%{provider}-%{project}-%{repo}
+Name: %{goname}
Version: 0
-Release: 0.9.%{commitdate}.git%{shortcommit}%{?dist}
+Release: 0.10%{?dist}
Summary: Programmatic retrieval of goroutine IDs
License: 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}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-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
-
-# 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
+%{goipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-
-%build
+%gosetup -q
%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
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
+%gochecks
-%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
%changelog
+* Sun Sep 02 2018 Fabio Valentini <decathorpe(a)gmail.com> - 0-0.10.20180202gitb0b1615
+- Update to use spec 3.0.
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.9.20180202.gitb0b1615
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index e4bc074..b7ac570 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (petermattis-goid-b0b1615.tar.gz) = 52068f22edbc627623002a09979c0762aaf6d96c2a0cb248d47945a364e117df40a35d9937e3e98b8d47f109df5edcac470f963eec0117bc1c515419d72e393d
+SHA512 (goid-b0b1615b78e5ee59739545bb38426383b2cda4c9.tar.gz) = 52068f22edbc627623002a09979c0762aaf6d96c2a0cb248d47945a364e117df40a35d9937e3e98b8d47f109df5edcac470f963eec0117bc1c515419d72e393d
5 years, 7 months
Architecture specific change in rpms/golang-github-oschwald-maxminddb-golang.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-oschwald-maxminddb-golang.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-oschwald-maxminddb-....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 37e30bc8b9609c24d081a810fa799c2eaef1ae4a
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun Sep 2 18:55:23 2018 +0200
update to spec 3.0 and enable tests
diff --git a/.gitignore b/.gitignore
index 2686909..b2dcff5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@
/oschwald-maxminddb-golang-d19f6d4.tar.gz
/oschwald-maxminddb-golang-1.2.1.tar.gz
/oschwald-maxminddb-golang-1.3.0.tar.gz
+/maxminddb-golang-v1.3.0.tar.gz
+/MaxMind-DB-2159aef4f87fab9fb418da00307e3afd8722a56e.tar.gz
diff --git a/golang-github-oschwald-maxminddb-golang.spec b/golang-github-oschwald-maxminddb-golang.spec
index 752e943..3bf23ab 100644
--- a/golang-github-oschwald-maxminddb-golang.spec
+++ b/golang-github-oschwald-maxminddb-golang.spec
@@ -1,181 +1,74 @@
-# 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 0
-
-# Tests require the test-data directory, which is a git submodule - and
-# not available in the downloaded tarballs.
-
-
-%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 oschwald
-%global repo maxminddb-golang
# https://github.com/oschwald/maxminddb-golang
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit c5bec84d1963260297932a1b7a1753c8420717a7
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global commitdate 20170503
+%global goipath github.com/oschwald/maxminddb-golang
+%global tag v1.3.0
-# commit c5bec84d1963260297932a1b7a1753c8420717a7 == version 1.3.0
-
-
-Name: golang-%{provider}-%{project}-%{repo}
+Name: golang-github-oschwald-maxminddb-golang
Version: 1.3.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: MaxMind DB Reader for Go
-License: ISC
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/v%{version}/%{project}-%{repo}-%{version}.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}
+# Code: ISC; Test data: CC-BY-SA 3.0
+License: ISC and CC-BY-SA
+
+%gometa
+
+URL: %{gourl}
+Source0: %{gosource}
+
+# test data for the non-exported git submodule
+%global dataurl https://github.com/maxmind/MaxMind-DB
+%global dataref 2159aef4f87fab9fb418da00307e3afd8722a56e
+Source1: %{dataurl}/archive/%{dataref}/MaxMind-DB-%{dataref}.tar.gz
+
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check} && ! 0%{?with_bundled}
+BuildRequires: golang(github.com/stretchr/testify/assert)
+BuildRequires: golang(github.com/stretchr/testify/require)
BuildRequires: golang(golang.org/x/sys/unix)
-%endif
-
-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-devel
-Summary: Unit tests for %{name} package
+%{goipath} prefix.
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires: golang(github.com/stretchr/testify/assert)
-BuildRequires: golang(github.com/stretchr/testify/require)
-%endif
-
-Requires: golang(github.com/stretchr/testify/assert)
-Requires: golang(github.com/stretchr/testify/require)
-
-%description unit-test-devel
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
%prep
-%setup -q -n %{repo}-%{version}
+%gosetup -q
-
-%build
+# extract test data to the right location
+pushd test-data
+tar -xzf %{SOURCE1}
+mv MaxMind-DB-%{dataref}/* ./
+rm -r MaxMind-DB-%{dataref}
+popd
%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
+%goinstall
%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}
-%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-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc README.md
-%endif
%changelog
+* Sun Sep 02 2018 Fabio Valentini <decathorpe(a)gmail.com> - 1.3.0-3
+- Update to use spec 3.0 and enable tests.
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index 0d87bdc..97f01a5 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-SHA512 (oschwald-maxminddb-golang-1.3.0.tar.gz) = f9459386ee970530f2568258eb6d3170d1c3a5abfa6ac3d5efcc1c27074ca2cc28eec757efd0e4f86d897dc9010f5b01203e8d8f609ea48d5b59795e46245e52
+SHA512 (maxminddb-golang-v1.3.0.tar.gz) = f9459386ee970530f2568258eb6d3170d1c3a5abfa6ac3d5efcc1c27074ca2cc28eec757efd0e4f86d897dc9010f5b01203e8d8f609ea48d5b59795e46245e52
+SHA512 (MaxMind-DB-2159aef4f87fab9fb418da00307e3afd8722a56e.tar.gz) = bcc0b5812da66aec002905b109dc23be7c8419990874041fc314a5365557931c6fc6e4bafea36ff48a386d9fec2c05aaab4bf528b644b0d4cb65c52b295dc47a
5 years, 7 months
Architecture specific change in rpms/golang-github-oschwald-geoip2-golang.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-oschwald-geoip2-golang.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-oschwald-geoip2-gol....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 19b1f2cae78b057823e0ea19c016aac4d7a73ea9
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun Sep 2 18:45:40 2018 +0200
update to spec 3.0 and enable tests
diff --git a/.gitignore b/.gitignore
index be91bc2..e9b7d57 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@
/oschwald-geoip2-golang-5b1dc16.tar.gz
/oschwald-geoip2-golang-b1581f4.tar.gz
/oschwald-geoip2-golang-1.2.1.tar.gz
+/geoip2-golang-v1.2.1.tar.gz
+/MaxMind-DB-f6ed981c23b0eb33d7c07568e2177236252afda6.tar.gz
diff --git a/golang-github-oschwald-geoip2-golang.spec b/golang-github-oschwald-geoip2-golang.spec
index 28bb0d2..38bd841 100644
--- a/golang-github-oschwald-geoip2-golang.spec
+++ b/golang-github-oschwald-geoip2-golang.spec
@@ -1,179 +1,74 @@
-# 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 0
-
-# Tests require the test-data directory, which is a git submodule - and
-# not available in the downloaded tarballs.
-
-%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 oschwald
-%global repo geoip2-golang
# https://github.com/oschwald/geoip2-golang
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 7118115686e16b77967cdbf55d1b944fe14ad312
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global commitdate 20170423
+%global goipath github.com/oschwald/geoip2-golang
+%global tag v1.2.1
-# commit 7118115686e16b77967cdbf55d1b944fe14ad312 == version 1.2.1
-
-
-Name: golang-%{provider}-%{project}-%{repo}
+Name: golang-github-oschwald-geoip2-golang
Version: 1.2.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GeoIP2 lookup library for Go
-License: ISC
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/v%{version}/%{project}-%{repo}-%{version}.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}
+# Code: ISC; Test data: CC-BY-SA 3.0
+License: ISC and CC-BY-SA
+
+%gometa
+
+URL: %{gourl}
+Source0: %{gosource}
+
+# test data for the non-exported git submodule
+%global dataurl https://github.com/maxmind/MaxMind-DB
+%global dataref f6ed981c23b0eb33d7c07568e2177236252afda6
+Source1: %{dataurl}/archive/%{dataref}/MaxMind-DB-%{dataref}.tar.gz
+
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/oschwald/maxminddb-golang)
-%endif
-
-Requires: golang(github.com/oschwald/maxminddb-golang)
-
-Provides: golang(%{import_path}) = %{version}-%{release}
+BuildRequires: golang(github.com/stretchr/testify)
%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}
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires: golang(github.com/stretchr/testify/assert)
-%endif
-
-Requires: golang(github.com/stretchr/testify/assert)
-
-%description unit-test-devel
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%{goipath} prefix.
%prep
-%setup -q -n %{repo}-%{version}
+%gosetup -q
+# extract test data to the right location
+pushd test-data
+tar -xzf %{SOURCE1}
+mv MaxMind-DB-%{dataref}/* ./
+rm -r MaxMind-DB-%{dataref}
+popd
-%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
+%goinstall
%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}
-%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-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc README.md
-%endif
%changelog
+* Sun Sep 02 2018 Fabio Valentini <decathorpe(a)gmail.com> - 1.2.1-3
+- Update to spec 3.0 and enable tests.
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index 9097252..0c66b28 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-SHA512 (oschwald-geoip2-golang-1.2.1.tar.gz) = 2fe8592d5b39da7afe82c2dd100ed0dde8b436f67e5ed8337627e7a79237af97c86cf2dba025f010e18c0eb68510ac4e19de761ee45692e45e3085dc0454a4a1
+SHA512 (geoip2-golang-v1.2.1.tar.gz) = 2fe8592d5b39da7afe82c2dd100ed0dde8b436f67e5ed8337627e7a79237af97c86cf2dba025f010e18c0eb68510ac4e19de761ee45692e45e3085dc0454a4a1
+SHA512 (MaxMind-DB-f6ed981c23b0eb33d7c07568e2177236252afda6.tar.gz) = f7b9d370c330980d9419c7bea486b258aef3fa8ab49f83b860ef73036fc577c402e2f631090c5d1d23f2a8e34f927030a8fc6dc15edcd8002136673685aecb12
5 years, 7 months
Architecture specific change in rpms/mesa.git
by githook-noreply@fedoraproject.org
The package rpms/mesa.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/mesa.git/commit/?id=9c9ed483b320c....
Change:
-%ifnarch %{arm}
Thanks.
Full change:
============
commit 1176e8c491f3718c38c0ec217b21051f41779a93
Author: Hans de Goede <hdegoede(a)redhat.com>
Date: Sun Sep 2 18:44:27 2018 +0200
Update to 18.2.0~rc5
diff --git a/mesa.spec b/mesa.spec
index 8e42007..2bf0646 100644
--- a/mesa.spec
+++ b/mesa.spec
@@ -41,7 +41,7 @@
Name: mesa
Summary: Mesa graphics libraries
-%global ver 18.2.0-rc3
+%global ver 18.2.0-rc5
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
Release: 1%{?dist}
License: MIT
@@ -618,6 +618,9 @@ popd
%{_includedir}/vulkan/
%changelog
+* Sun Sep 2 2018 Hans de Goede <hdegoede(a)redhat.com> - 18.2.0~rc5-1
+- Update to 18.2.0~rc5
+
* Mon Aug 20 2018 Peter Robinson <pbrobinson(a)fedoraproject.org> 18.2.0~rc3-1
- Update to 18.2.0~rc3
diff --git a/sources b/sources
index 3457bf5..761f368 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mesa-18.2.0-rc3.tar.xz) = 414075187ee77f9f2ad9f13c85b462c395556d8db7c4ca25e6a4653ee4477583678da10c00f333899b87d38d6d0bba3d931bb7b6510e5e5eab07beaaf4c81621
+SHA512 (mesa-18.2.0-rc5.tar.xz) = 6274100860bda5e0f6a38520e225a6085d89b6427e691e18ca14d2abd551e46628e1eafa8d1d012627701ad664f6040151dae20374fd1cd122ccb6089d934fd5
commit 9c9ed483b320c2378383668c56bcb72cc1e371c0
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Wed Aug 22 09:06:33 2018 +0200
Re-enable RadeonSI on ARM
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/mesa.spec b/mesa.spec
index b1874c5..8e42007 100644
--- a/mesa.spec
+++ b/mesa.spec
@@ -20,10 +20,8 @@
%define with_xa 1
%define vulkan_drivers --with-vulkan-drivers=intel,radeon
%else
-%ifnarch %{arm}
%define vulkan_drivers --with-vulkan-drivers=radeon
%endif
-%endif
%ifarch %{arm} aarch64
%define with_etnaviv 1
@@ -45,7 +43,7 @@ Name: mesa
Summary: Mesa graphics libraries
%global ver 18.2.0-rc3
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
-Release: 0.3%{?dist}
+Release: 1%{?dist}
License: MIT
URL: http://www.mesa3d.org
@@ -612,17 +610,15 @@ popd
%{_libdir}/libvulkan_intel.so
%{_datadir}/vulkan/icd.d/intel_icd.*.json
%endif
-%ifnarch %{arm}
%{_libdir}/libvulkan_radeon.so
%{_datadir}/vulkan/icd.d/radeon_icd.*.json
%endif
-%endif
%files vulkan-devel
%{_includedir}/vulkan/
%changelog
-* Mon Aug 20 2018 Peter Robinson <pbrobinson(a)fedoraproject.org> 18.2.0~rc3-0.3
+* Mon Aug 20 2018 Peter Robinson <pbrobinson(a)fedoraproject.org> 18.2.0~rc3-1
- Update to 18.2.0~rc3
* Sat Aug 11 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 18.2.0~rc2-1
diff --git a/sources b/sources
index ee78deb..3457bf5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mesa-18.2.0-rc3.tar.xz) = 6fbec32bf38d60c98d2902a634055e3bfd593ba30a3fcab9cc4803d91e49fb8a898ccb76650bf7de1c7dd0341d3a742b7a5c4cbb7858b879bc579f406c4656ec
+SHA512 (mesa-18.2.0-rc3.tar.xz) = 414075187ee77f9f2ad9f13c85b462c395556d8db7c4ca25e6a4653ee4477583678da10c00f333899b87d38d6d0bba3d931bb7b6510e5e5eab07beaaf4c81621
5 years, 7 months
Architecture specific change in rpms/golang-github-minio-sha256-simd.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-minio-sha256-simd.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-minio-sha256-simd.g....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 0eb9bfc7b4f5a08f02008056095deb40acf286d4
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun Sep 2 18:07:17 2018 +0200
bump to commit ad98a36 and update to spec 3.0
diff --git a/.gitignore b/.gitignore
index c2547b3..5f56cd3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/sha256-simd-e82e73b.tar.gz
/sha256-simd-f3ec2e4.tar.gz
/minio-sha256-simd-96c8f86.tar.gz
+/sha256-simd-ad98a36ba0da87206e3378c556abbfeaeaa98668.tar.gz
diff --git a/golang-github-minio-sha256-simd.spec b/golang-github-minio-sha256-simd.spec
index 2897c68..634bd3d 100644
--- a/golang-github-minio-sha256-simd.spec
+++ b/golang-github-minio-sha256-simd.spec
@@ -1,161 +1,57 @@
-# 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
-
-%global provider github
-%global provider_tld com
-%global project minio
-%global repo sha256-simd
# https://github.com/minio/sha256-simd
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 96c8f86cdb67a92e859cd2c88e6f6e5e489711cb
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global goipath github.com/minio/sha256-simd
+%global commit ad98a36ba0da87206e3378c556abbfeaeaa98668
+%global date 20171213
+%gometa
-Name: golang-%{provider}-%{project}-%{repo}
+Name: %{goname}
Version: 0
-Release: 0.7.git%{shortcommit}%{?dist}
+Release: 0.8%{?dist}
Summary: SHA256 implementation using SIMD instructions for Go
License: 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}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-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
-
-# 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
+%{goipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-
-%build
+%gosetup -q
%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
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
+%gochecks
-%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
%changelog
+* Sun Sep 02 2018 Fabio Valentini <decathorpe(a)gmail.com> - 0-0.8.20171213gitad98a36
+- Bump to commit ad98a36.
+- Update to use spec 3.0.
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.7.git96c8f86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index d093cfc..73e8b3a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (minio-sha256-simd-96c8f86.tar.gz) = 9f527c6f24f672200f33c4febe749b3efc38ec78002b55dd5a3a1d5eff9b37fbc9532bee8e5a0ea76ec64f7941ae07d23ede0507eb10c4b060c887e9e8d7ed12
+SHA512 (sha256-simd-ad98a36ba0da87206e3378c556abbfeaeaa98668.tar.gz) = c9ec78e7e3b43fa24fa2bcfd7ddc32e6ac11b1e8469aa1f7e1e9e2b35895b565980ed45648b52059e3bcb24cc1a3d6c9984abbec45b488fcab197bed22fd98f2
5 years, 7 months