[lmiwbem/f20] add support for ppc(64(le)), s390(x), aarch64

Peter Hatina phatina at fedoraproject.org
Thu Jun 5 08:22:52 UTC 2014


commit be89c00e3792612a355e3c7551253ab8a6f07bdc
Author: Peter Hatina <phatina at redhat.com>
Date:   Thu Jun 5 09:24:00 2014 +0200

    add support for ppc(64(le)), s390(x), aarch64

 lmiwbem-03-platform-support.patch |   29 +++++++++++++++++++++++++++++
 lmiwbem.spec                      |    9 ++++++++-
 2 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/lmiwbem-03-platform-support.patch b/lmiwbem-03-platform-support.patch
new file mode 100644
index 0000000..484afd6
--- /dev/null
+++ b/lmiwbem-03-platform-support.patch
@@ -0,0 +1,29 @@
+diff --git a/configure.ac b/configure.ac
+index 6ad5c77..c33137b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -36,9 +36,24 @@ case $host_os in
+             x86_64)
+                 PEGASUS_PLATFORM=PEGASUS_PLATFORM_LINUX_X86_64_GNU
+                 ;;
++            ppc)
++                PEGASUS_PLATFORM=PEGASUS_PLATFORM_LINUX_PPC_GNU
++                ;;
++            ppc64*)
++                PEGASUS_PLATFORM=PEGASUS_PLATFORM_LINUX_PPC64_GNU
++                ;;
++            s390)
++                PEGASUS_PLATFORM=PEGASUS_PLATFORM_ZSERIES_GNU
++                ;;
++            s390x)
++                PEGASUS_PLATFORM=PEGASUS_PLATFORM_ZSERIES64_GNU
++                ;;
+             arm*)
+                 PEGASUS_PLATFORM=PEGASUS_PLATFORM_LINUX_XSCALE_GNU
+                 ;;
++            aarch64)
++                PEGASUS_PLATFORM=PEGASUS_PLATFORM_LINUX_AARCH64_GNU
++                ;;
+             *)
+                 AC_MSG_ERROR([Your platform is not currently supported])
+                 ;;
diff --git a/lmiwbem.spec b/lmiwbem.spec
index bc90915..1a573be 100644
--- a/lmiwbem.spec
+++ b/lmiwbem.spec
@@ -1,15 +1,17 @@
 Name:           lmiwbem
 Version:        0.2.0
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Python WBEM Client
 License:        LGPLv2+
 URL:            https://github.com/phatina/lmiwbem
 Source0:        https://github.com/phatina/lmiwbem/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
 Patch0:         lmiwbem-01-get-instance-ns.patch
 Patch1:         lmiwbem-02-fix-value-type-deduction.patch
+Patch2:         lmiwbem-03-platform-support.patch
 
 BuildRequires:  autoconf
 BuildRequires:  automake
+BuildRequires:  libtool
 BuildRequires:  python2-devel
 BuildRequires:  python-sphinx
 BuildRequires:  python-sphinx-theme-openlmi
@@ -35,8 +37,10 @@ Group:          Documentation
 
 %patch0 -p1 -b .get-instance-ns
 %patch1 -p1 -b .value-type-deduction
+%patch2 -p1 -b .platform-support
 
 %build
+autoreconf -if
 %configure --with-doc=yes
 make %{?_smp_mflags}
 
@@ -53,6 +57,9 @@ find %{buildroot} -name '*.la' | xargs rm -f
 %{_docdir}/%{name}-%{version}/html
 
 %changelog
+* Thu Jun  5 2014 Peter Hatina <phatina at redhat.com> - 0.2.0-4
+- add support for ppc(64(le)), s390(x), aarch64
+
 * Wed May 28 2014 Peter Hatina <phatina at redhat.com> - 0.2.0-3
 - fix CIMValue type deduction
 


More information about the scm-commits mailing list