The package rpms/golang-github-dsnet-compress.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-dsnet-compress.git/....
Change:
+%ifnarch ppc64le
Thanks.
Full change:
============
commit ef95da4e630dfc18071e47368c856d18645d9aaf
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Tue May 28 19:56:20 2019 +0200
Release 0.0.1
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index a693903..a7e0250 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/compress-cc9eb1d7ad760af14e8f918698f745e80377af4f.tar.gz
+/compress-0.0.1.tar.gz
diff --git a/0001-fix-bench-test-on-32bit-architectures.patch
b/0001-fix-bench-test-on-32bit-architectures.patch
deleted file mode 100644
index a2d91fb..0000000
--- a/0001-fix-bench-test-on-32bit-architectures.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From ad5fd1c9434c3832bd22e721cef7ae2ccd2e8cdb Mon Sep 17 00:00:00 2001
-From: Dominik 'Rathann' Mierzejewski <dominik(a)greysector.net>
-Date: Wed, 28 Mar 2018 11:51:13 +0200
-Subject: [PATCH] fix bench test on 32bit architectures
-
-Fixes:
-./config.go:277:42: constant 10000000000 overflows int
-./config.go:277:48: constant 100000000000 overflows int
-./config.go:277:54: constant 1000000000000 overflows int
-while running internal/tool/bench test.
----
- internal/tool/bench/benchmarks.go | 2 +-
- internal/tool/bench/config.go | 4 ++--
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/internal/tool/bench/benchmarks.go b/internal/tool/bench/benchmarks.go
-index 059d69c..1537bf5 100644
---- a/internal/tool/bench/benchmarks.go
-+++ b/internal/tool/bench/benchmarks.go
-@@ -164,7 +164,7 @@ func benchmarkSuite(codecs []string, files []file, levels, sizes
[]int, tick fun
- b = testutil.ResizeData(b, n)
- }
- fname := strings.Replace(f.Rel, string(filepath.Separator), "_", -1)
-- name := fmt.Sprintf("%s:%d:%s", fname, l, intName(len(b)))
-+ name := fmt.Sprintf("%s:%d:%s", fname, l, intName(int64(len(b))))
- for j, c := range codecs {
- if tick != nil {
- tick()
-diff --git a/internal/tool/bench/config.go b/internal/tool/bench/config.go
-index a6a4192..ba0bc5d 100644
---- a/internal/tool/bench/config.go
-+++ b/internal/tool/bench/config.go
-@@ -252,7 +252,7 @@ func (vs *varStrings) Set(ss string) error {
- func (ds *varInts) String() string {
- var ss []string
- for _, d := range *ds {
-- ss = append(ss, intName(d))
-+ ss = append(ss, intName(int64(d)))
- }
- return strings.Join(ss, ",")
- }
-@@ -272,7 +272,7 @@ func (ds *varInts) Set(ss string) error {
- // It uses scientific notation for exact powers of 10.
- // It uses SI suffixes for powers of 1024.
- // If the number is small enough, it will be printed as is.
--func intName(n int) string {
-+func intName(n int64) string {
- switch n {
- case 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12:
- s := fmt.Sprintf("%e", float64(n))
---
-2.14.3
-
diff --git a/golang-github-dsnet-compress.spec b/golang-github-dsnet-compress.spec
index 7500fd5..918aeb5 100644
--- a/golang-github-dsnet-compress.spec
+++ b/golang-github-dsnet-compress.spec
@@ -1,21 +1,21 @@
-# disable tests on ppc64le for now
-#
https://bugzilla.redhat.com/show_bug.cgi?id=1675014
-%ifarch ppc64le
-%bcond_with check
-%else
+# Generated by go2rpm
+%ifnarch ppc64le
%bcond_without check
%endif
-%global goipath
github.com/dsnet/compress
-%global commit cc9eb1d7ad760af14e8f918698f745e80377af4f
-Version: 0
+
+#
https://github.com/dsnet/compress
+%global goipath
github.com/dsnet/compress
+Version: 0.0.1
+
+%gometa
%global common_description %{expand:
-This repository hosts a collection of compression related libraries. The goal of
+This package hosts a collection of compression related libraries. The goal of
this project is to provide pure Go implementations for popular compression
algorithms beyond what the Go standard library provides. The goals for these
packages are as follows:
-* Maintainable: That the code remains well documented, well tested, readable,
- easy to maintain, and easy to verify that it conforms to the specification
+* Maintainable: That the code remains well documented, well tested, readable,
+ easy to maintain, and easy to verify that it conforms to the specification
for the format being implemented.
* Performant: To be able to compress and decompress within at least 80% of the
rates that the C implementations are able to achieve.
@@ -30,77 +30,56 @@ situations, often complicates the API. Thus, this package will attempt
to
satisfy all the goals, but will defer to favoring maintainability when the
performance or flexibility benefits are not significant enough.}
-%gometa
+%global golicenses LICENSE.md
+%global godocs doc README.md
-Name: %{goname}
-Release: 0.5%{?dist}
-Summary: Collection of compression related Go packages
-License: BSD
-URL: %{gourl}
-Source0: %{gosource}
-#
https://github.com/dsnet/compress/pull/63
-Patch0: 0001-fix-bench-test-on-32bit-architectures.patch
-%if %{with check}
-BuildRequires: brotli-devel
-BuildRequires: bzip2-devel
-BuildRequires:
golang(github.com/dsnet/golib/unitconv)
-BuildRequires:
golang(github.com/klauspost/compress/flate)
-BuildRequires:
golang(github.com/ulikunitz/xz/lzma)
-BuildRequires: libzstd-devel
-BuildRequires: xz-devel
-BuildRequires: zlib-devel
-%endif
+Name: %{goname}
+Release: 1%{?dist}
+Summary: Collection of compression related Go packages
-%description
-%{common_description}
+# Upstream license specification: BSD-3-Clause
+License: BSD
+URL: %{gourl}
+Source0: %{gosource}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+BuildRequires:
golang(github.com/dsnet/golib/unitconv)
+BuildRequires:
golang(github.com/klauspost/compress/flate)
+BuildRequires:
golang(github.com/ulikunitz/xz/lzma)
+BuildRequires: brotli-devel
+BuildRequires: bzip2-devel
+BuildRequires: libzstd-devel
+BuildRequires: xz-devel
+BuildRequires: zlib-devel
-%description devel
-%{common_description}
-
-This package contains the source code needed for building packages that import
-the %{goipath} Go namespace.
-
-%package doc
-Summary: %{summary} - documentation
-BuildArch: noarch
-
-%description doc
+%description
%{common_description}
-This package contains the documentations.
+%gopkg
%prep
-%forgesetup
-%patch0 -p1
+%goprep
%install
-%goinstall
+%gopkginstall
%if %{with check}
%check
-%gochecks
+%gocheck
%endif
-%files devel -f devel.file-list
-%license LICENSE.md
-%doc README.md
-
-%files doc
-%doc doc/*
+%gopkgfiles
%changelog
+* Tue May 28 18:20:19 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0.0.1-1
+- Release 0.0.1
+
* Wed Feb 13 2019 Dominik Mierzejewski <dominik(a)greysector.net> - 0-0.5.gitcc9eb1d
- disable tests on ppc64le temporarily (#1675014)
* Thu Jan 31 2019 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.5.gitcc9eb1d
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-* Tue Oct 23 2018 Nicolas Mailhot <nim(a)fedoraproject.org>
-- 0-0.4
+* Tue Oct 23 2018 Nicolas Mailhot <nim(a)fedoraproject.org> - 0-0.4
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as its
just an alias
-
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.o...
diff --git a/sources b/sources
index 898d108..6dc67df 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (compress-cc9eb1d7ad760af14e8f918698f745e80377af4f.tar.gz) =
4d991bc8d1c34f792eb28b0fcfa0b6cfd054592170ef8e088aa80e9d1910d07e7855aae9f199f647ac5c3f05ef11f04352349734e4498314e11d5887e6032424
+SHA512 (compress-0.0.1.tar.gz) =
24b545fdfa6e5dcd942c9fc09614f755db341a16734f95dead2d344f06c74ca1c14e0b2674977066dee6094fd4d3bd7581ed9fe0285aeb1c62d2c68e0a3a095b