The package rpms/golang-github-xanzy-ssh-agent.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-xanzy-ssh-agent.git....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 6085382725ee29dfbbfa75906872be9ec5fca0bc
Author: Robert-André Mauchin <zebob.m(a)gmail.com>
Date: Wed Mar 14 23:42:08 2018 +0100
Fix BuildRequires
diff --git a/golang-github-xanzy-ssh-agent.spec b/golang-github-xanzy-ssh-agent.spec
index 62c0668..60b6e4c 100644
--- a/golang-github-xanzy-ssh-agent.spec
+++ b/golang-github-xanzy-ssh-agent.spec
@@ -11,15 +11,13 @@ Create a ssh-agent on any type of OS from any Go application.}
Name: %{goname}
Version: 0
-Release: 0.3%{?dist}
+Release: 0.4%{?dist}
Summary: Create a ssh-agent on any type of OS from any Go application
License: ASL 2.0
URL: %{gourl}
Source: %{gosource}
-%if %{with check}
BuildRequires:
golang(golang.org/x/crypto/ssh/agent)
-%endif
%description
%{common_description}
@@ -56,6 +54,9 @@ the %{goipath} Go namespace.
%changelog
+* Wed Mar 14 2018 Robert-André Mauchin <zebob.m(a)gmail.com> -
0-0.4.20180314gitba9c9e3
+- Fix BuildRequires
+
* Fri Mar 09 2018 Robert-André Mauchin <zebob.m(a)gmail.com> -
0-0.3.20180314gitba9c9e3
- Update with the new Go packaging
commit 57a89168e11fc8ec0fce895ead89f2ef756c1eec
Author: Robert-André Mauchin <zebob.m(a)gmail.com>
Date: Wed Mar 14 18:23:04 2018 +0100
Update with the new Go packaging
diff --git a/.gitignore b/.gitignore
index 251f28e..f097a29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/ssh-agent-ba9c9e3.tar.gz
+/ssh-agent-ba9c9e33906f58169366275e3450db66139a31a9.tar.gz
diff --git a/golang-github-xanzy-ssh-agent.spec b/golang-github-xanzy-ssh-agent.spec
index d7eb775..62c0668 100644
--- a/golang-github-xanzy-ssh-agent.spec
+++ b/golang-github-xanzy-ssh-agent.spec
@@ -1,159 +1,64 @@
-# 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 xanzy
-%global repo ssh-agent
-#
https://github.com/xanzy/ssh-agent
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+%global goipath
github.com/xanzy/ssh-agent
%global commit ba9c9e33906f58169366275e3450db66139a31a9
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global commitdate 20151215
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.2.%{commitdate}git%{shortcommit}%{?dist}
-Summary: Create a ssh-agent on any type of OS from any Go application
-# Detected licences
-# - *No copyright* Apache (v2.0) at 'LICENSE'
-License: ASL 2.0
-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}
+%global common_description %{expand:
+Create a ssh-agent on any type of OS from any Go application.}
+%gometa
+Name: %{goname}
+Version: 0
+Release: 0.3%{?dist}
+Summary: Create a ssh-agent on any type of OS from any Go application
+License: ASL 2.0
+URL: %{gourl}
+Source: %{gosource}
-%description
-%{summary}
-
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check} && ! 0%{?with_bundled}
+%if %{with check}
BuildRequires:
golang(golang.org/x/crypto/ssh/agent)
%endif
-Requires:
golang(golang.org/x/crypto/ssh/agent)
+%description
+%{common_description}
-Provides: golang(%{import_path}) = %{version}-%{release}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
%description devel
-%{summary}
+%{common_description}
+
+This package contains the source code needed for building packages that import
+the %{goipath} Go namespace.
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
%prep
-%setup -q -n %{repo}-%{commit}
+%gosetup -q
-%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
+%install
+%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
-# No dependency directories so far
-
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
+%gochecks
%endif
-%if ! 0%{?gotest:1}
-%global gotest go test
-%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 README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
+
%changelog
+* Fri Mar 09 2018 Robert-André Mauchin <zebob.m(a)gmail.com> -
0-0.3.20180314gitba9c9e3
+- Update with the new Go packaging
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.2.20151215gitba9c9e3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources
index 9bbf742..cb409b9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (ssh-agent-ba9c9e3.tar.gz) =
517cf95d30a534f30630df2a30012779dabf98a9b5b810240fd777dc6b9d27acd63e2ce48589c6227d63246d632426637d963bf0bb2b1bafc352a098498d4c7d
+SHA512 (ssh-agent-ba9c9e33906f58169366275e3450db66139a31a9.tar.gz) =
517cf95d30a534f30630df2a30012779dabf98a9b5b810240fd777dc6b9d27acd63e2ce48589c6227d63246d632426637d963bf0bb2b1bafc352a098498d4c7d
commit c0306e766819295f41ade76a291257b39301a400
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Wed Feb 7 15:01:07 2018 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/golang-github-xanzy-ssh-agent.spec b/golang-github-xanzy-ssh-agent.spec
index f7854da..d7eb775 100644
--- a/golang-github-xanzy-ssh-agent.spec
+++ b/golang-github-xanzy-ssh-agent.spec
@@ -43,7 +43,7 @@
Name: golang-%{provider}-%{project}-%{repo}
Version: 0
-Release: 0.1.%{commitdate}git%{shortcommit}%{?dist}
+Release: 0.2.%{commitdate}git%{shortcommit}%{?dist}
Summary: Create a ssh-agent on any type of OS from any Go application
# Detected licences
# - *No copyright* Apache (v2.0) at 'LICENSE'
@@ -154,6 +154,9 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%endif
%changelog
+* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.2.20151215gitba9c9e3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
* Mon Jul 24 2017 Robert-André Mauchin <zebob.m(a)gmail.com> -
0-0.1.20151215gitba9c9e3
- First package for Fedora