The package rpms/reg.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/reg.git/commit/?id=3b40a24446edc1....
Change:
+ExclusiveArch: x86_64
Thanks.
Full change:
============
commit 3b40a24446edc167d97f80a19e39e93b185ac239
Author: Adam Miller <maxamillion(a)fedoraproject.org>
Date: Thu Jun 29 16:22:37 2017 -0500
fix build for epel7
diff --git a/reg.spec b/reg.spec
index f57ba9d..f762b04 100644
--- a/reg.spec
+++ b/reg.spec
@@ -25,7 +25,7 @@
Name: reg
Version: 0.4.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Docker registry v2 command line client
@@ -52,6 +52,16 @@ Source2: sysconfig.reg-server
BuildRequires: golang
BuildRequires: systemd
+%if 0%{?epel}
+# The version of golang is too old to understand the vendor manifest and can't
+# find the appropriate path for the vendored version of this.
+BuildRequires: golang-github-gorilla-context-devel
+
+# For whatever reason golang-github-gorilla-context-devel isn't available in
+# EPEL for any of the other arches.
+ExclusiveArch: x86_64
+%endif # 0%{?epel}
+
# The following section is automatically populated by running the below python
# one-liner at the base dir of a git checkout of the source code.
#
@@ -386,6 +396,18 @@ cd $OLDPWD
mkdir -p $(pwd)/go/src/%{import_path}
mv ../hack/* $(pwd)/go/src/%{import_path}/
+# Have to mess with the pathing even more to make the older version of golang
+# in el7 happy.
+%if 0%{?epel}
+for d in $(ls $(pwd)/go/src/%{import_path}/vendor/)
+do
+ if [[ -d "$(pwd)/go/src/%{import_path}/vendor/${d}" ]]; then
+ printf "D VALUE: %s\n" "${d}"
+ mkdir -p $(pwd)/go/src/${d}
+ cp -r $(pwd)/go/src/%{import_path}/vendor/${d}/* $(pwd)/go/src/${d}/
+ fi
+done
+%endif # 0%{?epel}
%build
export GOPATH="$(pwd)/go:%{buildroot}%{gopath}:%{gopath}"
@@ -476,6 +498,9 @@ cp -p LICENSE %{_builddir}/%{name}-%{commit}/
%ghost %config(noreplace) %{_sharedstatedir}%{name}-server/index.html
%changelog
+* Thu Jun 29 2017 Adam Miller <maxamillion(a)fedoraproject.org> - 0.4.1-4
+- Fix epel7 build
+
* Tue Jun 27 2017 Adam Miller <maxamillion(a)fedoraproject.org> - 0.4.1-3
- Add patch to allow single-run execution of reg-server for static html
generation