# Generated by go2rpm %bcond_without check # https://github.com/gosexy/gettext %global goipath github.com/gosexy/gettext Version: 0.9 %gometa %global godevelheader %{expand: Requires: gettext-devel} %global common_description %{expand: Go bindings for GNU gettext, an internationalization and localization library for writing multilingual systems.} %global golicenses LICENSE %global godocs _examples README.md Name: %{goname} Release: 1%{?dist} Summary: Go bindings for GNU's gettext License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/jessevdk/go-flags) BuildRequires: gettext-devel %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(gopkg.in/check.v1) %endif %description %{common_description} %package -n go-xgettext Summary: Program for extracting translatable strings from Go programs %description -n go-xgettext The go-xgettext program is an implementation of xgettext implemented in go. It can reliably parse go source files to identify content to translate. %gopkg %prep %goprep %build for cmd in go-xgettext; 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 -d . %endif %files -n go-xgettext %license LICENSE %doc _examples README.md %{_bindir}/* %gopkgfiles %changelog * Sun Jun 02 20:43:37 CEST 2019 Robert-André Mauchin - 0.9-1 - Release 0.9 * Fri Feb 01 2019 Fedora Release Engineering - 0-0.8.git305f360 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0-0.7.git305f360 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0-0.6.git305f360 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0-0.5.git305f360 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0-0.4.git305f360 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0-0.3.git305f360 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Aug 09 2016 Zygmunt Krynicki - 0-0.3.git305f360 - Build and install go-xgettext to a separate binary package * Tue Jul 26 2016 Zygmunt Krynicki - 0-0.2.git305f360 - Update to latest upstream snapshot - Include test data in the devel and unit test packages and enable unit tests * Fri Jun 10 2016 Zygmunt Krynicki - 0-0.1.git98b7b91 - First package for Fedora