From b8cb1fee3f9763e4b43dcc247e0c458e0e2a1969 Mon Sep 17 00:00:00 2001 From: Athos Ribeiro Date: Jun 26 2020 08:52:03 +0000 Subject: Update to the latest version Signed-off-by: Athos Ribeiro --- diff --git a/.gitignore b/.gitignore index c519db2..90fee65 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /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 89b58df..020445e 100644 --- a/golang-github-jdkato-prose.spec +++ b/golang-github-jdkato-prose.spec @@ -1,9 +1,11 @@ -# Generated by go2rpm -%bcond_without check +# 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} # https://github.com/jdkato/prose %global goipath github.com/jdkato/prose -Version: 1.1.1 +Version: 2.0.0 %gometa @@ -13,27 +15,16 @@ supports tokenization, segmentation, part-of-speech tagging, and named-entity extraction.} %global golicenses LICENSE -%global godocs AUTHORS.md README.md requirements.txt +%global godocs README.md Name: %{goname} -Release: 2%{?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} @@ -42,29 +33,23 @@ BuildRequires: golang(github.com/stretchr/testify/assert) %prep %goprep -%build -for cmd in cmd/* ; do - %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd -done +%generate_buildrequires +%go_generate_buildrequires %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 Jun 25 2020 Athos Ribeiro - 2.0.0-1 +- Update to latest version +- Use generated dynamic buildrequires +- Remove binary package (dropped in v2) + * Wed Jan 29 2020 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 5a11409..75a5ba2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (prose-1.1.1.tar.gz) = a780d57744409bc032cc8e04533cc77ca041467cad5605e5f85f34f8a5444bcedb3a6b6b17aab59203a6d0a0edb15227a63df32c02da91cdf7d8ce6acb344026 +SHA512 (prose-2.0.0.tar.gz) = fdd217381587ae519615a16d5c333daf1cedfa83a1c5641f3b356d8ee3aa08429a49344ef4ff2025b1f42af924d98ac5003472fa65a730716856e7fa341a565c