diff --git a/.gitignore b/.gitignore index 3f53e89..4d9b5cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /xz-0.5.4.tar.gz +/xz-0.5.6.tar.gz diff --git a/golang-github-ulikunitz-xz.spec b/golang-github-ulikunitz-xz.spec index b017721..ab36712 100644 --- a/golang-github-ulikunitz-xz.spec +++ b/golang-github-ulikunitz-xz.spec @@ -1,24 +1,26 @@ -%global goipath github.com/ulikunitz/xz -Version: 0.5.4 +# Generated by go2rpm +%bcond_without check + +# https://github.com/ulikunitz/xz +%global goipath github.com/ulikunitz/xz +Version: 0.5.6 + +%gometa %global common_description %{expand: This Go language package supports the reading and writing of xz compressed streams. It includes also a gxz command for compressing and decompressing data. The package is completely written in Go and doesn't have any dependency on any C -code. +code.} -The package is currently under development. There might be bugs and APIs are not -considered stable. At this time the package cannot compete with the xz tool -regarding compression speed and size. The algorithms there have been developed -over a long time and are highly optimized. However there are a number of -improvements planned and I'm very optimistic about parallel compression and -decompression. Stay tuned!} - -%gometa +%global golicenses LICENSE +%global godocs doc README.md TODO.md Name: %{goname} -Release: 5%{?dist} +Release: 1%{?dist} Summary: Pure golang package for reading and writing xz-compressed files + +# Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} @@ -26,47 +28,42 @@ Source0: %{gosource} %description %{common_description} -%package devel -Summary: %{summary} -BuildArch: noarch -Requires: %{name} = %{version}-%{release} - -%description devel -%{common_description} - -This package contains the source code needed for building packages that import -the %{goipath} Go namespace. +%gopkg %prep -%forgesetup +%goprep %build -%gobuildroot for cmd in cmd/* ; do - %gobuild -o _bin/$(basename $cmd) %{goipath}/$cmd + %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done +mv %{gobuilddir}/bin/xb %{gobuilddir}/bin/goxb %install -%goinstall -install -m 0755 -vd %{buildroot}%{_bindir} -install -m 0755 -vp _bin/* %{buildroot}%{_bindir}/ +%gopkginstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ +%if %{with check} %check -%gochecks +%gocheck +%endif %files %license LICENSE -%doc README.md +%doc doc README.md TODO.md %{_bindir}/* -%files devel -f devel.file-list +%gopkgfiles %changelog +* Tue May 28 18:41:46 CEST 2019 Robert-André Mauchin - 0.5.6-1 +- Release 0.5.6 + * Fri Feb 01 2019 Fedora Release Engineering - 0.5.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild -* Tue Oct 23 2018 Nicolas Mailhot -- 0.5.4-4 +* Tue Oct 23 2018 Nicolas Mailhot - 0.5.4-4 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ diff --git a/sources b/sources index 06581e3..3947465 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xz-0.5.4.tar.gz) = b9adad794a11ba6534cf31a722683995d517d55dbbb5510403538247931b88c00118b3d676b07c46d1e7c95805938240e4af88a428e41afc1c3d65b159820702 +SHA512 (xz-0.5.6.tar.gz) = 6d7059e3a524c98458c8724e2f5f5170bac050dd613837662beaccd839a3c4495cfc5efefb7978f09d2e6c77878581dcfa0b4c7aaf0b825ba4932370643be4a6