diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6a3a93b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/multierr-1.1.0.tar.gz diff --git a/golang-uber-multierr.spec b/golang-uber-multierr.spec new file mode 100644 index 0000000..84bb989 --- /dev/null +++ b/golang-uber-multierr.spec @@ -0,0 +1,66 @@ +# Run tests in check section +%bcond_without check + +# https://github.com/uber-go/multierr +%global goipath go.uber.org/multierr +%global forgeurl https://github.com/uber-go/multierr +Version: 1.1.0 + +%global common_description %{expand: +multierr allows combining one or more Go errors together.} + +%gometa + +Name: %{goname} +Release: 1%{?dist} +Summary: Combine one or more Go errors together +# Detected licences +# - Expat License at 'LICENSE.txt' +License: MIT +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(go.uber.org/atomic) +%if %{with check} +BuildRequires: golang(github.com/stretchr/testify/assert) +%endif + +%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 + + +%install +%goinstall + + +%if %{with check} +%check +%gochecks +%endif + + +%files devel -f devel.file-list +%license LICENSE.txt +%doc README.md CHANGELOG.md + + +%changelog +* Thu Mar 14 2019 Robert-André Mauchin - 1.1.0-1 +- First package for Fedora + diff --git a/sources b/sources new file mode 100644 index 0000000..53af304 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (multierr-1.1.0.tar.gz) = c870b53a3d4bb4650d10c67c11b438d0531423eddedc0307254b545f1507ac38f792f3521cc411c4594db93ad1e149d12f2eb557cfad454befd26818297a1efe