The package rpms/golang-github-spf13-afero.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-spf13-afero.git/com....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 20b55f6b91b6a17f71c1345a675165d9a9a4cc1f
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Tue Mar 26 22:10:27 2019 +0100
Release 1.2.2
Update to new Go packaging
diff --git a/.gitignore b/.gitignore
index ef340e5..3cce2fc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/afero-6364489.tar.gz
/afero-a5d6946.tar.gz
/afero-f4711e4.tar.gz
+/afero-1.2.2.tar.gz
diff --git a/golang-github-spf13-afero.spec b/golang-github-spf13-afero.spec
index db5db15..8afbf98 100644
--- a/golang-github-spf13-afero.spec
+++ b/golang-github-spf13-afero.spec
@@ -1,173 +1,74 @@
-# 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
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project spf13
-%global repo afero
#
https://github.com/spf13/afero
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit f4711e4db9e9a1d3887343acb72b2bbfc2f686f5
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 1.2.1
-Release: 1%{?dist}
-Summary: A FileSystem Abstraction System for Go
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+%global goipath
github.com/spf13/afero
+Version: 1.2.2
-# 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 common_description %{expand:
+Afero is an filesystem framework providing a simple, uniform and universal API
interacting with any filesystem, as an abstraction layer providing interfaces, types and
methods. Afero has an exceptionally clean interface and simple design without needless
constructors or initialization methods.
-%description
-%{summary}
+Afero is also a library providing a base set of interoperable backend filesystems that
make it easy to work with afero while retaining all the power and benefit of the os and
ioutil packages.
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+Afero provides significant improvements over using the os package alone, most notably the
ability to create mock and testing filesystems without relying on the disk.
+
+It is suitable for use in a any situation where you would consider using the OS package
as it provides an additional abstraction that makes it easy to use a memory backed file
system during testing. It also adds support for the http filesystem for full
interoperability.}
+
+%gometa
+
+Name: %{goname}
+Release: 0.1%{?dist}
+Summary: FileSystem Abstraction System for Go
+# Detected licences
+# - *No copyright* Apache License (v2.0) at 'LICENSE.txt'
+License: ASL 2.0
+URL: %{gourl}
+Source0: %{gosource}
-%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires:
golang(github.com/pkg/sftp)
BuildRequires:
golang(golang.org/x/text/transform)
BuildRequires:
golang(golang.org/x/text/unicode/norm)
-%endif
-Requires:
golang(github.com/pkg/sftp)
-Requires:
golang(golang.org/x/text/transform)
-Requires:
golang(golang.org/x/text/unicode/norm)
+%description
+%{common_description}
+
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/mem) = %{version}-%{release}
-Provides: golang(%{import_path}/sftpfs) = %{version}-%{release}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
%description devel
-%{summary}
+%{common_description}
This package contains library source intended for
building other packages which use import path with
-%{import_path} prefix.
-%endif
+%{goipath} prefix.
-%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}
-
-%description unit-test-devel
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
%prep
-%setup -q -n %{repo}-%{commit}
+%forgeautosetup
-%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
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; 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
-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
-for file in $(find . -iname "*_test.go"); 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
+%goinstall
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%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}
+%gochecks
%endif
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-export GO111MODULE=off # Otherwise it wants to install modules.
-%gotest %{import_path}
-%gotest %{import_path}/mem
-%endif
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE.txt
%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
-%license LICENSE.txt
-%endif
%changelog
+* Tue Mar 26 21:59:45 CET 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 1.2.2-1
+- Release 1.2.2
+- Update to new Go packaging
+
* Tue Feb 19 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 1.2.1-1
- Update to latest version
diff --git a/sources b/sources
index 8805fec..4227ed8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (afero-f4711e4.tar.gz) =
5d751a32d27994a3eb4fb202553d64babedf63af11008eeec056aa2b3072e87bed57ac28f71aed1dde7daf123329f9746d3bf76d2e0151dd9f560ff21437fa76
+SHA512 (afero-1.2.2.tar.gz) =
6b4b39ed3f8c537069cdf26840f21ad15807621ad494c78ba6c376de3994842730282a7517a3c5f7919402a3ee06a5cc6988a34207a531b16933b403c1635ee7