rpms/eclipse/devel eclipse.sh.in,NONE,1.1 eclipse.spec,1.684,1.685

Andrew Overholt overholt at fedoraproject.org
Fri Oct 30 12:32:53 UTC 2009


Author: overholt

Update of /cvs/pkgs/rpms/eclipse/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13115

Modified Files:
	eclipse.spec 
Added Files:
	eclipse.sh.in 
Log Message:
* Fri Oct 30 2009 Andrew Overholt <overholt at redhat.com> 1:3.5.1-13
- Make /usr/bin/eclipse a wrapper script due to rhbz#531675 (e.o#290395).


--- NEW FILE eclipse.sh.in ---
#!/bin/sh

# Work around bugs.eclipse.org/290395
export GDK_NATIVE_WINDOWS=true

/usr/lib/eclipse/eclipse "$@"

Index: eclipse.spec
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse/devel/eclipse.spec,v
retrieving revision 1.684
retrieving revision 1.685
diff -u -p -r1.684 -r1.685
--- eclipse.spec	26 Oct 2009 13:28:56 -0000	1.684
+++ eclipse.spec	30 Oct 2009 12:32:52 -0000	1.685
@@ -27,12 +27,13 @@ Epoch:  1
 Summary:        An open, extensible IDE
 Name:           eclipse
 Version:        %{eclipse_majmin}.%{eclipse_micro}
-Release:        12%{?dist}
+Release:        13%{?dist}
 License:        EPL
 Group:          Text Editors/Integrated Development Environments (IDE)
 URL:            http://www.eclipse.org/
 Source0:        %{download_url}eclipse-build-0.4.0RC0.tar.gz
 Source1:        %{download_url}eclipse-R3_5_1-fetched-src.tar.bz2
+Source2:        eclipse.sh.in
 Source17:       efj.sh.in
 # This file contains the types of files we'd like to extract from the jars
 # when using the FileInitializer
@@ -395,6 +396,13 @@ SWT_VERSION=$SWT_MAJ_VER$SWT_MIN_VER
 
 ant -DdestDir=$RPM_BUILD_ROOT -Dprefix=/usr -DbuildArch=%{eclipse_arch} -Dmultilib=true install
 
+# Set GDK_NATIVE_WINDOWS=true
+# https://bugzilla.redhat.com/531675 (https://bugs.eclipse.org/290395)
+rm $RPM_BUILD_ROOT/%{_bindir}/%{name}
+install -p -D -m0755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}
+sed --in-place "s:/usr/lib:%{_libdir}:" \
+  $RPM_BUILD_ROOT%{_bindir}/%{name}
+  
 cp $RPM_BUILD_ROOT%{_libdir}/eclipse/eclipse.ini eclipse.ini-real
 # Some directories we need
 sdkDir=$RPM_BUILD_ROOT%{_libdir}/%{name}
@@ -1078,6 +1086,9 @@ fi
 #%{_libdir}/%{name}/configuration/org.eclipse.equinox.source
 
 %changelog
+* Fri Oct 30 2009 Andrew Overholt <overholt at redhat.com> 1:3.5.1-13
+- Make /usr/bin/eclipse a wrapper script due to rhbz#531675 (e.o#290395).
+
 * Mon Oct 26 2009 Andrew Overholt <overholt at redhat.com> 1:3.5.1-12
 - Remove old TODO items.
 




More information about the fedora-extras-commits mailing list