Blame golang-github-nicksnyder-i18n-2.spec

45563af
# Generated by go2rpm 1
45563af
%bcond_without check
45563af
45563af
# https://github.com/nicksnyder/go-i18n/v2
b80dec6
%global goipath         github.com/nicksnyder/go-i18n/v2
b80dec6
%global forgeurl        https://github.com/nicksnyder/go-i18n
ea0eec8
Version:                2.1.2
45563af
45563af
%gometa
45563af
45563af
%global common_description %{expand:
45563af
go-i18n is a Go package and a command that helps you translate Go programs into
45563af
multiple languages.
45563af
45563af
 - Supports pluralized strings for all 200+ languages in the Unicode Common
45563af
   Locale Data Repository (CLDR).
45563af
    - Code and tests are automatically generated from CLDR data.
45563af
 - Supports strings with named variables using text/template syntax.
45563af
 - Supports message files of any format (e.g. JSON, TOML, YAML, etc.).
45563af
 - Documented and tested!}
45563af
45563af
%global golicenses      LICENSE
45563af
%global godocs          CHANGELOG.md README.md dev.md example
45563af
b80dec6
Name:           %{goname}
ea0eec8
Release:        1%{?dist}
45563af
Summary:        Translate your Go program into multiple languages
45563af
45563af
License:        MIT
45563af
URL:            %{gourl}
45563af
Source0:        %{gosource}
45563af
45563af
BuildRequires:  golang(github.com/BurntSushi/toml)
45563af
BuildRequires:  golang(golang.org/x/text/language)
45563af
BuildRequires:  golang(gopkg.in/yaml.v2)
45563af
45563af
Provides:       go-i18n = %{version}-%{release}
45563af
# Remove in F33:
45563af
Obsoletes:      go-i18n < 1.10.0-7
45563af
45563af
%description
45563af
%{common_description}
45563af
45563af
%gopkg
45563af
45563af
%prep
45563af
%goprep
b80dec6
mv v2/* ./
b80dec6
45563af
%build
b80dec6
for cmd in goi18n; do
45563af
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
45563af
done
45563af
45563af
%install
45563af
%gopkginstall
45563af
install -m 0755 -vd                     %{buildroot}%{_bindir}
45563af
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
45563af
45563af
%if %{with check}
45563af
%check
45563af
%gocheck
45563af
%endif
45563af
45563af
%files
45563af
%doc README.md CHANGELOG.md
45563af
%license LICENSE
45563af
%{_bindir}/*
45563af
45563af
%gopkgfiles
45563af
45563af
%changelog
ea0eec8
* Tue Jan 19 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.2-1
ea0eec8
- Update to latest version (#1917665)
ea0eec8
b80dec6
* Mon Jan 18 13:01:36 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2.1.1-4
b80dec6
- Rework fix incompatibility with v1
b80dec6
0b3b26d
* Mon Jan 18 02:08:12 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2.1.1-3
3205a8b
- Fix incompatibility with v1
3205a8b
0b3b26d
* Sun Jan 17 23:43:13 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2.1.1-2
3205a8b
- Fix FTBFS with Go 1.16
3205a8b
afcc0f3
* Fri Oct 02 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.1-1
afcc0f3
- Update to latest version (#1883383)
afcc0f3
1250642
* Thu Jul 30 12:23:33 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.3-4
1250642
- Add alternative import path
1250642
d2be2f6
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
d2be2f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d2be2f6
be86fdb
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
be86fdb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
be86fdb
3d2ba0b
* Wed Nov 20 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.3-1
3d2ba0b
- Update to latest version
3d2ba0b
45563af
* Wed Oct 16 05:00:46 EDT 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-1
45563af
- Initial package