diff --git a/apache-commons-daemon-ppc64.patch b/apache-commons-daemon-ppc64.patch new file mode 100644 index 0000000..262a115 --- /dev/null +++ b/apache-commons-daemon-ppc64.patch @@ -0,0 +1,16 @@ +Index: commons-daemon-1.0.10-src/src/native/unix/configure +=================================================================== +--- commons-daemon-1.0.10-src.orig/src/native/unix/configure ++++ commons-daemon-1.0.10-src/src/native/unix/configure +@@ -2607,7 +2607,10 @@ echo "$as_me: error: Unsupported operati + ;; + esac + case $host_cpu in +- powerpc) ++ powerpc*) ++ CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" ++ HOST_CPU=$host_cpu;; ++ ppc*) + CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" + HOST_CPU=$host_cpu;; + sparc*) diff --git a/apache-commons-daemon.changes b/apache-commons-daemon.changes index bc9b4aa..20e4efa 100644 --- a/apache-commons-daemon.changes +++ b/apache-commons-daemon.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 3 13:28:57 UTC 2012 - dvaleev@suse.com + +- read ppc64 as known platform. + ------------------------------------------------------------------- Fri Jun 15 11:14:54 UTC 2012 - mvyskocil@suse.cz diff --git a/apache-commons-daemon.spec b/apache-commons-daemon.spec index f305199..5523cf6 100644 --- a/apache-commons-daemon.spec +++ b/apache-commons-daemon.spec @@ -29,6 +29,7 @@ Source0: commons-daemon-%{version}-src.tar.gz Patch0: 0001-execve-path-warning.patch Patch1: apache-commons-daemon-JAVA_OS.patch Patch2: apache-commons-daemon-s390x.patch +Patch3: apache-commons-daemon-ppc64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ant @@ -77,6 +78,7 @@ The Javadoc Documentation for Commons Daemon. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 # remove java binaries from sources rm -rf src/samples/build/