[nordugrid-arc/el6] Disable python module on RHEL6 ppc64
Mattias Ellert
ellert at fedoraproject.org
Sun Jul 24 13:17:02 UTC 2011
commit 730bc381b462263b7df45f359cadf48f105a158f
Author: Mattias Ellert <mattias.ellert at fysast.uu.se>
Date: Sun Jul 24 14:26:04 2011 +0200
Disable python module on RHEL6 ppc64
nordugrid-arc.spec | 35 ++++++++++++++++++++++++++++-------
1 files changed, 28 insertions(+), 7 deletions(-)
---
diff --git a/nordugrid-arc.spec b/nordugrid-arc.spec
index c77edb4..5b5151d 100644
--- a/nordugrid-arc.spec
+++ b/nordugrid-arc.spec
@@ -28,11 +28,26 @@
%endif
%global with_gcj %{!?_with_gcj:0}%{?_with_gcj:1}
+%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
+%if %{?rhel}%{!?rhel:0} == 6
+%ifarch ppc64
+# The python module doesn't build on RHEL6 ppc64 (.toc1 section overflow)
+%global with_python 0
+%else
+%global with_python 1
+%endif
+%else
+%global with_python 1
+%endif
+%else
+%global with_python 0
+%endif
+
%global pkgdir arc
Name: nordugrid-arc
Version: 1.0.1
-Release: 1%{?dist}
+Release: 1%{?dist}.1
Summary: Advanced Resource Connector Grid Middleware
Group: System Environment/Daemons
License: ASL 2.0
@@ -48,7 +63,7 @@ BuildRequires: libuuid-devel
BuildRequires: e2fsprogs-devel
%endif
BuildRequires: gettext
-%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
+%if %{with_python}
BuildRequires: python-devel
%endif
%if %{?rhel}%{!?rhel:0} == 5
@@ -158,7 +173,7 @@ just one possible service between a user and a remote machine.
Many others are thinkable, and HED takes considerable effort
away from the respective implementors.
-%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
+%if %{with_python}
%package chelonia
Summary: ARC chelonia service
Group: System Environment/Libraries
@@ -166,7 +181,7 @@ Requires: %{name} = %{version}-%{release}
Requires: %{name}-hed = %{version}-%{release}
Requires: %{name}-python = %{version}-%{release}
Requires: fuse-python
-%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
+%if %{?fedora}%{!?fedora:0} >= 10
BuildArch: noarch
%endif
@@ -415,7 +430,7 @@ Daemon (HED) can be extended for novel services. Considerable parts
of a regular installation of a regular installation of the NorduGrid
represent such modules.
-%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
+%if %{with_python}
%package python
Summary: ARC Python wrapper
Group: Development/Libraries
@@ -583,6 +598,9 @@ cd -
%if ! %{with_lfc}
--disable-lfc \
%endif
+%if ! %{with_python}
+ --disable-python \
+%endif
%if %{?rhel}%{!?rhel:0} == 5
--with-altpython=python26 \
%endif
@@ -885,7 +903,7 @@ service fetch-crl-cron start > /dev/null 2>&1
%doc %{_mandir}/man8/arched.8*
%doc %{_mandir}/man5/arc.conf.5*
-%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
+%if %{with_python}
%files chelonia
%defattr(-,root,root,-)
%{_bindir}/arcfs
@@ -1095,7 +1113,7 @@ service fetch-crl-cron start > /dev/null 2>&1
%{_libdir}/%{pkgdir}/libmccgsi.apd
%{_libdir}/libarcglobusutils.so.*
-%if %{?fedora}%{!?fedora:0} >= 5 || %{?rhel}%{!?rhel:0} >= 5
+%if %{with_python}
%files python
%defattr(-,root,root,-)
%{python_sitearch}/_arc*.so
@@ -1164,6 +1182,9 @@ service fetch-crl-cron start > /dev/null 2>&1
%defattr(-,root,root,-)
%changelog
+* Sun Jul 24 2011 Mattias Ellert <mattias.ellert at fysast.uu.se> - 1.0.1-1.1
+- Disable python module on RHEL6 ppc64
+
* Sat Jul 23 2011 Mattias Ellert <mattias.ellert at fysast.uu.se> - 1.0.1-1
- 1.0.1 Final Release
- Remove Provides/Obsoletes for pre-Fedora packages
More information about the scm-commits
mailing list