The package rpms/golang-github-montanaflynn-stats.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-montanaflynn-stats.git....
Change: -%ifnarch ppc64le s390x i686
Thanks.
Full change: ============
commit ec234ce8e9df540bbd81b997abafff9001594233 Author: Robert-Andr Mauchin zebob.m@gmail.com Date: Wed May 15 23:51:52 2019 +0200
Release 0.5.0
Signed-off-by: Robert-Andr Mauchin zebob.m@gmail.com
diff --git a/.gitignore b/.gitignore index 6692c40..db05b0b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /stats-4a16327.tar.gz +/stats-0.5.0.tar.gz diff --git a/golang-github-montanaflynn-stats.spec b/golang-github-montanaflynn-stats.spec index 5d092ae..efb39cc 100644 --- a/golang-github-montanaflynn-stats.spec +++ b/golang-github-montanaflynn-stats.spec @@ -1,191 +1,52 @@ -# If any of the following macros should be set otherwise, -# you can wrap any of them with the following conditions: -# - %%if 0%%{centos} == 7 -# - %%if 0%%{?rhel} == 7 -# - %%if 0%%{?fedora} == 23 -# Or just test for particular distribution: -# - %%if 0%%{centos} -# - %%if 0%%{?rhel} -# - %%if 0%%{?fedora} -# -# Be aware, on centos, both %%rhel and %%centos are set. If you want to test -# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition. -# (Don't forget to replace double percentage symbol with single one in order to apply a condition) - -# Generate devel rpm -%global with_devel 1 -# Build project from bundled dependencies -%global with_bundled 0 -# Build with debug info rpm -%global with_debug 0 -# Run tests in check section -%global with_check 1 -# Generate unit-test rpm -%global with_unit_test 1 - -%if 0%{?with_debug} -%global _dwz_low_mem_die_limit 0 -%else -%global debug_package %{nil} -%endif - +# Generated by go2rpm +# There are some precision problems with some architectures +# https://github.com/montanaflynn/stats/issues/33 +# For now, We are skipping the failing tests +%bcond_with check
-%global provider github -%global provider_tld com -%global project montanaflynn -%global repo stats # https://github.com/montanaflynn/stats -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global commit 4a163274fa4ca0b524ccee24757d7bec79475aca -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commitdate 20170729 - -Name: golang-%{provider}-%{project}-%{repo} -# This is a post-release for 0.2.0 -Version: 0.2.0 -Release: 5.%{commitdate}git%{shortcommit}%{?dist} -Summary: Common statistics functions missing in Golang standard library -License: MIT -URL: https://%%7Bprovider_prefix%7D -Source0: https://%%7Bprovider_prefix%7D/archive/%%7Bcommit%7D/%%7Brepo%7D-%%7Bshortco... - -# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required -ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{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} +%global goipath github.com/montanaflynn/stats +Version: 0.5.0
+%gometa
+%global common_description %{expand: +A well tested and comprehensive Golang statistics library package with no +dependencies.}
-%description -%{summary} - -%if 0%{?with_devel} -%package devel -Summary: %{summary} -BuildArch: noarch - -%if 0%{?with_check} && ! 0%{?with_bundled} -%endif - +%global golicenses LICENSE +%global godocs examples CHANGELOG.md README.md
-Provides: golang(%{import_path}) = %{version}-%{release} - -%description devel -%{summary} - -This package contains library source intended for -building other packages which use import path with -%{import_path} prefix. -%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 - -# test subpackage tests code from devel subpackage -Requires: %{name}-devel = %{version}-%{release} - -%if 0%{?with_check} && ! 0%{?with_bundled} -%endif +Name: %{goname} +Release: 1%{?dist} +Summary: Well tested and comprehensive Golang statistics library package
+License: MIT +URL: %{gourl} +Source0: %{gosource}
-%description unit-test-devel -%{summary} +%description +%{common_description}
-This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif +%gopkg
%prep -%setup -q -n %{repo}-%{commit} +%goprep
-%build %install -# 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 -# also excludes the example files, which will be packaged as documentation -for file in $(find . ( -iname "*.go" -or -iname "*.s" ) ! -iname "*_test.go" -not -path "./examples/*") ; do - dirprefix=$(dirname $file) - install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix - cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list - - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -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-devel.file-list -for file in $(find . -iname "*_test.go") ; do - dirprefix=$(dirname $file) - install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix - cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list - - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -done -%endif - -%if 0%{?with_devel} -sort -u -o devel.file-list devel.file-list -%endif +%gopkginstall
+%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 -# No dependency directories so far - -export GOPATH=%{buildroot}/%{gopath}:%{gopath} +%gocheck %endif
-%if ! 0%{?gotest:1} -%global gotest go test -%endif - -# There are some precision problems with some architectures -# https://github.com/montanaflynn/stats/issues/33 -# For now, We are skipping the failing tests for those arches -%ifnarch ppc64le s390x i686 -%gotest %{import_path} -%endif -%endif - -#define license tag if not already defined -%{!?_licensedir:%global license %doc} - - -%if 0%{?with_devel} -%files devel -f devel.file-list -%license LICENSE -%doc CHANGELOG.md README.md examples -%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 -%license LICENSE -%doc CHANGELOG.md README.md -%endif +%gopkgfiles
%changelog +* Wed May 15 23:36:15 CEST 2019 Robert-Andr Mauchin zebob.m@gmail.com - 0.5.0-1 +- Release 0.5.0 + * Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.2.0-5.20170729git4a16327 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -200,4 +61,3 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Fri Aug 11 2017 Athos Ribeiro athoscr@fedoraproject.org - 0.2.0-1.20170729git4a16327 - First package for Fedora - diff --git a/sources b/sources index edb2c2d..7bd0b64 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (stats-4a16327.tar.gz) = 2c826192105659c180d03bc8ba74417149019a1dcf0a16a0d90a8b430bf782c71befdd82252ead72f7b7657591b0439b7e348fab03d833e66a626da781278f1e +SHA512 (stats-0.5.0.tar.gz) = b052c4e3033c4d653bd0e5017b67164251ab64a97dc0404eb71e33b6f04919a2899a022499794417f7e442b1d023f8ae29e03edd5273d0964c108faf80e642b4
arch-excludes@lists.fedoraproject.org