diff --git a/check-build.sh b/check-build.sh new file mode 100644 index 0000000..e1501c7 --- /dev/null +++ b/check-build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +case $BUILD_BASENAME in + *ppc*) + if test $(getconf PAGESIZE) -ne 65536; then + echo "Error: wrong build host, PAGESIZE must be 65536" + exit 1 + fi + ;; + *ia64*) + if test $(getconf PAGESIZE) -ne 65536; then + echo "Error: wrong build host, PAGESIZE must be 65536" + exit 1 + fi + ;; + *) + ;; +esac + +exit 0 + diff --git a/xemacs.changes b/xemacs.changes index ef73fcb..13a38fb 100644 --- a/xemacs.changes +++ b/xemacs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 4 16:17:08 CET 2012 - dmueller@suse.de + +- rebuild for ppc64 and ia64 (bnc#726769) + ------------------------------------------------------------------- Wed Dec 21 13:45:26 UTC 2011 - coolo@suse.com diff --git a/xemacs.spec b/xemacs.spec index 6cd596b..a98e88d 100644 --- a/xemacs.spec +++ b/xemacs.spec @@ -1,7 +1,7 @@ # # spec file for package xemacs # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,7 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - Name: xemacs BuildRequires: autoconf BuildRequires: canna-devel @@ -117,6 +116,7 @@ macros. Requires: xemacs == %{version}-%{release} Requires: xemacs-packages-el Summary: Emacs-Lisp source files for XEmacs +Group: Productivity/Editors/Emacs %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif @@ -131,6 +131,7 @@ at the Lisp sources. %package -n xemacs-info Requires: xemacs-packages-info Summary: Info Files for XEmacs +Group: Productivity/Editors/Emacs %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif @@ -197,6 +198,16 @@ chmod -R u+w * # byte compiled: find . | xargs touch -r . +# make sure that the binaries work (pagesize on build must be the same as on target, bnc#726769) +%if %suse_version >= 1110 +%ifarch ppc ppc64 ia64 +%if %(getconf PAGESIZE) != 65536 +%error "Error: wrong build host, PAGESIZE must be 65536" +exit 1 +%endif +%endif +%endif + %build #libtoolize --force #autoreconf --force --install --verbose