# Generated by go2rpm %bcond_without check # https://github.com/neurosnap/sentences %global goipath gopkg.in/neurosnap/sentences.v1 %global forgeurl https://github.com/neurosnap/sentences Version: 1.0.6 %gometa # Remove in F33 %global godevelheader %{expand: Obsoletes: golang-github-neurosnap-sentences-devel < 1.0.6-6 Obsoletes: golang-github-neurosnap-sentences-unit-test-devel < 1.0.6-6 } %global common_description %{expand: This command line utility will convert a blob of text into a list of sentences.} %global golicenses LICENSE.md %global godocs CHANGES.md README.md Name: %{goname} Release: 21%{?dist} Summary: Multilingual command line sentence tokenizer in Golang License: MIT URL: %{gourl} Source0: %{gosource} %if %{with check} # Tests BuildRequires: golang(github.com/spf13/cobra) %endif # Remove in F33 Obsoletes: golang-github-neurosnap-sentences < 1.0.6-6 %description %{common_description} %gopkg %prep %goprep find . -name "*.go" -exec sed -i "s|github.com/neurosnap/sentences|gopkg.in/neurosnap/sentences.v1|" "{}" +; %build for cmd in _cmd/sentences; 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.md %doc CHANGES.md README.md %{_bindir}/* %gopkgfiles %changelog * Sun Feb 11 2024 Maxwell G - 1.0.6-21 - Rebuild for golang 1.22.0 * Wed Jan 24 2024 Fedora Release Engineering - 1.0.6-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 1.0.6-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.0.6-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.0.6-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.0.6-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 1.0.6-15 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin - 1.0.6-14 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering - 1.0.6-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.0.6-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.0.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.0.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.0.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.0.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jul 10 2019 Elliott Sales de Andrade - 1.0.6-7 - Add Obsoletes for old names * Sat Jun 01 22:05:16 CEST 2019 Robert-André Mauchin - 1.0.6-6 - Update to new macros * Fri Feb 01 2019 Fedora Release Engineering - 1.0.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.0.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Sep 08 2017 Athos Ribeiro - 1.0.6-2 - Add Provides under the gopkg.in namespace * Fri Aug 18 2017 Athos Ribeiro - 1.0.6-1 - First package for Fedora