base 32 bit sparc arches on ppc

This commit is contained in:
Dennis Gilmore 2009-03-30 21:37:12 +00:00
parent 6f3d1c8481
commit 0e1249a258
1 changed files with 25 additions and 3 deletions

View File

@ -29,7 +29,7 @@ Epoch: 1
Summary: An open, extensible IDE
Name: eclipse
Version: %{eclipse_majmin}.%{eclipse_micro}
Release: 5%{?dist}
Release: 6%{?dist}
License: EPL
Group: Text Editors/Integrated Development Environments (IDE)
URL: http://www.eclipse.org/
@ -400,7 +400,7 @@ sed -i "s/\(rootFileslinux_gtk_\)ppc64/\1ppc128/g" \
%ifnarch %{ix86} x86_64
cp -rp features/org.eclipse.platform/about_files/linux.gtk.{x86,%{_arch}}
%endif
%ifarch ppc64 sparc sparcv9 sparc64 alpha
%ifarch ppc64 sparc64 alpha
for f in $(find -name \*s390x\*); do
tofile=$(echo $f | sed "s/s390x/%{_arch}/")
cp -rp $f $tofile
@ -418,6 +418,25 @@ IFS='
done
IFS=$OLDIFS
%endif
#base 32 bit sparc on ppc
%ifarch sparc sparcv9
for f in $(find -name \*ppc\*); do
tofile=$(echo $f | sed "s/ppc/%{_arch}/")
cp -rp $f $tofile
for g in $(find $tofile -type f); do
sed -i "s/ppc/%{_arch}/g" $g
done
done
OLDIFS=$IFS
IFS='
'
for f in $(find -type f ! -name \*.java -a ! -name feature.xml -a ! -name \*.gif \
-a ! -name \*.png -a ! -name \*.htm* -a ! -name \*.jar -a ! -name \
\*.exe -a ! -name \*.pm -a ! -name \*.jpg -a ! -name \*win32\* | grep -v win32); do
sed -i -e "s/ppc/%{_arch}/g" $f
done
IFS=$OLDIFS
%endif
%ifarch ppc64 sparc sparcv9 sparc64 alpha ia64
IFS='
@ -1276,7 +1295,7 @@ fi
%{_libdir}/%{name}/notice.html
%{_libdir}/%{name}/epl-v10.html
%{_libdir}/%{name}/links
%ifnarch ppc
%ifnarch ppc sparc sparcv9
%{_libdir}/%{name}/about.html
%endif
%ifarch x86_64
@ -1481,6 +1500,9 @@ fi
#%{_libdir}/%{name}/configuration/org.eclipse.equinox.source
%changelog
* Mon Mar 30 2009 Dennis Gilmore <dennis@ausil.us> 1:3.4.2-6
- base sparcv9 and sparc on ppc
* Fri Mar 20 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-5
- Disable XULRunner-specific patch.
- Make pdebuild script to not generate p2 repo.