diff --git a/.gitignore b/.gitignore index 90fee65..c519db2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /prose-2f94c80.tar.gz /prose-1.1.0.tar.gz /prose-1.1.1.tar.gz -/prose-2.0.0.tar.gz diff --git a/golang-github-jdkato-prose.spec b/golang-github-jdkato-prose.spec index b67cbd0..9ae87d1 100644 --- a/golang-github-jdkato-prose.spec +++ b/golang-github-jdkato-prose.spec @@ -1,11 +1,10 @@ -# No binary packages are generated here -# However, BR auto generation generates an empty debugsource list -# Remove in case they are re-introduced -%global debug_package %{nil} +# Generated by go2rpm +%bcond_without check # https://github.com/jdkato/prose %global goipath github.com/jdkato/prose -Version: 2.0.0 +Version: 1.1.1 +Epoch: 1 %gometa @@ -15,16 +14,27 @@ supports tokenization, segmentation, part-of-speech tagging, and named-entity extraction.} %global golicenses LICENSE -%global godocs README.md +%global godocs AUTHORS.md README.md requirements.txt Name: %{goname} -Release: 3%{?dist} +Release: 1%{?dist} Summary: Golang library for text processing License: MIT URL: %{gourl} Source0: %{gosource} +BuildRequires: golang(github.com/montanaflynn/stats) +BuildRequires: golang(github.com/shogo82148/go-shuffle) +BuildRequires: golang(github.com/urfave/cli) +BuildRequires: golang(gopkg.in/neurosnap/sentences.v1) +BuildRequires: golang(gopkg.in/neurosnap/sentences.v1/data) + +%if %{with check} +# Tests +BuildRequires: golang(github.com/stretchr/testify/assert) +%endif + %description %{common_description} @@ -33,18 +43,32 @@ Source0: %{gosource} %prep %goprep -%generate_buildrequires -%go_generate_buildrequires +%build +for cmd in cmd/* ; do + %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{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 AUTHORS.md README.md requirements.txt +%{_bindir}/* %gopkgfiles %changelog +* Thu Aug 21 2020 Athos Ribeiro - 1:1.1.1-1 +- Bump Epoch and downgrade to 1.1.1. See BZ#1860668 for further reference. + * Sat Aug 01 2020 Fedora Release Engineering - 2.0.0-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 75a5ba2..5a11409 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (prose-2.0.0.tar.gz) = fdd217381587ae519615a16d5c333daf1cedfa83a1c5641f3b356d8ee3aa08429a49344ef4ff2025b1f42af924d98ac5003472fa65a730716856e7fa341a565c +SHA512 (prose-1.1.1.tar.gz) = a780d57744409bc032cc8e04533cc77ca041467cad5605e5f85f34f8a5444bcedb3a6b6b17aab59203a6d0a0edb15227a63df32c02da91cdf7d8ce6acb344026