[libguestfs/f20] Build golang package only on x86 and ARM. The golang package in Fedora uses the same ExclusiveArch.
Richard W.M. Jones
rjones at fedoraproject.org
Mon Dec 16 20:09:53 UTC 2013
commit 47bdb8b27db87ee41290b68f1f52a21cecbf4c0e
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Fri Dec 6 14:34:49 2013 +0000
Build golang package only on x86 and ARM. The golang package in Fedora
uses the same ExclusiveArch. Thanks: Dan Horák.
(cherry picked from commit d74a958e8d14fc6031ab0cc1ef8a4e97b89541fa)
libguestfs.spec | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/libguestfs.spec b/libguestfs.spec
index a2b5cca..099a420 100644
--- a/libguestfs.spec
+++ b/libguestfs.spec
@@ -12,7 +12,7 @@ Summary: Access and modify virtual machine disk images
Name: libguestfs
Epoch: 1
Version: 1.24.2
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPLv2+
# Source and patches.
@@ -128,7 +128,7 @@ BuildRequires: erlang-erl_interface
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gjs
-%ifnarch ppc64
+%ifarch %{arm} %{ix86} x86_64
BuildRequires: golang
%endif
@@ -581,7 +581,7 @@ Requires: %{name}-gobject-devel = %{epoch}:%{version}-%{release}
%{name} GObject bindings.
-%ifnarch ppc64
+%ifarch %{arm} %{ix86} x86_64
%package -n golang-guestfs
Summary: Golang bindings for %{name}
Requires: %{name} = %{epoch}:%{version}-%{release}
@@ -1016,7 +1016,7 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/libguestfs
%{_datadir}/gtk-doc/html/guestfs
-%ifnarch ppc64
+%ifarch %{arm} %{ix86} x86_64
%files -n golang-guestfs
%doc golang/examples/*.go
%doc golang/examples/LICENSE
@@ -1039,6 +1039,11 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/libguestfs
%changelog
+* Mon Dec 16 2013 Richard W.M. Jones <rjones at redhat.com> - 1:1.24.2-2
+- Build golang package only on x86 and ARM. The golang package in Fedora
+ uses the same ExclusiveArch. Thanks: Dan Horák.
+ Resolves RHBZ#960522
+
* Sat Dec 07 2013 Richard W.M. Jones <rjones at redhat.com> - 1:1.24.2-1
- New stable branch version 1.24.2.
- Rebase patches.
More information about the scm-commits
mailing list