From dbfa650cfd39fccf146f0387ab75801e15de1cd5 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Apr 21 2019 20:28:47 +0000 Subject: Update to new macros Signed-off-by: Robert-André Mauchin --- diff --git a/golang-github-mitchellh-go-wordwrap.spec b/golang-github-mitchellh-go-wordwrap.spec deleted file mode 100644 index 5a878c3..0000000 --- a/golang-github-mitchellh-go-wordwrap.spec +++ /dev/null @@ -1,90 +0,0 @@ -# Generated by go2rpm -%bcond_without check - -# https://github.com/mitchellh/go-wordwrap -%global goipath github.com/mitchellh/go-wordwrap -Version: 1.0.0 - -%gometa - -%global common_description %{expand: -A go (golang) library for wrapping words in a string.} - -Name: golang-github-mitchellh-go-wordwrap -Release: 1%{?dist} -Summary: A go (golang) library for wrapping words in a string - -License: MIT -URL: %{gourl} -Source: %{gosource} -Source1: glide.yaml -Source2: glide.lock - -%description -%{common_description} - -%package devel -Summary: %{summary} -BuildArch: noarch - -%description devel -%{common_description} - -This package contains library source intended for -building other packages which use import path with -%{goipath} prefix. - -%prep -%forgeautosetup -p1 -cp %{SOURCE1} %{SOURCE2} . - -%install -%goinstall glide.lock glide.yaml - -# Remove in F33 -# Remove erroneous glide.lock folder -%pretrans devel -p -path = "%{gopath}/src/%{goipath}/glide.lock" -st = posix.stat(path) -if st and st.type == "directory" then - os.remove(path) -end - -%if %{with check} -%check -%gochecks -%endif - -%files devel -f devel.file-list -%license LICENSE.md -%doc README.md - -%changelog -* Wed Apr 03 21:57:30 CEST 2019 Robert-André Mauchin - 1.0.0-1 -- Release 1.0.0 (#1695230) - -* Fri Feb 01 2019 Fedora Release Engineering - 0-0.8.gitad45545 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Tue Oct 23 2018 Nicolas Mailhot - 0-0.7.gitad45545 -- 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/ - -* Fri Jul 13 2018 Fedora Release Engineering - 0-0.6.gitad45545 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Mon Jun 18 2018 Jan Chaloupka - 0-0.5.gitad45545 -- Upload glide files - -* Wed Feb 07 2018 Fedora Release Engineering - 0-0.4.gitad45545 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Aug 02 2017 Fedora Release Engineering - 0-0.3.gitad45545 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 0-0.2.gitad45545 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Thu Jan 05 2017 Jan Chaloupka - 0-0.1.gitad45545 -- First package for Fedora - resolves: #1410394 diff --git a/golang-github-mitchellh-wordwrap.spec b/golang-github-mitchellh-wordwrap.spec new file mode 100644 index 0000000..35e766c --- /dev/null +++ b/golang-github-mitchellh-wordwrap.spec @@ -0,0 +1,80 @@ +# Generated by go2rpm +%bcond_without check + +# https://github.com/mitchellh/go-wordwrap +%global goipath github.com/mitchellh/go-wordwrap +Version: 1.0.0 + +%gometa + +%global common_description %{expand: +Go-wordwrap is a package for Go that automatically wraps words into multiple +lines. The primary use case for this is in formatting CLI output, but of course +word wrapping is a generally useful thing to do.} + +%global golicenses LICENSE.md +%global godocs README.md + +%global gosupfiles glide.lock glide.yaml + +Name: %{goname} +Release: 2%{?dist} +Summary: Go library for wrapping words in a string + +License: MIT +URL: %{gourl} +Source0: %{gosource} +Source1: glide.yaml +Source2: glide.lock + +%description +%{common_description} + +%gopkg + +%prep +%goprep +cp %{S:1} %{S:2} . + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +* Sun Apr 21 20:22:43 CEST 2019 Robert-André Mauchin - 1.0.0-2 +- Update to new macros + +* Wed Apr 03 21:57:30 CEST 2019 Robert-André Mauchin - 1.0.0-1 +- Release 1.0.0 (#1695230) + +* Fri Feb 01 2019 Fedora Release Engineering - 0-0.8.gitad45545 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Oct 23 2018 Nicolas Mailhot - 0-0.7.gitad45545 +- 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/ + +* Fri Jul 13 2018 Fedora Release Engineering - 0-0.6.gitad45545 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 18 2018 Jan Chaloupka - 0-0.5.gitad45545 +- Upload glide files + +* Wed Feb 07 2018 Fedora Release Engineering - 0-0.4.gitad45545 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 0-0.3.gitad45545 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0-0.2.gitad45545 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu Jan 05 2017 Jan Chaloupka - 0-0.1.gitad45545 +- First package for Fedora + resolves: #1410394