The package rpms/golang-github-spf13-fsync.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-fsync.git/com....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 97b1d35aa10133a9584a4996ca63ebdfe37d8058
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Fri May 31 22:49:09 2019 +0200
Update to new macros
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 8c9b5b8..c7bfa53 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/fsync-cb2da33.tar.gz
/fsync-12a01e6.tar.gz
+/fsync-12a01e648f05a938100a26858d2d59a120307a18.tar.gz
diff --git a/golang-github-spf13-fsync.spec b/golang-github-spf13-fsync.spec
index f385bc9..c457c66 100644
--- a/golang-github-spf13-fsync.spec
+++ b/golang-github-spf13-fsync.spec
@@ -1,170 +1,51 @@
-# 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
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project spf13
-%global repo fsync
#
https://github.com/spf13/fsync
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+%global goipath
github.com/spf13/fsync
%global commit 12a01e648f05a938100a26858d2d59a120307a18
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.7.git%{shortcommit}%{?dist}
-Summary: Keeps files or directories in sync
-License: MIT
-URL: https://%{provider_prefix}
-Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# 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}
-
-
-%description
-%{summary}.
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%gometa
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires:
golang(github.com/spf13/afero)
-%endif
-
-Requires:
golang(github.com/spf13/afero)
-
-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
+%global common_description %{expand:
+Package Fsync keeps files and directories in sync.}
-%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
+%global golicenses LICENSE
+%global godocs README.md
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+Name: %{goname}
+Version: 0
+Release: 0.8%{?dist}
+Summary: Keeps files or directories in sync
-%if 0%{?with_check} && ! 0%{?with_bundled}
-%endif
+License: MIT
+URL: %{gourl}
+Source0: %{gosource}
+BuildRequires:
golang(github.com/spf13/afero)
-%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
-for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -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" >> 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}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%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 README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%gocheck
%endif
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc README.md
-%endif
+%gopkgfiles
%changelog
+* Fri May 31 22:35:05 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> -
0-0.8.20190531git12a01e6
+- Update to new macros
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.7.git12a01e6
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
@@ -185,4 +66,3 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Sun Feb 26 2017 Frederico Lima <fredlima(a)fedoraproject.org> - 0-0.1.gitcb2da33
- First package for Fedora
-
diff --git a/sources b/sources
index 16cd84c..9745bbe 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (fsync-12a01e6.tar.gz) =
62c62aa2090ca0dd4aa24b4ba452a8635d5d6ee89740ab34178fb1b7665de515e65dd38504498156f183c0362953ea3ae8aa6ab1c6385f8bdc1c38e6e258448e
+SHA512 (fsync-12a01e648f05a938100a26858d2d59a120307a18.tar.gz) =
62c62aa2090ca0dd4aa24b4ba452a8635d5d6ee89740ab34178fb1b7665de515e65dd38504498156f183c0362953ea3ae8aa6ab1c6385f8bdc1c38e6e258448e