# Generated by go2rpm 1 %bcond_without check # https://github.com/jdkato/prose %global goipath gopkg.in/jdkato/prose.v1 %global forgeurl https://github.com/jdkato/prose Version: 1.2.0 %gometa %global common_description %{expand: A Golang library for text processing, including tokenization, part-of-speech tagging, and named-entity extraction.} %global golicenses LICENSE %global godocs requirements.txt AUTHORS.md README.md Name: %{goname} Release: 1%{?dist} Summary: A Golang library for text processing License: MIT URL: %{gourl} Source0: %{gosource} %global godevelheader %{expand: Obsoletes: golang-github-jdkato-prose-devel <= 1.1.1-2 } 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} %gopkg %prep %goprep sed -i "s|github.com/jdkato/prose|gopkg.in/jdkato/prose.v1|" $(find . -name '*.go') %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 requirements.txt AUTHORS.md README.md %{_bindir}/* %gopkgfiles %changelog * Sun Jul 26 2020 Athos Ribeiro - 1.2.0-1 - Initial package