The package rpms/golang-github-gosexy-gettext.git has added or updated architecture
specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-gosexy-gettext.git/....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit c04421d6d9fa93d47a5a927d406021658522a782
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Sun Jun 2 21:11:04 2019 +0200
Release 0.9
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 2b33850..b99cd72 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/golang-github-gosexy-gettext.spec
/gettext-305f360.tar.gz
+/gettext-0.9.tar.gz
diff --git a/golang-github-gosexy-gettext.spec b/golang-github-gosexy-gettext.spec
index be34682..a036ad8 100644
--- a/golang-github-gosexy-gettext.spec
+++ b/golang-github-gosexy-gettext.spec
@@ -1,185 +1,80 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
-%global with_devel 1
-%global with_bundled 0
-%global with_debug 0
-%global with_check 1
-%global with_unit_test 1
-%else
-%global with_devel 0
-%global with_bundled 0
-%global with_debug 0
-%global with_check 0
-%global with_unit_test 0
-%endif
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
+# Generated by go2rpm
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project gosexy
-%global repo gettext
#
https://github.com/gosexy/gettext
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 305f360aee30243660f32600b87c3c1eaa947187
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.8.git%{shortcommit}%{?dist}
-Summary: Gettext support for the Go language
-License: MIT
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%global goipath
github.com/gosexy/gettext
+Version: 0.9
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-BuildRequires:
golang(github.com/jessevdk/go-flags)
+%gometa
-%description
-Go bindings for GNU gettext, an internationalization and localization library
-for writing multilingual systems.
-
-%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.
+%global godevelheader %{expand:
+Requires: gettext-devel}
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%global common_description %{expand:
+Go bindings for GNU gettext, an internationalization and localization library
+for writing multilingual systems.}
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires:
golang(github.com/stretchr/testify/assert)
-BuildRequires: golang(gopkg.in/check.v1)
-%endif
+%global golicenses LICENSE
+%global godocs _examples README.md
-Requires:
golang(github.com/stretchr/testify/assert)
-Requires: golang(gopkg.in/check.v1)
+Name: %{goname}
+Release: 1%{?dist}
+Summary: Go bindings for GNU's gettext
-Provides: golang(%{import_path}) = %{version}-%{release}
+License: MIT
+URL: %{gourl}
+Source0: %{gosource}
-%description devel
-%{summary}
+BuildRequires:
golang(github.com/jessevdk/go-flags)
+BuildRequires: gettext-devel
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
+%if %{with check}
+# Tests
+BuildRequires:
golang(github.com/stretchr/testify/assert)
+BuildRequires: golang(gopkg.in/check.v1)
%endif
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test-devel
-Summary: Unit tests for %{name} package
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+%description
+%{common_description}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+%package -n go-xgettext
+Summary: Program for extracting translatable strings from Go programs
-%description unit-test-devel
-%{summary}
+%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.
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%gopkg
%prep
-%setup -q -n %{repo}-%{commit}
+%goprep
%build
-mkdir -p $(dirname src/%{import_path})
-ln -s ../../../ src/%{import_path}
-
-%if ! 0%{?with_bundled}
-export GOPATH=$(pwd):%{gopath}
-%else
-export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%gobuild -o bin/go-xgettext %{import_path}/go-xgettext
-
-%install
-install -d -p %{buildroot}%{_bindir}
-install -p -m 0755 bin/go-xgettext %{buildroot}%{_bindir}
-
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-# NOTE: the _examples/ directory is required for unit tests to pass, it contains test
data
-for file in $(find . -iname "*.go" \! -iname "*_test.go" -o -iname
"_examples") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
+for cmd in go-xgettext; do
+ %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
-%endif
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-# NOTE: the _examples/ directory is required for unit tests to pass, it contains test
data
-for file in $(find . -iname "*_test.go" -o -iname "_examples"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >>
devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >>
unit-test-devel.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%install
+%gopkginstall
+install -m 0755 -vd %{buildroot}%{_bindir}
+install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
+%if %{with check}
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%gotest %{import_path}
-%gotest %{import_path}/go-xgettext
+%gocheck -d .
%endif
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-%files
-%license LICENSE
-%doc README.md
-
-%if 0%{?with_devel}
-%files devel -f devel.file-list
-%license LICENSE
-%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
+%files -n go-xgettext
%license LICENSE
-%doc README.md
-%endif
+%doc _examples README.md
+%{_bindir}/*
-%files -n go-xgettext
-%doc LICENSE
-%{_bindir}/go-xgettext
+%gopkgfiles
%changelog
+* Sun Jun 02 20:43:37 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0.9-1
+- Release 0.9
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.8.git305f360
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -200,8 +95,10 @@ export
GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
* Tue Aug 09 2016 Zygmunt Krynicki <me(a)zygoon.pl> - 0-0.3.git305f360
- Build and install go-xgettext to a separate binary package
+
* Tue Jul 26 2016 Zygmunt Krynicki <me(a)zygoon.pl> - 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 <me(a)zygoon.pl> - 0-0.1.git98b7b91
- First package for Fedora
diff --git a/sources b/sources
index ef2b35e..4613438 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-07a314ca5de61dd3ff515391292bf2e3 gettext-305f360.tar.gz
+SHA512 (gettext-0.9.tar.gz) =
d0ccdb1ff1adf052064ac30ef05ff630bac6b9b76d177f31ee898f208962315946228f2a75d135ed6c31552882c06e3141ca242725878cd12732ce14e09ac438