# Generated by go2rpm %bcond_without check # https://github.com/mholt/archiver %global goipath github.com/mholt/archiver Version: 3.1.1 %gometa %global common_description %{expand: Package Archiver makes it trivially easy to make and extract common archive formats such as zip and tarball (and its compressed variants). Simply name the input and output file(s). The arc command runs the same on all platforms and has no external dependencies (not even libc). It is powered by the Go standard library and several third-party, pure-Go libraries.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Easily create and extract archive files with Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/dsnet/compress/bzip2) BuildRequires: golang(github.com/golang/snappy) BuildRequires: golang(github.com/nwaples/rardecode) BuildRequires: golang(github.com/pierrec/lz4) BuildRequires: golang(github.com/ulikunitz/xz) BuildRequires: golang(github.com/xi2/xz) %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/archiver %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog * Tue May 28 18:11:30 CEST 2019 Robert-André Mauchin - 3.1.1-1 - Release 3.1.1 * Fri Feb 01 2019 Fedora Release Engineering - 2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 23 2018 Nicolas Mailhot - 2.0-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/ * Tue Jul 31 2018 Florian Weimer - 2.0-3 - Rebuild with fixed binutils * Fri Jul 13 2018 Fedora Release Engineering - 2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Mar 26 2018 Dominik Mierzejewski - 2.0-1 - initial package for Fedora