rpms/eclipse/devel eclipse.spec,1.561,1.562

Andrew Overholt (overholt) fedora-extras-commits at redhat.com
Thu Jul 24 20:08:02 UTC 2008


Author: overholt

Update of /cvs/pkgs/rpms/eclipse/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15968

Modified Files:
	eclipse.spec 
Log Message:
More non-upstream arch fixes.


Index: eclipse.spec
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse/devel/eclipse.spec,v
retrieving revision 1.561
retrieving revision 1.562
diff -u -r1.561 -r1.562
--- eclipse.spec	24 Jul 2008 00:54:57 -0000	1.561
+++ eclipse.spec	24 Jul 2008 20:07:17 -0000	1.562
@@ -339,19 +339,20 @@
 zip -q -9 -r ../../plugins/org.eclipse.platform/launchersrc.zip library
 popd
 
-# use our system-installed javadocs
-sed --in-place "s|http://java.sun.com/j2se/1.4.2/docs/api|%{_datadir}/javadoc/java|" \
+# Use our system-installed javadocs, reference only what we built, and
+# don't like to osgi.org docs (FIXME:  maybe we should package them?)
+sed -i -e "s|http://java.sun.com/j2se/1.4.2/docs/api|%{_datadir}/javadoc/java|" \
+   -e "/osgi\.org/d" \
    plugins/org.eclipse.platform.doc.isv/platformOptions.txt
-sed --in-place "s|http://java.sun.com/j2se/1.5/docs/api|%{_datadir}/javadoc/java|" \
-   plugins/org.eclipse.jdt.doc.isv/jdtaptOptions.txt                     \
+sed -i -e "s|http://java.sun.com/j2se/1.5/docs/api|%{_datadir}/javadoc/java|" \
+   -e "s/win32.win32.x86/gtk.linux.%{eclipse_arch}/" \
+   plugins/org.eclipse.jdt.doc.isv/jdtaptOptions.txt \
    plugins/org.eclipse.jdt.doc.isv/jdtOptions.txt
-sed --in-place "s|http://java.sun.com/j2se/1.4/docs/api|%{_datadir}/javadoc/java|" \
-   plugins/org.eclipse.pde.doc.user/pdeOptions.txt                       \
+sed -i -e "s|http://java.sun.com/j2se/1.4/docs/api|%{_datadir}/javadoc/java|" \
+   -e "s/motif.linux.x86/gtk.linux.%{eclipse_arch}/" \
+   plugins/org.eclipse.pde.doc.user/pdeOptions.txt \
    plugins/org.eclipse.pde.doc.user/pdeOptions
 
-# FIXME:  package these?
-grep -rl bundles.osgi.org * | xargs sed -i "/bundles.osgi.org/d"
-
 #%patch14 -p0
 
 pushd plugins/org.eclipse.pde.build
@@ -420,6 +421,7 @@
 # Move all of the s390x directories and files to ppc64 or sparc{,64} or alpha dirs and replace 
 # the s390x strings with ppc64, etc.
 %ifarch ppc64 sparc sparcv9 sparc64 alpha
+  cp -rp features/org.eclipse.platform/about_files/linux.gtk.{x86,%{_arch}}
   for f in $(find -name \*s390x\*); do
     tofile=$(echo $f | sed "s/s390x/%{_arch}/")
     for g in $(find -type f $f); do
@@ -455,17 +457,15 @@
     done
   popd
   IFS=$OLDIFS
-%endif 
 
-# libsconfig on the platform on which we're building
-sed -i "s/hpux-motif-PA_RISC/linux-gtk-%{_arch}/" build.xml
+%endif 
 
 # Don't build for non-linux,gtk,%%{_arch} targets
 pushd features
 for f in */build.xml; do
-    for platform in win32 macosx hpux solaris aix qnx motif; do
+    for platform in win32 macosx carbon hpux solaris aix qnx motif; do
       sed -i "/<ant antfile=\"build.xml\" dir=.*$platform.*target=\"/,/<\/ant>/ d" $f
-      sed -i "/idReplacer/ s/org.eclipse\.\([a-z0-9A-Z_]\+\.\)\+$platform\(\.[a-z0-9A-Z_]\+\)*:0.0.0,[0-9\.Iv\-]\+,//g" $f
+      sed -i "/idReplacer/ s/org.eclipse\.\([a-z0-9A-Z_]\+\.\)\+$platform\(\.[a-z0-9A-Z_]\+\)*:0.0.0,[0-9\.Ivf\-]\+,//g" $f
     done
 done
 popd
@@ -474,14 +474,14 @@
   features/org.eclipse.rcp/build.xml | awk '{ print $3 }' | awk -F . \
   '{ print $NF }' | sort -u | tr -d '"' | tr "\n" " ")
 
-arches=$(echo $arches | sed s/%{_arch}//)
+arches=$(echo $arches | sed s/%{eclipse_arch}//)
 
 # Don't build for arches other than the one on which we're building
 pushd features
 for f in */build.xml; do
     for arch in $arches; do
-      sed -i "/<ant antfile=\"build.xml\" dir=.*$arch.*target=\"/,/<\/ant>/ d" $f
-      sed -i "/idReplacer/ s/org.eclipse\.\([a-z0-9A-Z_]\+\.\)\+$arch\(\.[a-z0-9A-Z_]\+\)*:0.0.0,[0-9I\.v\-]\+,//g" $f
+      sed -i "/<ant antfile=\"build.xml\" dir=.*$arch\" target=\"/,/<\/ant>/ d" $f
+      sed -i "/idReplacer/ s/org.eclipse\.\([a-z0-9A-Z_]\+\.\)\+$arch:0.0.0,[0-9I\.vf\-]\+,//g" $f
     done
 done
 popd




More information about the fedora-extras-commits mailing list