The package rpms/git-octopus.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/git-octopus.git/commit/?id=660681....
Change:
+ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 6606815b71fc33b1b0c2df7439d575bdff57edb7
Author: Andrea Baita <andrea.baita(a)kelkoo.com>
Date: Fri Jul 7 11:22:51 2017 +0200
package beta 2
diff --git a/git-octopus.spec b/git-octopus.spec
index 4c48af0..4b5820a 100644
--- a/git-octopus.spec
+++ b/git-octopus.spec
@@ -1,38 +1,79 @@
-Name: git-octopus
-Version: 1.4
-Release: 3%{?dist}
-Summary: Git commands for continuous delivery
-
-License: LGPLv3
-URL:
https://github.com/lesfurets/git-octopus
-Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
-
-BuildArch: noarch
+# Build project from bundled dependencies
+%global with_bundled 0
+%global debug_package %{nil}
+
+%if ! 0%{?gobuild:1}
+%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od
-An -tx1|tr -d ' \\n')" -a -v -x %{?**};
+%endif
+
+%global provider github
+%global provider_tld com
+%global project lesfurets
+%global repo git-octopus
+#
https://github.com/lesfurets/git-octopus
+%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
+%global import_path %{provider_prefix}
+%global commit 4ad9ba8a30e7e03b9791863e2dcb9426509ab58b
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: git-octopus
+Version: 2.0
+Release: 0.1.beta2%{?dist}
+Summary: Git commands for continuous delivery
+License: LGPLv3
+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}}
Requires: git >= 1.8
Requires: %{_bindir}/shasum
-BuildRequires: asciidoc
+# 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}
+BuildRequires: asciidoc
%description
The continuous merge workflow is meant for continuous integration/delivery and
is based on feature branching. git-octopus provides git commands to implement
it.
-
%prep
-%setup -q
-
+%setup -q -n %{repo}-%{commit}
%build
-%make_build
+mkdir -p src/%{provider}.%{provider_tld}/%{project}
+ln -s ../../../ src/%{import_path}
+
+export GOPATH=$(pwd):%{gopath}
+
make %{?_smp_mflags} build-docs
+%gobuild -o bin/git-octopus %{import_path}/
%install
-%make_install prefix="%{buildroot}%{_prefix}" \
- docdir="%{buildroot}%{_docdir}/%{name}%{?rhel:-%{version}}"
+install -d -p %{buildroot}%{_bindir}
+install -p -v -m 0755 bin/git-octopus %{buildroot}%{_bindir}
+
+make prefix="%{buildroot}%{_prefix}" \
+ docdir="%{buildroot}%{_docdir}/%{name}%{?rhel:-%{version}}"
install-docs
+
+
+
+%check
+%if ! 0%{?with_bundled}
+export GOPATH=%{buildroot}/%{gopath}:%{gopath}
+%else
+# Since we aren't packaging up the vendor directory we need to link
+# back to it somehow. Hack it up so that we can add the vendor
+# directory from BUILD dir as a gopath to be searched when executing
+# tests from the BUILDROOT dir.
+ln -s ./ ./vendor/src # ./vendor/src -> ./vendor
+
+export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
+%endif
%files
%doc README.md doc/*.html
@@ -40,8 +81,13 @@ make %{?_smp_mflags} build-docs
%{_bindir}/git-*
%{_mandir}/man1/git-*.1*
-
%changelog
+* Fri Jun 30 2017 Andrea Baita <andrea(a)baita.pro> - 2.0-0.1.beta2
+- package go beta version 2
+
+* Mon Apr 10 2017 Jabouille Jean Charles <jean-charles.jabouille(a)kelkoo.com> -
2.0-0.1.beta1
+- package go beta version
+
* Mon Jan 30 2017 Andrea Baita <andrea(a)baita.pro> - 1.4-3
- added ?_smp_mflags