Andrew Overholt d5b2034
# TODO:
Andrew Overholt d5b2034
# - look at startup script and launcher patches
Andrew Overholt 7959f75
# - get Ganymede update site pre-configured (https://bugs.eclipse.org/249133)
Andrew Overholt 7f652ce
# - investigate bi-arch requirements
Andrew Overholt 079a00b
# - see why about.html isn't being copied on ppc
07c3123
# - fix ant libs
Ben Konrath 8342665
Epoch:  1
cvsdist 38d0d0c
cvsdist 38d0d0c
%define eclipse_major   3
255430c
%define eclipse_minor   5
cvsdist 38d0d0c
%define eclipse_majmin  %{eclipse_major}.%{eclipse_minor}
255430c
%define eclipse_micro   0
255430c
%define swtver          3.5.0.v3538
Andrew Overholt b5482d5
%define initialize      1
cvsdist 38d0d0c
Andrew Overholt 65c016b
# All arches line up between Eclipse and Linux kernel names except i386 -> x86
Andrew Overholt f2593e9
%ifarch %{ix86}
Andrew Overholt f2593e9
%define eclipse_arch    x86
Andrew Overholt f2593e9
%else
Andrew Overholt f2593e9
%define eclipse_arch   %{_arch}
Andrew Overholt f2593e9
%endif
Andrew Overholt f2593e9
Andrew Overholt 7959f75
# FIXME:  update java packaging guidelines for this.  See
Andrew Overholt 7959f75
# fedora-devel-java-list discussion in September 2008.
Andrew Overholt e6ab17d
#
Andrew Overholt 7959f75
# Prevent brp-java-repack-jars from being run.
Andrew Overholt 7959f75
%define __jar_repack 0
Andrew Overholt 7959f75
Andrew Overholt fad60dc
Summary:        An open, extensible IDE
cvsdist 38d0d0c
Name:           eclipse
Andrew Overholt 8273c16
Version:        %{eclipse_majmin}.%{eclipse_micro}
1c43f0e
Release:        0.1.11%{?dist}
eec3b54
License:        EPL
cvsdist 38d0d0c
Group:          Text Editors/Integrated Development Environments (IDE)
cvsdist 38d0d0c
URL:            http://www.eclipse.org/
255430c
Source0:        http://download.eclipse.org/eclipse/downloads/drops/I20090401-1325/eclipse-sourceBuild-srcIncluded-I20090401-1325.zip
cvsdist 38d0d0c
Source2:        %{name}.desktop
Andrew Overholt d5b2034
#Source3:        eclipse.in
Andrew Overholt 3499229
# cvs -d :pserver:anonymous@sources.redhat.com:/cvs/eclipse export \
c11f0f3
#   -r fedoraeclipse-3_4_2 branding/org.fedoraproject.ide.platform
Andrew Overholt 3499229
# cd branding
c11f0f3
# zip -r org.fedoraproject.ide.platform-3.4.2.zip \
Andrew Overholt 3499229
#   org.fedoraproject.ide.platform
255430c
Source4:        org.fedoraproject.ide.platform-3.4.2.zip
Andrew Overholt d556b20
# cvs -d :pserver:anonymous@sources.redhat.com:/cvs/eclipse export \
Andrew Overholt d556b20
#   -r fedoraeclipsefeature-1_0_0 branding/org.fedoraproject.ide-feature
Andrew Overholt d556b20
# cd branding
Andrew Overholt d556b20
# zip -r org.fedoraproject.ide.feature-1.0.0.zip \
Andrew Overholt d556b20
#   org.fedoraproject.ide-feature
Andrew Overholt d556b20
Source5:        org.fedoraproject.ide.feature-1.0.0.zip
Ben Konrath 56f70b7
Source16:       %{name}-copy-platform.sh
Ben Konrath 2987a9c
Source17:       efj.sh.in
Andrew Overholt 65c016b
# This file contains the types of files we'd like to extract from the jars
Andrew Overholt 65c016b
# when using the FileInitializer
Andrew Overholt fd64f0d
Source19:       %{name}-filenamepatterns.txt
Andrew Overholt 32f425f
# cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse co equinox-incubator/org.eclipse.equinox.initializer
Andrew Overholt e6ab17d
# tar cjf eclipse-fileinitializerapp.tar.bz2 equinox-incubator/
Andrew Overholt 32f425f
# (generated 2006-11-01 18:48 UTC)
Andrew Overholt 32f425f
Source20:       %{name}-fileinitializerapp.tar.bz2
Andrew Overholt 0077196
# Script to wrap PDE Build calls for bundle builds
Andrew Overholt 0077196
Source21:       %{name}-pdebuild.sh
Andrew Overholt d5b2034
# config.ini to run the director for provisioning the installation
Andrew Overholt d5b2034
Source22:       %{name}-config.ini.director
Andrew Overholt d5b2034
Source24:       fetch-ecf.sh
Andrew Overholt d5b2034
# This was fetched using the above script.
Andrew Overholt d5b2034
# We will eventually have an eclipse-ecf package but since the ECF
Andrew Overholt d5b2034
# filetransfer bits that are part of the SDK actually require the SDK >=
Andrew Overholt d5b2034
# 3.4 to build, I'm going to build them here and have them be owned by
Andrew Overholt d5b2034
# the SDK packages for now. -- overholt, 2008-07-07
Andrew Overholt d5b2034
Source25:       ecf-filetransfer-v20080611-1715.tar.bz2
Andrew Overholt d5b2034
# Create a simple feature for building ECF's filetransfer plugins
Andrew Overholt d5b2034
Source26:       ecf-filetransfer-feature.xml
Andrew Overholt d5b2034
Source27:       ecf-filetransfer-build.properties
Andrew Overholt 0994b94
# This script copies the platform sub-set of the SDK for generating metadata
Andrew Overholt 0994b94
Source28:       %{name}-mv-Platform.sh
Andrew Overholt 8db956b
# Test feature and plugins
Andrew Overholt 8db956b
# cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse co equinox-incubator/org.eclipse.equinox.initializer
Andrew Overholt 8db956b
# mkdir %{name}-%{version}-testframework; cd %{name}-%{version}-testframework
Andrew Overholt 8db956b
# cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse export -r R3_4 \
Andrew Overholt 8db956b
#   org.eclipse.test \
Andrew Overholt 8db956b
#   org.eclipse.test.performance \
Andrew Overholt 8db956b
#   org.eclipse.test-feature \
Andrew Overholt 8db956b
#   org.eclipse.ant.optional.junit
Andrew Overholt 8db956b
# tar cjf %{name}-%{version}-testframework.tar.bz2 \
Andrew Overholt 8db956b
#   %{name}-%{version}-testframework
07c3123
# (generated 2008-10-03)
255430c
Source30:       %{name}-3.4.2-testframework.tar.bz2
Ben Konrath 9dbdca5
Andrew Overholt 9be454c
# Build swttools.jar before generation on 64-bit platforms.
Andrew Overholt 9be454c
# Build SWT native libraries
Andrew Overholt a1ebed4
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=90364
Andrew Overholt 9be454c
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=221908
Andrew Overholt 9be454c
# https://bugs.eclipse.org/bugs/attachment.cgi?id=105593
Andrew Overholt 9be454c
Patch4:         %{name}-buildswtnatives.patch
Andrew Overholt 9be454c
Patch32:        %{name}-compilelibs.patch
Andrew Overholt 9be454c
Andrew Overholt 65c016b
# This does two things:
Andrew Overholt 65c016b
# 1. allows the launcher to be in /usr/bin and
Andrew Overholt 65c016b
# 2. ensures that the OSGi configuration directory
Andrew Overholt 65c016b
#    (which contains the JNI .sos) is in %{_libdir}
Andrew Overholt 65c016b
# We should investigate whether or not this can go upstream
Andrew Overholt d5b2034
#Patch12:        %{name}-launcher-set-install-dir-and-shared-config.patch
Ben Konrath 5037e9d
# generic releng plugins that can be used to build plugins
Andrew Overholt e6ab17d
# see this thread for details:
Ben Konrath 5037e9d
# https://www.redhat.com/archives/fedora-devel-java-list/2006-April/msg00048.html
Ben Konrath 8342665
Patch15:        %{name}-pde.build-add-package-build.patch
Andrew Overholt 4fd0cfa
Patch24:        %{name}-add-ppc64-sparc64-s390-s390x.patch
Andrew Overholt 4fd0cfa
Patch28:        %{name}-add-ppc64-sparc64-s390-s390x-2.patch
Andrew Overholt 4fd0cfa
Patch30:        %{name}-addfragmentsforotherplatforms.patch
Andrew Overholt c9ccf4f
Patch38:        %{name}-addrootfiles.patch
Ben Konrath da1b743
#FIXME: file a bug upstream
Ben Konrath da1b743
Patch26:        %{name}-launcher-fix-java-home.patch
Andrew Overholt d5b2034
# Default max heap size too low for lots of people.  Bump to 512 MB.
Andrew Overholt 1836a47
# Max perm size:
Andrew Overholt a3c9ae6
# https://bugzilla.redhat.com/show_bug.cgi?id=352361
Andrew Overholt 1836a47
# JVM crash:
Andrew Overholt 1836a47
# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6614100
Andrew Overholt 1836a47
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=214092
Michal Nowak db03349
# https://bugzilla.redhat.com/show_bug.cgi?id=461860 (mnowak)
Andrew Overholt 1836a47
Patch29:        %{name}-memorypermsizeandjvmcrash.patch
Andrew Overholt 65c016b
6a5869b
Patch31:	%{name}-ia64-packaging.patch
Andrew Overholt d5b2034
Andrew Overholt d5b2034
# Make ECF bundles have the same qualifier as they do upstream
Andrew Overholt d5b2034
Patch35:	%{name}-ecf-qualifier.patch
Andrew Overholt d5b2034
Andrew Overholt d5b2034
# Don't pack the icu4j source bundle.  Can go away when we re-build
Andrew Overholt d5b2034
# icu4j against a 3.4 SDK.
Andrew Overholt d5b2034
Patch36:	%{name}-dontpackicu4jsource.patch
Andrew Overholt d5b2034
Andrew Overholt d5b2034
# Our dependent JARs have different signatures than the ones included
Andrew Overholt d5b2034
# upstream so remove the signatures in the manifests
Andrew Overholt d5b2034
Patch37:	%{name}-nojarsignatures.patch
Andrew Overholt 3503180
Andrew Overholt 7889e5c
## Back-port patches from 3.4.x stream.  These will be in 3.4.1.
Andrew Overholt 7889e5c
## https://bugs.eclipse.org/bugs/show_bug.cgi?id=242632
Andrew Overholt 7889e5c
#Patch39:        %{name}-profilesync-e.o242632.patch
Andrew Overholt 7889e5c
#Patch40:        %{name}-profilesync-e.o242632-2.patch
Andrew Overholt 7889e5c
Andrew Overholt 8db956b
# Remove win32 fragment from test feature
Andrew Overholt 8db956b
Patch41:        %{name}-nowin32testfragment.patch
Andrew Overholt 8db956b
Andrew Overholt 8db956b
# Some fixes for library.xml
Andrew Overholt 8db956b
# FIXME:  submit upstream
Andrew Overholt 8db956b
Patch42:        %{name}-tests-libraryXml.patch
Andrew Overholt 8db956b
07c3123
Patch43:		%{name}-osgi-classpath.patch
34e7cc1
Patch44:		%{name}-fix-javahome64.patch
07c3123
255430c
# TODO fix build.xml generation
255430c
Patch46:        %{name}-platform_build.patch
255430c
# TODO fix customBuildCallback
255430c
Patch47:        %{name}-jdt_launch-customBuild.patch
255430c
43ecf62
# Since we're building against XULRunner, build using XR flags
43ecf62
# https://bugs.eclipse.org/226356
43ecf62
# https://bugs.eclipse.org/bugs/attachment.cgi?id=131059
43ecf62
# At present, libxul.pc contains -lxpcomglue_s.  Chris Aillon and myself think
43ecf62
# it should perhaps be -lxpcomglue.  This patch uses that instead but will
43ecf62
# be replaced with the former when libxul.pc is fixed.
43ecf62
# https://bugs.eclipse.org/bugs/attachment.cgi?id=131060
43ecf62
Patch48:        %{name}-swt-buildagainstxulrunner.patch
43ecf62
# Work with changed interface in XULRunner 1.9.1
43ecf62
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=268651
43ecf62
# https://bugs.eclipse.org/bugs/attachment.cgi?id=130611
43ecf62
Patch49:        %{name}-swt-xulrunner191.patch
43ecf62
Andrew Overholt 65c016b
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist 38d0d0c
BuildRequires:  ant
cvsdist 38d0d0c
BuildRequires:  jpackage-utils >= 0:1.5, make, gcc
Andrew Overholt daae71c
BuildRequires:  gnome-vfs2-devel
Andrew Overholt daae71c
BuildRequires:  gtk2-devel
Andrew Overholt daae71c
BuildRequires:  glib2-devel
Andrew Overholt 2b55017
BuildRequires:  libgnome-devel
Andrew Overholt 2b55017
BuildRequires:  libgnomeui-devel
Andrew Overholt 935fcc1
BuildRequires:  gcc-c++
9e10751
BuildRequires:  gecko-devel >= 1.9
Andrew Overholt 4ee0006
BuildRequires:  nspr-devel
Andrew Overholt 923a30c
BuildRequires:  libXtst-devel
Ben Konrath 5037e9d
BuildRequires:  mesa-libGL-devel
Ben Konrath 5037e9d
BuildRequires:  mesa-libGLU-devel
Andrew Overholt 2104416
BuildRequires:  cairo >= 1.0
0c750f7
BuildRequires:  unzip
255430c
BuildRequires:  icu4j-eclipse >= 4.0.1
Andrew Overholt 9827f38
BuildRequires:  tomcat5-jasper-eclipse >= 5.5.26-1.5
255430c
BuildRequires:  tomcat6-servlet-2.5-api
Ben Konrath 57abe09
BuildRequires:  desktop-file-utils
Ben Konrath 8e5a586
BuildRequires:  java-devel >= 1.6.0
Andrew Overholt 0dd3e8b
BuildRequires:  java-javadoc
Ben Konrath 1aa224c
BuildRequires:  libXt-devel
cvsdist 38d0d0c
Andrew Overholt 56ebf50
BuildRequires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging ant-apache-bsf ant-commons-net
Andrew Overholt 7d8b6e1
BuildRequires: ant-javamail ant-jdepend ant-junit ant-nodeps ant-swing ant-trax ant-jsch
255430c
BuildRequires: jsch >= 0:0.1.41
Andrew Overholt afd8c47
BuildRequires: jakarta-commons-beanutils jakarta-commons-collections jakarta-commons-digester jakarta-commons-dbcp jakarta-commons-fileupload jakarta-commons-launcher jakarta-commons-modeler jakarta-commons-pool
Andrew Overholt 2f978e0
BuildRequires: jakarta-commons-el >= 1.0-9
Andrew Overholt afd8c47
BuildRequires: jakarta-commons-logging >= 1.0.4-6jpp.3
a466bbe
BuildRequires: jakarta-commons-codec
a466bbe
BuildRequires: jakarta-commons-httpclient
Andrew Overholt 8572c32
BuildRequires: mx4j >= 2.1
Andrew Overholt 11c643d
BuildRequires: jetty >= 5.1.14-1.6
Andrew Overholt 7889e5c
BuildRequires: lucene >= 2.3.1-3.4
Andrew Overholt 7889e5c
BuildRequires: lucene-contrib >= 2.3.1-3.4
Andrew Overholt e6ab17d
BuildRequires: regexp
Ben Konrath bfdd96b
BuildRequires: junit >= 3.8.1-3jpp
Ben Konrath 619a6b2
BuildRequires: junit4
b2a33f5
BuildRequires: sat4j >= 2.0.3
Andrew Overholt d5b2034
BuildRequires: objectweb-asm
cvsdist df631d8
cvsdist df631d8
%description
Andrew Overholt 4fd0cfa
The Eclipse platform is designed for building integrated development
Andrew Overholt 4fd0cfa
environments (IDEs), server-side applications, desktop applications, and
Andrew Overholt 4fd0cfa
everything in between.
cvsdist 38d0d0c
Andrew Overholt d5b2034
%package     swt
Andrew Overholt 65c016b
Summary:        SWT Library for GTK+-2.0
Ben Konrath 9dbdca5
Group:          Text Editors/Integrated Development Environments (IDE)
Andrew Overholt 7b4ca0d
# %{_libdir}/java directory owned by jpackage-utils
Andrew Overholt 7b4ca0d
Requires:       jpackage-utils
Andrew Overholt 65c016b
Requires:       gtk2
9e10751
Requires:       gecko-libs >= 1.9
Ben Konrath 8342665
Conflicts:      mozilla
Andrew Overholt d5b2034
Provides:       libswt3-gtk2 = 1:%{version}-%{release}
Andrew Overholt d5b2034
# The 20 is more than the currently (2008-06-25) latest 3.3.2 package
Andrew Overholt d5b2034
# but I want to leave some room in case we need to do an F9 update.
Andrew Overholt d5b2034
Obsoletes:       libswt3-gtk2 < 1:3.3.2-20
Ben Konrath 9dbdca5
Andrew Overholt d5b2034
%description swt
Andrew Overholt 65c016b
SWT Library for GTK+-2.0.
Ben Konrath 9dbdca5
Ben Konrath 9dbdca5
%package        rcp
Ben Konrath 9dbdca5
Summary:        Eclipse Rich Client Platform
Ben Konrath 9dbdca5
Group:          Development/Languages
Andrew Overholt d5b2034
Requires:       %{name}-swt = %{epoch}:%{version}-%{release}
Andrew Overholt d5b2034
# FIXME:  investigate.  Can we just add a %{arch} to the above?
Andrew Overholt d5b2034
## This file-level requirement is for the bi-arch multilib case
Andrew Overholt d5b2034
#Requires: %{_libdir}/%{name}/plugins/org.eclipse.swt.gtk.linux.%{eclipse_arch}_%{swtver}.jar
255430c
Requires:       icu4j-eclipse >= 4.0.1
Ben Konrath 8e5a586
Requires:       java >= 1.6.0
Ben Konrath 9dbdca5
Ben Konrath 9dbdca5
%description    rcp
Ben Konrath 9dbdca5
Eclipse Rich Client Platform
Ben Konrath 9dbdca5
cvsdist 38d0d0c
%package        platform
cvsdist 38d0d0c
Summary:        Eclipse platform common files
cvsdist 38d0d0c
Group:          Text Editors/Integrated Development Environments (IDE)
Andrew Overholt 65c016b
Requires:   %{name}-rcp = %{epoch}:%{version}-%{release}
Andrew Overholt d5b2034
# FIXME:  investigate.  Can we just add a %{arch} to the above?
Andrew Overholt d5b2034
## This file-level requirement is for the bi-arch multilib case
Andrew Overholt d5b2034
#Requires: %{_libdir}/%{name}/plugins/org.eclipse.swt.gtk.linux.%{eclipse_arch}_%{swtver}.jar
Andrew Overholt 56ebf50
Requires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging ant-apache-bsf ant-commons-net
Andrew Overholt 7d8b6e1
Requires: ant-javamail ant-jdepend ant-junit ant-nodeps ant-swing ant-trax ant-jsch
Andrew Overholt afd8c47
Requires: jakarta-commons-beanutils jakarta-commons-collections jakarta-commons-digester jakarta-commons-dbcp jakarta-commons-fileupload jakarta-commons-launcher jakarta-commons-modeler jakarta-commons-pool
Andrew Overholt 2f978e0
Requires: jakarta-commons-el >= 1.0-9
Andrew Overholt afd8c47
Requires: jakarta-commons-logging >= 1.0.4-6jpp.3
Andrew Overholt 8572c32
Requires: mx4j >= 2.1
Andrew Overholt 9827f38
Requires: tomcat5-jasper-eclipse >= 5.5.26-1.5
255430c
Requires: tomcat6-servlet-2.5-api > 6.0.18-9.1
Andrew Overholt 11c643d
Requires: jetty >= 5.1.14-1.6
255430c
Requires: jsch >= 0.1.41
Andrew Overholt 7889e5c
Requires: lucene >= 2.3.1-3.4
Andrew Overholt 7889e5c
Requires: lucene-contrib >= 2.3.1-3.4
Ben Konrath b6b8fb1
Requires: regexp
b2a33f5
Requires: sat4j >= 2.0.3
Andrew Overholt d5b2034
Provides: eclipse-cvs-client = 1:%{version}-%{release}
Andrew Overholt d5b2034
Obsoletes: eclipse-cvs-client < 1:3.3.2-20
cvsdist 38d0d0c
cvsdist 38d0d0c
%description    platform
Ben Konrath de36359
The Fedora Eclipse Platform is the base of all IDE plugins.  This does not include the
Andrew Overholt 65c016b
Java Development Tools or the Plugin Development Environment.
cvsdist 38d0d0c
cvsdist 38d0d0c
%package        jdt
Andrew Overholt 65c016b
Summary:        Eclipse Java Development Tools
cvsdist 38d0d0c
Group:          Text Editors/Integrated Development Environments (IDE)
Andrew Overholt bfd4e0b
Requires:       %{name}-platform = %{epoch}:%{version}-%{release}
Ben Konrath 014de59
Requires:       %{name}-cvs-client = %{epoch}:%{version}-%{release}
9ef820f
Requires:       junit >= 3.8.1-3jpp
Ben Konrath 619a6b2
Requires:       junit4
a466bbe
Requires:       jakarta-commons-codec
a466bbe
Requires:       jakarta-commons-httpclient
Andrew Overholt 65c016b
Requires:       java-javadoc
Andrew Overholt bc18214
Requires:       java-devel
cvsdist 38d0d0c
cvsdist 38d0d0c
%description    jdt
Andrew Overholt 65c016b
Eclipse Java Development Tools.  This package is required to use Eclipse for
Andrew Overholt 65c016b
developing software written in the Java programming language.
cvsdist 38d0d0c
cvsdist 38d0d0c
%package        pde
Andrew Overholt 65c016b
Summary:        Eclipse Plugin Development Environment
cvsdist 38d0d0c
Group:          Text Editors/Integrated Development Environments (IDE)
Andrew Overholt bdc1e10
Provides:	eclipse
Ben Konrath fd17240
Provides:	eclipse-sdk
Ben Konrath e420f1f
Requires:       %{name}-platform = %{epoch}:%{version}-%{release}
Andrew Overholt 921a570
Requires:       %{name}-jdt = %{epoch}:%{version}-%{release}
Andrew Overholt d5b2034
Requires:       objectweb-asm
Andrew Overholt 0077196
# For PDE Build wrapper script
Andrew Overholt 0077196
Requires:       bash
Andrew Overholt c9ccf4f
Provides:       %{name}-pde-runtime = 1:%{version}-%{release}
Andrew Overholt c9ccf4f
# The 20 is more than the currently (2008-06-25) latest 3.3.2 package
Andrew Overholt c9ccf4f
# but I want to leave some room in case we need to do an F9 update.
Andrew Overholt c9ccf4f
Obsoletes:       %{name}-pde-runtime < 1:3.3.2-20
Andrew Overholt bfd4e0b
Andrew Overholt 3e3ec31
%description    pde
Andrew Overholt 65c016b
Eclipse Plugin Development Environment.  This package is required for
Andrew Overholt 65c016b
developing Eclipse plugins.
Ben Konrath 5037e9d
cvsdist df631d8
%prep
cvsdist 3a48756
%setup -q -c
Andrew Overholt bfd4e0b
Ben Konrath 4382774
sed --in-place "s/java5.home/java.home/" build.xml
07c3123
sed --in-place "s|JavaSE-1.6=|JavaSE-1.6=%{java_home}|" build.xml
Andrew Overholt 9be454c
# Build swttools.jar and native libraries
Andrew Overholt 65c016b
%patch4 -p0
Andrew Overholt 9be454c
%patch32 -p0
Ben Konrath 2987a9c
Ben Konrath cb417cd
# liblocalfile fixes
Ben Konrath cb417cd
sed --in-place "s/JAVA_HOME =/#JAVA_HOME =/" plugins/org.eclipse.core.filesystem/natives/unix/linux/Makefile
Ben Konrath cb417cd
sed --in-place "s/OPT_FLAGS=-O/OPT_FLAGS=-O2 -g/" plugins/org.eclipse.core.filesystem/natives/unix/linux/Makefile
Ben Konrath cb417cd
Ben Konrath 4c0ee09
# launcher patches
Ben Konrath 4c0ee09
rm plugins/org.eclipse.platform/launchersrc.zip
Ben Konrath 4c0ee09
pushd features/org.eclipse.equinox.executable
Andrew Overholt d5b2034
#%patch12 -p0
Ben Konrath da1b743
%patch26 -p0
Andrew Overholt d5b2034
# FIXME:  deal with this
Andrew Overholt d5b2034
## put the configuration directory in an arch-specific location
Andrew Overholt d5b2034
#sed --in-place "s:/usr/lib/eclipse/configuration:%{_libdir}/%{name}/configuration:" library/eclipse.c
Andrew Overholt e6ab17d
## make the eclipse binary relocatable
Andrew Overholt d5b2034
#sed --in-place "s:/usr/share/eclipse:%{_datadir}/%{name}:" library/eclipse.c
Ben Konrath 4c0ee09
zip -q -9 -r ../../plugins/org.eclipse.platform/launchersrc.zip library
Andrew Overholt 99b55e9
popd
255430c
#-e "s|-breakiterator|;../org.eclipse.equinox.util/@dot\n;../org.eclipse.ecf_3.0.0.v20090302-0803.jar\n-breakiterator|" \
255430c
  
Andrew Overholt 5dde140
# Use our system-installed javadocs, reference only what we built, and
Andrew Overholt 5dde140
# don't like to osgi.org docs (FIXME:  maybe we should package them?)
Andrew Overholt 5dde140
sed -i -e "s|http://java.sun.com/j2se/1.4.2/docs/api|%{_datadir}/javadoc/java|" \
Andrew Overholt 5dde140
   -e "/osgi\.org/d" \
255430c
   -e "s|-breakiterator|;../org.eclipse.equinox.util/@dot\n;../org.eclipse.ecf.filetransfer_3.0.0.v20090302-0803.jar\n;../org.eclipse.ecf_3.0.0.v20090302-0803.jar\n-breakiterator|" \
255430c
    plugins/org.eclipse.platform.doc.isv/platformOptions.txt
Andrew Overholt 5dde140
sed -i -e "s|http://java.sun.com/j2se/1.5/docs/api|%{_datadir}/javadoc/java|" \
Andrew Overholt 5dde140
   -e "s/win32.win32.x86/gtk.linux.%{eclipse_arch}/" \
Andrew Overholt 5dde140
   plugins/org.eclipse.jdt.doc.isv/jdtaptOptions.txt \
Ben Konrath 658b6e7
   plugins/org.eclipse.jdt.doc.isv/jdtOptions.txt
Andrew Overholt 5dde140
sed -i -e "s|http://java.sun.com/j2se/1.4/docs/api|%{_datadir}/javadoc/java|" \
Andrew Overholt 5dde140
   -e "s/motif.linux.x86/gtk.linux.%{eclipse_arch}/" \
Andrew Overholt 5dde140
   plugins/org.eclipse.pde.doc.user/pdeOptions.txt \
255430c
   plugins/org.eclipse.pde.doc.user/pdeOptions.txt
Ben Konrath 4c0ee09
Ben Konrath 5037e9d
pushd plugins/org.eclipse.pde.build
Andrew Overholt 65c016b
%patch15
Andrew Overholt d5b2034
sed --in-place "s:/usr/share/eclipse:%{_libdir}/%{name}:" templates/package-build/build.properties
Ben Konrath 5037e9d
popd
Ben Konrath 5037e9d
Andrew Overholt d5b2034
pushd features/org.eclipse.platform
Andrew Overholt c8106f9
# FIXME:  fixed in 3.4.1
Andrew Overholt d5b2034
# Move this file around due a bug in the metadata generator/parser that
Andrew Overholt d5b2034
# can't work with the compiler exclude
Andrew Overholt d5b2034
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=238240
Andrew Overholt d5b2034
cp -p gtk/eclipse.ini{,.orig}
Andrew Overholt d5b2034
%patch29
Andrew Overholt d5b2034
mv gtk/eclipse.ini{,.patched}
Andrew Overholt d5b2034
mv gtk/eclipse.ini{.orig,}
Andrew Overholt d5b2034
popd
Andrew Overholt d5b2034
255430c
# TODO check whether it is needed
255430c
#%patch36
255430c
# TODO rebase
255430c
#%patch37
Andrew Overholt d5b2034
Andrew Overholt 7889e5c
#pushd plugins/org.eclipse.equinox.p2.reconciler.dropins
Andrew Overholt 7889e5c
#%patch39
Andrew Overholt 7889e5c
#popd
Andrew Overholt 7889e5c
#
Andrew Overholt 7889e5c
#pushd plugins/org.eclipse.equinox.p2.touchpoint.eclipse
Andrew Overholt 7889e5c
#%patch40
Andrew Overholt 7889e5c
#popd
Andrew Overholt 7889e5c
6f3d1c8
#pushd "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library"
6f3d1c8
#%patch45 -p3
6f3d1c8
#popd
Andrew Overholt 908669e
Andrew Overholt d5b2034
# Remove signatures for JARs
Andrew Overholt d5b2034
find -iname \*.sf | xargs rm
Andrew Overholt d5b2034
find -iname \*.rsa | xargs rm
Andrew Overholt d5b2034
Ben Konrath 2987a9c
# all output should be directed to stdout
Andrew Overholt 65c016b
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=144942
Ben Konrath 2987a9c
find -type f -name \*.xml -exec sed --in-place -r "s/output=\".*(txt|log).*\"//g" "{}" \;
Ben Konrath 2987a9c
Ben Konrath 619a6b2
# Remove existing .sos and binary launcher
Ben Konrath 5037e9d
find -name \*.so | xargs rm
Ben Konrath 619a6b2
find features/org.eclipse.equinox.executable -type f -name eclipse | xargs rm
Andrew Overholt bfd4e0b
Andrew Overholt ede0f41
# FIXME:  do this as part of Linux distros project
Andrew Overholt d5b2034
#
Andrew Overholt ede0f41
# the swt version is set to HEAD on s390x but shouldn't be
Andrew Overholt 4fd0cfa
# get swt version
Andrew Overholt 4fd0cfa
SWT_MAJ_VER=$(grep maj_ver plugins/org.eclipse.swt/Eclipse\ SWT/common/library/make_common.mak | cut -f 2 -d =)
Andrew Overholt 4fd0cfa
SWT_MIN_VER=$(grep min_ver plugins/org.eclipse.swt/Eclipse\ SWT/common/library/make_common.mak | cut -f 2 -d =)
Andrew Overholt 4fd0cfa
SWT_VERSION=$SWT_MAJ_VER$SWT_MIN_VER
Andrew Overholt 4fd0cfa
swt_frag_ver=$(grep v$SWT_VERSION plugins/org.eclipse.swt.gtk.linux.x86/build.xml | sed "s:.*<.*\"\(.*\)\"/>:\1:")
Andrew Overholt ede0f41
swt_frag_ver_s390x=$(grep "version\.suffix\" value=" plugins/org.eclipse.swt.gtk.linux.s390x/build.xml | sed "s:.*<.*\"\(.*\)\"/>:\1:")
255430c
sed --in-place "s|$swt_frag_ver_s390x|$swt_frag_ver|g" plugins/org.eclipse.swt.gtk.linux.s390x/build.xml \
Andrew Overholt ede0f41
                                                      plugins/org.eclipse.swt.gtk.linux.s390x/META-INF/MANIFEST.MF \
255430c
                                                      plugins/org.eclipse.swt.gtk.linux.s390x.source_3.5.0.HEAD/META-INF/MANIFEST.MF \
255430c
                                                      plugins/org.eclipse.swt.gtk.linux.s390x.source_3.5.0.HEAD/build.xml \
Andrew Overholt ede0f41
                                                      assemble.org.eclipse.sdk.linux.gtk.s390x.xml \
Andrew Overholt 4fd0cfa
						      features/org.eclipse.rcp/build.xml
Andrew Overholt 4fd0cfa
Andrew Overholt 4fd0cfa
# Nasty hack to get suppport for ppc64, sparc{,64} and alpha
Andrew Overholt 4fd0cfa
%patch24 -p1
255430c
# TODO check this patch
255430c
#%patch28
255430c
# TODO and this one
255430c
#%patch30
Andrew Overholt 4fd0cfa
%patch31 -p1
Andrew Overholt c9ccf4f
%patch38
Andrew Overholt 4fd0cfa
Andrew Overholt 4fd0cfa
# replace ppc64 with a fake arch (ppc128) so we don't have duplicate ant targets
Andrew Overholt 4fd0cfa
sed -i "s/\(rootFileslinux_gtk_\)ppc64/\1ppc128/g" \
Andrew Overholt 4fd0cfa
  features/org.eclipse.equinox.executable/target.build.xml
Andrew Overholt ede0f41
Andrew Overholt e6ab17d
# Copy all of the s390x directories and files to ppc64 or sparc{,64} or alpha dirs and replace
Andrew Overholt ede0f41
# the s390x strings with ppc64, etc.
Andrew Overholt 9be454c
%ifnarch %{ix86} x86_64
Andrew Overholt 5dde140
  cp -rp features/org.eclipse.platform/about_files/linux.gtk.{x86,%{_arch}}
Andrew Overholt 9be454c
%endif
255430c
%ifarch ppc64 sparc sparcv9 sparc64 alpha
Andrew Overholt ede0f41
  for f in $(find -name \*s390x\*); do
Andrew Overholt ede0f41
    tofile=$(echo $f | sed "s/s390x/%{_arch}/")
Andrew Overholt 2232d2c
    cp -rp $f $tofile
Andrew Overholt 2232d2c
    for g in $(find $tofile -type f); do
Andrew Overholt 2232d2c
	sed -i "s/s390x/%{_arch}/g" $g
Andrew Overholt ede0f41
    done
Andrew Overholt 4fd0cfa
  done
Andrew Overholt 4fd0cfa
  OLDIFS=$IFS
Andrew Overholt 4fd0cfa
IFS='
Andrew Overholt 4fd0cfa
'
Andrew Overholt 4fd0cfa
  for f in $(find -type f ! -name \*.java -a ! -name feature.xml -a ! -name \*.gif \
Andrew Overholt 4fd0cfa
  -a ! -name \*.png -a ! -name \*.htm* -a ! -name \*.jar -a ! -name \
Andrew Overholt ede0f41
  \*.exe -a ! -name \*.pm -a ! -name \*.jpg -a ! -name \*win32\* | grep -v win32); do
Andrew Overholt ede0f41
   sed -i -e "s/s390x/%{_arch}/g" $f
Andrew Overholt 4fd0cfa
  done
Andrew Overholt 4fd0cfa
  IFS=$OLDIFS
Andrew Overholt 4fd0cfa
%endif
Andrew Overholt 4fd0cfa
Andrew Overholt 4fd0cfa
%ifarch ppc64 sparc sparcv9 sparc64 alpha ia64
Andrew Overholt 4fd0cfa
IFS='
Andrew Overholt 4fd0cfa
'
Andrew Overholt e1cff00
  # Fragments for these arches
Andrew Overholt e1cff00
  rm -rf plugins/org.eclipse.equinox.launcher.gtk.linux.%{_arch}
Andrew Overholt e1cff00
  mv plugins/org.eclipse.equinox.launcher.gtk.linux.{ppc,%{_arch}}
Andrew Overholt 4fd0cfa
  pushd plugins/org.eclipse.equinox.launcher.gtk.linux.%{_arch}
Andrew Overholt 4fd0cfa
    for f in $(find -type f); do
Andrew Overholt 4fd0cfa
      sed -i -e "s/ppc/%{_arch}/g" $f
Andrew Overholt e1cff00
      tofile=$(echo $f | sed "s/ppc/%{_arch}/")
Andrew Overholt e1cff00
      if [ $tofile != $f ]; then
Andrew Overholt e1cff00
        cp -rp $f $tofile
Andrew Overholt e1cff00
      fi
Andrew Overholt 4fd0cfa
    done
Andrew Overholt 4fd0cfa
  popd
Andrew Overholt e1cff00
  rm -rf plugins/org.eclipse.core.filesystem.linux.%{_arch}
Andrew Overholt e1cff00
  mv plugins/org.eclipse.core.filesystem.linux.{ppc,%{_arch}}
Andrew Overholt 4fd0cfa
  pushd plugins/org.eclipse.core.filesystem.linux.%{_arch}
Andrew Overholt 4fd0cfa
    for f in $(find -type f); do
Andrew Overholt 4fd0cfa
      sed -i -e "s/ppc/%{_arch}/g" $f
Andrew Overholt e1cff00
      tofile=$(echo $f | sed "s/ppc/%{_arch}/")
Andrew Overholt e1cff00
      if [ $tofile != $f ]; then
Andrew Overholt e1cff00
        cp -rp $f $tofile
Andrew Overholt e1cff00
      fi
Andrew Overholt 4fd0cfa
    done
Andrew Overholt 4fd0cfa
  popd
Andrew Overholt 4fd0cfa
  IFS=$OLDIFS
Andrew Overholt d5b2034
Andrew Overholt e6ab17d
%endif
Andrew Overholt a30d16a
Andrew Overholt a30d16a
# Don't build for non-linux,gtk,%%{_arch} targets
Andrew Overholt a30d16a
pushd features
Andrew Overholt a30d16a
for f in */build.xml; do
255430c
    for platform in win32 macosx carbon cocoa hpux solaris aix qnx motif; do
Andrew Overholt a30d16a
      sed -i "/<ant antfile=\"build.xml\" dir=.*$platform.*target=\"/,/<\/ant>/ d" $f
Andrew Overholt 5dde140
      sed -i "/idReplacer/ s/org.eclipse\.\([a-z0-9A-Z_]\+\.\)\+$platform\(\.[a-z0-9A-Z_]\+\)*:0.0.0,[0-9\.Ivf\-]\+,//g" $f
Andrew Overholt a30d16a
    done
Andrew Overholt a30d16a
done
Andrew Overholt a30d16a
popd
Andrew Overholt a30d16a
Andrew Overholt a30d16a
arches=$(grep "antfile=\"build.xml\" dir=\".*gtk\.linux\.*" \
Andrew Overholt a30d16a
  features/org.eclipse.rcp/build.xml | awk '{ print $3 }' | awk -F . \
Andrew Overholt a30d16a
  '{ print $NF }' | sort -u | tr -d '"' | tr "\n" " ")
Andrew Overholt a30d16a
Andrew Overholt 5dde140
arches=$(echo $arches | sed s/%{eclipse_arch}//)
Andrew Overholt a30d16a
Andrew Overholt a30d16a
# Don't build for arches other than the one on which we're building
Andrew Overholt a30d16a
pushd features
Andrew Overholt a30d16a
for f in */build.xml; do
Andrew Overholt a30d16a
    for arch in $arches; do
Andrew Overholt 5dde140
      sed -i "/<ant antfile=\"build.xml\" dir=.*$arch\" target=\"/,/<\/ant>/ d" $f
Andrew Overholt 5dde140
      sed -i "/idReplacer/ s/org.eclipse\.\([a-z0-9A-Z_]\+\.\)\+$arch:0.0.0,[0-9I\.vf\-]\+,//g" $f
Andrew Overholt a30d16a
    done
Andrew Overholt a30d16a
done
Andrew Overholt a30d16a
popd
Andrew Overholt ede0f41
Andrew Overholt bfd4e0b
# Symlinks
Andrew Overholt d5b2034
rm plugins/org.sat4j*
255430c
ln -s %{_javadir}/org.sat4j.core* plugins/org.sat4j.core_2.1.0.v20090308.jar
255430c
ln -s %{_javadir}/org.sat4j.pb* plugins/org.sat4j.pb_2.1.0.v20090308.jar
Andrew Overholt d5b2034
Andrew Overholt d5b2034
ASMPLUGINVERSION=$(ls plugins | grep org.objectweb.asm_ | \
Andrew Overholt d5b2034
  sed 's/org.objectweb.asm_//')
Andrew Overholt d5b2034
rm plugins/org.objectweb.asm_$ASMPLUGINVERSION
Andrew Overholt d5b2034
ln -s %{_javadir}/objectweb-asm/asm-all.jar \
Andrew Overholt d5b2034
  plugins/org.objectweb.asm_$ASMPLUGINVERSION
Andrew Overholt bfd4e0b
255430c
# BEGIN ANT ##
Andrew Overholt d5b2034
ANTDIR=plugins/$(ls plugins | grep org.apache.ant_)
Andrew Overholt d5b2034
rm $ANTDIR/lib/*
Andrew Overholt d5b2034
ANTDIR=$ANTDIR/lib
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-antlr.jar $ANTDIR/ant-antlr.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-bcel.jar $ANTDIR/ant-apache-bcel.jar
Andrew Overholt 56ebf50
ln -s %{_javadir}/ant/ant-apache-bsf.jar $ANTDIR/ant-apache-bsf.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-log4j.jar $ANTDIR/ant-apache-log4j.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-oro.jar $ANTDIR/ant-apache-oro.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-regexp.jar $ANTDIR/ant-apache-regexp.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-resolver.jar $ANTDIR/ant-apache-resolver.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-commons-logging.jar $ANTDIR/ant-commons-logging.jar
Andrew Overholt 56ebf50
ln -s %{_javadir}/ant/ant-commons-net.jar $ANTDIR/ant-commons-net.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-jai.jar $ANTDIR/ant-jai.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant.jar $ANTDIR/ant.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-javamail.jar $ANTDIR/ant-javamail.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-jdepend.jar $ANTDIR/ant-jdepend.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-jmf.jar $ANTDIR/ant-jmf.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-jsch.jar $ANTDIR/ant-jsch.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-junit.jar $ANTDIR/ant-junit.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant-launcher.jar $ANTDIR/ant-launcher.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-netrexx.jar $ANTDIR/ant-netrexx.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-nodeps.jar $ANTDIR/ant-nodeps.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-starteam.jar $ANTDIR/ant-starteam.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-stylebook.jar $ANTDIR/ant-stylebook.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-swing.jar $ANTDIR/ant-swing.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-trax.jar $ANTDIR/ant-trax.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-weblogic.jar $ANTDIR/ant-weblogic.jar
255430c
# END ANT ##
Andrew Overholt 65c016b
255430c
#JETTYPLUGINVERSION=$(ls plugins | grep org.mortbay.jetty_5 | sed 's/org.mortbay.jetty_//')
255430c
# TODO fix jetty
255430c
#rm plugins/org.mortbay.jetty_$JETTYPLUGINVERSION
255430c
#ln -s %{_javadir}/jetty/jetty.jar plugins/org.mortbay.jetty_$JETTYPLUGINVERSION
Andrew Overholt 39363de
Ben Konrath 4c0ee09
JUNITVERSION=$(ls plugins | grep org.junit_3 | sed 's/org.junit_//')
Ben Konrath 4c0ee09
build-jar-repository -s -p plugins/org.junit_$JUNITVERSION junit
9ef820f
Ben Konrath 619a6b2
rm plugins/org.junit4/junit.jar
Ben Konrath 619a6b2
ln -s %{_javadir}/junit4.jar plugins/org.junit4/junit.jar
Ben Konrath 619a6b2
Ben Konrath 4c0ee09
# link to the jsch jar
Andrew Overholt d5b2034
JSCHVERSION=$(ls plugins | grep com.jcraft.jsch_ | \
Andrew Overholt d5b2034
  sed 's/com.jcraft.jsch_//')
Andrew Overholt d5b2034
rm plugins/com.jcraft.jsch_*.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/jsch.jar plugins/com.jcraft.jsch_$JSCHVERSION
Ben Konrath 48553a3
Ben Konrath 4c0ee09
# link to the icu4j stuff
Andrew Overholt d5b2034
ICUVERSION=$(ls plugins | grep com.ibm.icu_ | sed 's/com.ibm.icu_//')
Andrew Overholt d5b2034
rm plugins/com.ibm.icu_*.jar
Andrew Overholt c8106f9
ln -s %{_libdir}/eclipse/plugins/com.ibm.icu_*.jar plugins/com.ibm.icu_$ICUVERSION
Ben Konrath 5b61247
Ben Konrath bc52b62
# link to lucene
Andrew Overholt d5b2034
LUCENEVERSION=$(ls plugins | grep org.apache.lucene_ | \
Andrew Overholt d5b2034
  sed 's/org.apache.lucene_//')
Andrew Overholt d5b2034
rm plugins/org.apache.lucene_*
Andrew Overholt d5b2034
ln -s %{_javadir}/lucene.jar plugins/org.apache.lucene_$LUCENEVERSION
Andrew Overholt d5b2034
rm plugins/org.apache.lucene.analysis_*
Andrew Overholt d5b2034
ln -s %{_javadir}/lucene-contrib/lucene-analyzers.jar \
Andrew Overholt d5b2034
  plugins/org.apache.lucene.analysis_$LUCENEVERSION
Ben Konrath f449bd8
Ben Konrath f449bd8
# link to commons-logging
Andrew Overholt d5b2034
COMMONSLOGGINGVERSION=$(ls plugins | grep commons.logging_ | \
Andrew Overholt d5b2034
  sed 's/org.apache.commons.logging_//')
Andrew Overholt d5b2034
rm plugins/org.apache.commons.logging_$COMMONSLOGGINGVERSION
Andrew Overholt d5b2034
ln -s %{_javadir}/commons-logging.jar \
Andrew Overholt d5b2034
  plugins/org.apache.commons.logging_$COMMONSLOGGINGVERSION
Ben Konrath bc52b62
Ben Konrath 491b3aa
# link to commons-el
Andrew Overholt d5b2034
COMMONSELVERSION=$(ls plugins | grep commons.el_ | \
Andrew Overholt d5b2034
  sed 's/org.apache.commons.el_//')
Andrew Overholt d5b2034
rm plugins/org.apache.commons.el_$COMMONSELVERSION
Andrew Overholt d5b2034
ln -s %{_javadir}/commons-el.jar \
Andrew Overholt d5b2034
  plugins/org.apache.commons.el_$COMMONSELVERSION
255430c
  
255430c
# link to commons-codec
255430c
COMMONSCODECVERSION=$(ls plugins | grep commons.codec_ | \
255430c
  sed 's/org.apache.commons.codec_//')
255430c
rm plugins/org.apache.commons.codec_$COMMONSCODECVERSION
255430c
ln -s %{_javadir}/commons-codec.jar \
255430c
  plugins/org.apache.commons.codec_$COMMONSCODECVERSION
255430c
  
6a5869b
# link to commons-httpclient
255430c
COMMONSHTTPVERSION=$(ls plugins | grep commons.httpclient_ | \
255430c
  sed 's/org.apache.commons.httpclient_//')
255430c
rm plugins/org.apache.commons.httpclient_$COMMONSHTTPVERSION
255430c
ln -s %{_javadir}/commons-httpclient.jar \
255430c
  plugins/org.apache.commons.httpclient_$COMMONSHTTPVERSION
Ben Konrath 491b3aa
Ben Konrath 556f63a
# link to jasper
Andrew Overholt d5b2034
JASPERVERSION=$(ls plugins | grep org.apache.jasper_ | \
Andrew Overholt d5b2034
  sed 's/org.apache.jasper_//')
Andrew Overholt d5b2034
rm plugins/org.apache.jasper_*.jar
Andrew Overholt d5b2034
ln -s %{_datadir}/eclipse/plugins/org.apache.jasper_* \
Andrew Overholt d5b2034
   plugins/org.apache.jasper_$JASPERVERSION
Ben Konrath 556f63a
Andrew Overholt afd8c47
# link to servlet-api
Andrew Overholt d5b2034
SERVLETAPIVERSION=$(ls plugins | grep javax.servlet_ | \
Andrew Overholt d5b2034
  sed 's/javax.servlet_//')
Andrew Overholt d5b2034
rm plugins/javax.servlet_*
255430c
ln -s %{_javadir}/tomcat6-servlet-2.5-api.jar \
Andrew Overholt d5b2034
  plugins/javax.servlet_$SERVLETAPIVERSION
255430c
#
Ben Konrath 556f63a
# link to jsp-api
Andrew Overholt d5b2034
JSPAPIVERSION=$(ls plugins | grep javax.servlet.jsp_ | \
Andrew Overholt d5b2034
  sed 's/javax.servlet.jsp_//')
Andrew Overholt d5b2034
rm plugins/javax.servlet.jsp_*
Andrew Overholt d5b2034
ln -s %{_javadir}/tomcat5-jsp-2.0-api.jar \
Andrew Overholt d5b2034
  plugins/javax.servlet.jsp_$JSPAPIVERSION
Ben Konrath 556f63a
Ben Konrath 5b61247
# delete included jars
Ben Konrath ec33055
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=170662
255430c
rm plugins/org.eclipse.swt/extra_jars/exceptions.jar \
Ben Konrath 4c0ee09
   plugins/org.eclipse.osgi/osgi/osgi.cmpn.jar \
Ben Konrath 4c0ee09
   plugins/org.eclipse.osgi/osgi/osgi.core.jar \
Ben Konrath 4c0ee09
   plugins/org.eclipse.osgi/supplement/osgi/osgi.jar
Ben Konrath 5b61247
Andrew Overholt d5b2034
# FIXME:  figure out a way to symlink to something.  Alternatively,
Andrew Overholt d5b2034
# patch out of package.org.eclipse.sdk*.xml.
Andrew Overholt d5b2034
# Delete unnecessary-for-build source JARs
Andrew Overholt d5b2034
#rm plugins/*.source_*.jar
Andrew Overholt d5b2034
Ben Konrath 5037e9d
# make sure there are no jars left
Ben Konrath 55460d9
JARS=""
Ben Konrath 55460d9
for j in $(find -name \*.jar); do
Ben Konrath 55460d9
  if [ ! -L $j ]; then
Andrew Overholt d5b2034
    JARS="$JARS `echo $j`"
Ben Konrath 55460d9
  fi
Ben Konrath 55460d9
done
Ben Konrath 55460d9
if [ ! -z "$JARS" ]; then
Andrew Overholt 65c016b
    echo "These jars should be deleted and symlinked to system jars: $JARS"
Ben Konrath 2987a9c
   #FIXME: enable  exit 1
Ben Konrath 55460d9
fi
Ben Konrath 5037e9d
Andrew Overholt 32f425f
tar jxf %{SOURCE20}
Andrew Overholt 32f425f
Andrew Overholt d5b2034
# ECF filetransfer plugins
255430c
# TODO Enable with correct ecf
255430c
#tar jxf %{SOURCE25}
255430c
#pushd org.eclipse.ecf
255430c
#%patch35
255430c
#mkdir -p features/org.eclipse.ecf.filetransfer-feature
255430c
#pushd features/org.eclipse.ecf.filetransfer-feature
255430c
#cp -p %{SOURCE26} feature.xml
255430c
#cp -p %{SOURCE27} build.properties
255430c
#popd
255430c
#popd
Andrew Overholt 8db956b
Andrew Overholt 8db956b
# Test framework
Andrew Overholt 8db956b
tar jxf %{SOURCE30}
255430c
# TODO regenerate testframework once 3.5 is out
255430c
#pushd %{name}-%{version}-testframework
255430c
pushd %{name}-3.4.2-testframework
Andrew Overholt 8db956b
%patch41
Andrew Overholt d28f580
pushd org.eclipse.test
Andrew Overholt 8db956b
%patch42
Andrew Overholt d28f580
popd
Andrew Overholt 8db956b
sed -i "s:/usr/lib/eclipse:%{_libdir}/%{name}:" org.eclipse.test/library.xml
Andrew Overholt 8db956b
popd
Andrew Overholt d5b2034
255430c
# TODO rediff patch if needed
07c3123
%patch43
34e7cc1
%patch44
255430c
%patch46
255430c
%patch47
255430c
43ecf62
pushd "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library"
43ecf62
%patch48 -p3
43ecf62
popd
43ecf62
pushd plugins/org.eclipse.swt
43ecf62
# TODO remove when it appears in the official build
43ecf62
#%patch49
43ecf62
popd
43ecf62
255430c
sed -i -e 's|org.eclipse.ecf;bundle-version="1.2.0",|org.eclipse.ecf;bundle-version="[3.0.0,4.0.0)",|' \
255430c
	-e 's|org.eclipse.ecf.filetransfer;bundle-version="2.0.0",|org.eclipse.ecf.filetransfer;bundle-version="[3.0.0,4.0.0)",|' \
255430c
	plugins/org.eclipse.equinox.p2.metadata.repository/META-INF/MANIFEST.MF
255430c
07c3123
Andrew Overholt 602cb9d
%build
Andrew Overholt 602cb9d
ORIGCLASSPATH=$CLASSPATH
Andrew Overholt 602cb9d
Ben Konrath 4c0ee09
# Bootstrapping:
Andrew Overholt d5b2034
# 1. Build ecj with javac
Ben Konrath 4c0ee09
ant -DcompilerArg="-encoding ISO-8859-1 -nowarn" -buildfile jdtcoresrc/compilejdtcorewithjavac.xml
Andrew Overholt 602cb9d
Ben Konrath 4c0ee09
# 2. Use this ecj to rebuild itself
9ef820f
export CLASSPATH=`pwd`/jdtcoresrc/ecj.jar:$ORIGCLASSPATH
Ben Konrath 4c0ee09
ant -DcompilerArg="-encoding ISO-8859-1 -nowarn" -buildfile jdtcoresrc/compilejdtcore.xml
Andrew Overholt 602cb9d
255430c
mkdir -p tmp/eclipse/plugins
255430c
cp plugins/org.eclipse.ecf* tmp/eclipse/plugins
255430c
cp plugins/org.apache.commons.codec* tmp/eclipse/plugins
255430c
cp plugins/org.apache.commons.httpclient* tmp/eclipse/plugins
Andrew Overholt 602cb9d
# Build the rest of Eclipse
9ef820f
export CLASSPATH=`pwd`/ecj.jar:$ORIGCLASSPATH
Ben Konrath 5037e9d
export JAVA_HOME=%{java_home}
Andrew Overholt bfd4e0b
ant \
Andrew Overholt bfd4e0b
  -Dnobootstrap=true \
Andrew Overholt f2593e9
  -DinstallOs=linux -DinstallWs=gtk -DinstallArch=%{eclipse_arch} \
Andrew Overholt d5b2034
  -Dlibsconfig=true \
Andrew Overholt d5b2034
  -DJavaSE-1.6=%{_jvmdir}/java/jre/lib/rt.jar \
Andrew Overholt d5b2034
  -DcompilerArg="-encoding ISO-8859-1 -nowarn"
Andrew Overholt e6ab17d
Andrew Overholt d5b2034
# Build the FileInitializer application
Ben Konrath aa30cb9
SDK=$(cd eclipse && pwd)
Ben Konrath 06b780e
mkdir -p home
Ben Konrath 06b780e
homedir=$(cd home && pwd)
Ben Konrath 06b780e
LAUNCHERVERSION=$(ls $SDK/plugins | grep equinox.launcher_ | sed 's/org.eclipse.equinox.launcher_//')
Andrew Overholt d5b2034
PDEPLUGINVERSION=$(ls $SDK/plugins | grep pde.build_ | sed 's/org.eclipse.pde.build_//')
255430c
cp plugins/org.eclipse.ecf* $SDK/plugins
255430c
cp plugins/org.apache.commons.codec* $SDK/plugins
255430c
cp plugins/org.apache.commons.httpclient* $SDK/plugins
Ben Konrath aa30cb9
pushd equinox-incubator
Ben Konrath 06b780e
mkdir -p build
255430c
 
Ben Konrath aa30cb9
# This can go away when package build handles plugins (not just features)
Ben Konrath aa30cb9
echo "<project default=\"main\"><target name=\"main\"></target></project>" > build/assemble.org.eclipse.equinox.initializer.all.xml
Ben Konrath aa30cb9
echo "<project default=\"main\"><target name=\"main\"></target></project>" > build/package.org.eclipse.equinox.initializer.all.xml
Ben Konrath aa30cb9
Ben Konrath 4c0ee09
java -cp $SDK/plugins/org.eclipse.equinox.launcher_$LAUNCHERVERSION \
Ben Konrath 48553a3
     -Duser.home=$homedir                              \
Ben Konrath 4c0ee09
      org.eclipse.core.launcher.Main \
Ben Konrath aa30cb9
     -application org.eclipse.ant.core.antRunner       \
Ben Konrath aa30cb9
     -Dtype=plugin                                    \
Ben Konrath aa30cb9
     -Did=org.eclipse.equinox.initializer                   \
Ben Konrath aa30cb9
     -DsourceDirectory=$(pwd)                          \
Ben Konrath aa30cb9
     -DbaseLocation=$SDK \
Ben Konrath aa30cb9
     -Dbuilder=$SDK/plugins/org.eclipse.pde.build_$PDEPLUGINVERSION/templates/package-build  \
Ben Konrath aa30cb9
     -f $SDK/plugins/org.eclipse.pde.build_$PDEPLUGINVERSION/scripts/build.xml
255430c
     
Ben Konrath aa30cb9
pushd build/plugins/org.eclipse.equinox.initializer
Ben Konrath 4c0ee09
java -cp $SDK/plugins/org.eclipse.equinox.launcher_$LAUNCHERVERSION \
Ben Konrath 48553a3
     -Duser.home=$homedir                              \
Ben Konrath 4c0ee09
      org.eclipse.core.launcher.Main \
Ben Konrath d0ce538
     -application org.eclipse.ant.core.antRunner       \
Ben Konrath aa30cb9
     -f build.xml build.update.jar
Ben Konrath aa30cb9
popd
Ben Konrath aa30cb9
popd
Ben Konrath 2987a9c
Andrew Overholt d5b2034
# Build the ECF filetransfer plugins
255430c
# TODO reenable with correct ecf
255430c
#pushd org.eclipse.ecf
255430c
#mkdir -p build
255430c
#
255430c
#java -cp $SDK/plugins/org.eclipse.equinox.launcher_$LAUNCHERVERSION \
255430c
#     -Duser.home=$homedir                              \
255430c
#      org.eclipse.core.launcher.Main \
255430c
#     -application org.eclipse.ant.core.antRunner       \
255430c
#     -Dtype=feature                                    \
255430c
#     -Did=org.eclipse.ecf.filetransfer_feature                   \
255430c
#     -DsourceDirectory=$(pwd)                          \
255430c
#     -DbaseLocation=$SDK \
255430c
#     -Dbuilder=$SDK/plugins/org.eclipse.pde.build_$PDEPLUGINVERSION/templates/package-build  \
255430c
#     -f $SDK/plugins/org.eclipse.pde.build_$PDEPLUGINVERSION/scripts/build.xml
255430c
#
255430c
#popd
Andrew Overholt d5b2034
Andrew Overholt 8db956b
# Build the test framework
255430c
pushd %{name}-3.4.2-testframework
Andrew Overholt 8db956b
mkdir -p build
Andrew Overholt 8db956b
Andrew Overholt 8db956b
# The qualifier is what is in upstream's release:
Andrew Overholt 8db956b
# http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/eclipse-test-framework-3.4.zip
Andrew Overholt 8db956b
java -cp $SDK/plugins/org.eclipse.equinox.launcher_$LAUNCHERVERSION \
Andrew Overholt 8db956b
     -Duser.home=$homedir                              \
Andrew Overholt 8db956b
      org.eclipse.core.launcher.Main \
Andrew Overholt 8db956b
     -application org.eclipse.ant.core.antRunner       \
Andrew Overholt 8db956b
     -Dtype=feature                                    \
Andrew Overholt 8db956b
     -Did=org.eclipse.test                   \
Andrew Overholt 8db956b
     -DsourceDirectory=$(pwd)                          \
Andrew Overholt 8db956b
     -DbaseLocation=$SDK \
Andrew Overholt 8db956b
     -DforceContextQualifier=v20080507 \
Andrew Overholt 8db956b
     -Dbuilder=$SDK/plugins/org.eclipse.pde.build_$PDEPLUGINVERSION/templates/package-build  \
Andrew Overholt 8db956b
     -f $SDK/plugins/org.eclipse.pde.build_$PDEPLUGINVERSION/scripts/build.xml
255430c
popd
Andrew Overholt 8db956b
255430c
#TODO verify this is the correct place
255430c
pushd %{name}-3.4.2-testframework
Andrew Overholt 8db956b
unzip build/rpmBuild/org.eclipse.test.zip
Andrew Overholt 8db956b
# These are already in the SDK
Andrew Overholt 8db956b
rm eclipse/epl-v10.html eclipse/notice.html
Andrew Overholt 5165037
rm -rf eclipse/plugins/org.junit*
Andrew Overholt 8db956b
rm build/rpmBuild/org.eclipse.test.zip
Andrew Overholt 8db956b
zip -r build/rpmBuild/org.eclipse.test.zip eclipse
Andrew Overholt 8db956b
popd
Andrew Overholt 8db956b
255430c
cvsdist 38d0d0c
%install
cvsdist 38d0d0c
rm -rf $RPM_BUILD_ROOT
Andrew Overholt 65c016b
# Get swt version
Ben Konrath bc6236b
SWT_MAJ_VER=$(grep maj_ver plugins/org.eclipse.swt/Eclipse\ SWT/common/library/make_common.mak | cut -f 2 -d =)
Ben Konrath bc6236b
SWT_MIN_VER=$(grep min_ver plugins/org.eclipse.swt/Eclipse\ SWT/common/library/make_common.mak | cut -f 2 -d =)
Ben Konrath bc6236b
SWT_VERSION=$SWT_MAJ_VER$SWT_MIN_VER
Ben Konrath bc6236b
Andrew Overholt 65c016b
# Some directories we need
Andrew Overholt 0994b94
sdkDir=$RPM_BUILD_ROOT%{_libdir}/%{name}
Andrew Overholt 0994b94
install -d -m 755 $sdkDir
Andrew Overholt 0994b94
install -d -m 755 $sdkDir/plugins
Andrew Overholt 0994b94
install -d -m 755 $sdkDir/features
Andrew Overholt c2c49f8
# FIXME:  We can probably get rid of the links directory (for the
Andrew Overholt c2c49f8
# datadir.link file) when we ensure all plugins are installing into
Andrew Overholt c2c49f8
# dropins (either in libdir or datadir).
Andrew Overholt 690cc24
install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/java
Andrew Overholt 269d301
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
Andrew Overholt c2c49f8
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/dropins
Andrew Overholt c2c49f8
Andrew Overholt c2c49f8
# FIXME:  Please don't install stuff to these directories.  They're only
Andrew Overholt c2c49f8
# still here for legacy plugins (which probably won't function in 3.4).
Andrew Overholt c2c49f8
# We'll remove these later.
Andrew Overholt 269d301
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/features
Andrew Overholt 269d301
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins
Andrew Overholt 65c016b
Andrew Overholt 65c016b
# Explode the resulting SDK tarball
Andrew Overholt d5b2034
tar -C $RPM_BUILD_ROOT%{_libdir} -zxf result/linux-gtk-%{eclipse_arch}-sdk.tar.gz
cvsdist df631d8
Andrew Overholt d5b2034
# ECF filetransfer plugins we built
255430c
#rm $sdkDir/plugins/org.eclipse.ecf*.jar
255430c
#unzip -d $RPM_BUILD_ROOT%{_libdir} \
255430c
#  org.eclipse.ecf/build/rpmBuild/org.eclipse.ecf.filetransfer_feature.zip
Andrew Overholt d5b2034
# Remove the feature we used for building
255430c
#rm -rf \
255430c
#  $sdkDir/features/org.eclipse.ecf.filetransfer_feature_*
Ben Konrath 06b780e
Andrew Overholt 8db956b
# Test framework
Andrew Overholt 8db956b
unzip -d $RPM_BUILD_ROOT%{_libdir} \
255430c
  %{name}-3.4.2-testframework/build/rpmBuild/org.eclipse.test.zip
Andrew Overholt 8db956b
mv $RPM_BUILD_ROOT%{_libdir}/eclipse/plugins/org.eclipse.test{_3.2.0,}
Andrew Overholt 8db956b
Andrew Overholt 0994b94
LAUNCHERVERSION=$(ls $sdkDir/plugins | grep equinox.launcher_ | sed 's/org.eclipse.equinox.launcher_//')
Ben Konrath 4c0ee09
Ben Konrath de36359
# Install the file initializer app
Andrew Overholt d5b2034
cp -p equinox-incubator/org.eclipse.equinox.initializer/org.eclipse.equinox.initializer_*.jar \
Andrew Overholt 0994b94
  $sdkDir/plugins
Andrew Overholt 32f425f
Ben Konrath de36359
# Install the Fedora Eclipse product plugin
Andrew Overholt 0994b94
unzip -qq -d $sdkDir/plugins %{SOURCE4}
Andrew Overholt d556b20
# Install the Fedora Eclipse product feature
Andrew Overholt 0994b94
unzip -qq -d $sdkDir/features %{SOURCE5}
Andrew Overholt d5b2034
Andrew Overholt 0994b94
installDir=$sdkDir-Platform
Andrew Overholt 0994b94
metadataDir=$installDir/metadata-Platform
Andrew Overholt 0994b94
provisionDir=$installDir-provisioned
Andrew Overholt 0994b94
profileId=PlatformProfile
Andrew Overholt 8a2c6f4
Andrew Overholt 0994b94
# Copy just the platform
Andrew Overholt 0994b94
mkdir $installDir
Andrew Overholt 0994b94
pushd $installDir
Andrew Overholt 0994b94
sh %{SOURCE28} $sdkDir
Andrew Overholt c9ccf4f
mv plugins/*.source* $sdkDir/plugins
Andrew Overholt 8a2c6f4
popd
Andrew Overholt 8a2c6f4
Andrew Overholt 0994b94
# Generate metadata for the platform
Andrew Overholt d5b2034
java \
Andrew Overholt d5b2034
-cp $installDir/plugins/org.eclipse.equinox.launcher_$LAUNCHERVERSION \
Andrew Overholt d5b2034
org.eclipse.core.launcher.Main \
Andrew Overholt d5b2034
-application \
Andrew Overholt d5b2034
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator \
Andrew Overholt d5b2034
-metadataRepository file:$metadataDir \
Andrew Overholt d5b2034
-artifactRepository file:$metadataDir \
Andrew Overholt d5b2034
-source $installDir \
Andrew Overholt 0994b94
-root "Fedora Eclipse Platform" \
Andrew Overholt 8a2c6f4
-rootVersion %{version} \
Andrew Overholt d5b2034
-flavor tooling \
Andrew Overholt d5b2034
-publishArtifacts \
Andrew Overholt d5b2034
-append \
Andrew Overholt d5b2034
-artifactRepositoryName "Fedora Eclipse" \
Andrew Overholt d5b2034
-metadataRepositoryName "Fedora Eclipse"
Andrew Overholt d5b2034
Andrew Overholt c9ccf4f
# JDT
Andrew Overholt c9ccf4f
jdtDir=$sdkDir-JDT
Andrew Overholt c9ccf4f
jdtMetadata=$jdtDir/metadata-JDT
Andrew Overholt c9ccf4f
Andrew Overholt c9ccf4f
mkdir $jdtDir
Andrew Overholt c9ccf4f
pushd $jdtDir
Andrew Overholt c9ccf4f
mkdir features plugins
Andrew Overholt c9ccf4f
mv $sdkDir/features/org.eclipse.jdt_* features
Andrew Overholt c9ccf4f
for plugin in org.eclipse.jdt \
Andrew Overholt c9ccf4f
  org.eclipse.ant.ui \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.apt.core \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.apt.ui \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.apt.pluggable.core \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.compiler.apt \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.compiler.tool \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.core \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.core.manipulation \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.debug.ui \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.debug \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.junit \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.junit.runtime \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.junit4.runtime \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.launching \
Andrew Overholt c9ccf4f
  org.eclipse.jdt.ui \
255430c
  org.eclipse.jdt.doc.user \
Andrew Overholt c9ccf4f
  org.junit \
255430c
  org.junit4 ; do
Andrew Overholt c9ccf4f
  mv $sdkDir/plugins/${plugin}_* plugins
Andrew Overholt c9ccf4f
done
Andrew Overholt c9ccf4f
popd
Andrew Overholt c9ccf4f
Andrew Overholt c9ccf4f
# Generate metadata for JDT
Andrew Overholt c9ccf4f
java \
Andrew Overholt c9ccf4f
-cp $installDir/plugins/org.eclipse.equinox.launcher_$LAUNCHERVERSION \
Andrew Overholt c9ccf4f
org.eclipse.core.launcher.Main \
Andrew Overholt c9ccf4f
-application \
Andrew Overholt c9ccf4f
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator \
Andrew Overholt c9ccf4f
-metadataRepository file:$jdtMetadata \
Andrew Overholt c9ccf4f
-artifactRepository file:$jdtMetadata \
Andrew Overholt c9ccf4f
-source $jdtDir \
Andrew Overholt c9ccf4f
-root "Fedora Eclipse JDT" \
Andrew Overholt c9ccf4f
-rootVersion %{version} \
Andrew Overholt c9ccf4f
-flavor tooling \
Andrew Overholt c9ccf4f
-append \
Andrew Overholt 5159b13
-artifactRepositoryName "Fedora Eclipse JDT" \
Andrew Overholt 5159b13
-metadataRepositoryName "Fedora Eclipse JDT"
Andrew Overholt c9ccf4f
Andrew Overholt c9ccf4f
# SDK
Andrew Overholt c9ccf4f
sdkMetadata=$sdkDir/metadata-SDK
Andrew Overholt c9ccf4f
Andrew Overholt c9ccf4f
# Generate metadata for SDK
Andrew Overholt c9ccf4f
java \
Andrew Overholt c9ccf4f
-cp $installDir/plugins/org.eclipse.equinox.launcher_$LAUNCHERVERSION \
Andrew Overholt c9ccf4f
org.eclipse.core.launcher.Main \
Andrew Overholt c9ccf4f
-application \
Andrew Overholt c9ccf4f
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator \
Andrew Overholt c9ccf4f
-metadataRepository file:$sdkMetadata \
Andrew Overholt c9ccf4f
-artifactRepository file:$sdkMetadata \
Andrew Overholt c9ccf4f
-source $sdkDir \
Andrew Overholt c9ccf4f
-root "Fedora Eclipse SDK" \
Andrew Overholt c9ccf4f
-rootVersion %{version} \
Andrew Overholt c9ccf4f
-flavor tooling \
Andrew Overholt c9ccf4f
-publishArtifacts \
Andrew Overholt c9ccf4f
-append \
Andrew Overholt 5159b13
-artifactRepositoryName "Fedora Eclipse SDK" \
Andrew Overholt 5159b13
-metadataRepositoryName "Fedora Eclipse SDK"
Andrew Overholt c9ccf4f
Andrew Overholt d5b2034
# Director config.ini
Andrew Overholt 8a2c6f4
mv $installDir/configuration/config.ini{,.bak}
Andrew Overholt d5b2034
cp -p %{SOURCE22} $installDir/configuration/config.ini
Andrew Overholt d5b2034
Andrew Overholt 8a2c6f4
# Debugging?  Add -debug and -consolelog
Andrew Overholt 8a2c6f4
# Provision with director
Andrew Overholt ce22a23
java \
Andrew Overholt e98ce27
-Declipse.p2.data.area=file://$provisionDir/p2 \
255430c
-Declipse.p2.MD5Check=false \
Andrew Overholt ce22a23
-cp $installDir/plugins/org.eclipse.equinox.launcher_$LAUNCHERVERSION \
Andrew Overholt ce22a23
org.eclipse.core.launcher.Main \
Andrew Overholt d5b2034
-application \
Andrew Overholt d5b2034
org.eclipse.equinox.p2.director.app.application \
255430c
-debug -consolelog \
Andrew Overholt d5b2034
-flavor tooling \
Andrew Overholt 0994b94
-installIU "Fedora Eclipse Platform" \
Andrew Overholt d5b2034
-version %{version} \
Andrew Overholt d5b2034
-p2.os linux \
Andrew Overholt d5b2034
-p2.ws gtk \
Andrew Overholt d5b2034
-p2.arch %{eclipse_arch} \
Andrew Overholt d5b2034
-roaming \
Andrew Overholt f869e64
-profile $profileId \
Andrew Overholt d5b2034
-profileProperties org.eclipse.update.install.features=true \
Andrew Overholt d5b2034
-metadataRepository file:$metadataDir \
Andrew Overholt d5b2034
-artifactRepository file:$metadataDir \
Andrew Overholt 0994b94
-destination $provisionDir \
255430c
-bundlepool $provisionDir 
Andrew Overholt 8a2c6f4
Andrew Overholt 0994b94
# Stuff in JDT, PDE, SDK
Andrew Overholt c9ccf4f
for f in about.html about_files \.eclipseproduct epl-v10.html notice.html readme; do
Andrew Overholt c9ccf4f
    if 	[ -e $installDir/$f ]; then
Andrew Overholt c9ccf4f
      mv $installDir/$f $provisionDir
Andrew Overholt c9ccf4f
    fi
Andrew Overholt 8a2c6f4
done
Andrew Overholt 7889e5c
# FIXME:  should add artifacts.xml here
Andrew Overholt c9ccf4f
dropins=$provisionDir/dropins
Andrew Overholt 7889e5c
mkdir -p $dropins/jdt $dropins/sdk
Andrew Overholt 7889e5c
mv $jdtDir/features $dropins/jdt
Andrew Overholt 7889e5c
mv $jdtDir/plugins $dropins/jdt
255430c
#mv $jdtMetadata/content.xml $dropins/jdt
255430c
#mv $jdtMetadata/artifacts.xml $dropins/jdt
Andrew Overholt c9ccf4f
Andrew Overholt 7889e5c
mv $sdkDir/features $dropins/sdk
Andrew Overholt 7889e5c
mv $sdkDir/plugins $dropins/sdk
255430c
#mv $sdkMetadata/content.xml $dropins/sdk
255430c
#mv $sdkMetadata/artifacts.xml $dropins/sdk
Andrew Overholt c9ccf4f
rm -rf $metadataDir $jdtDir $sdkDir $installDir
Andrew Overholt 0994b94
mv $provisionDir $sdkDir
Andrew Overholt 8a2c6f4
Andrew Overholt 0994b94
# Fix paths in p2 data
Andrew Overholt 0994b94
rm -rf $sdkDir/p2/org.eclipse.equinox.p2.core/cache
Andrew Overholt 0994b94
rm -rf $sdkDir/p2/org.eclipse.equinox.p2.director/rollback/content.xml
Andrew Overholt 0994b94
sed -i "s|file\:$provisionDir/\ -\ bundle\ pool|Fedora Eclipse|g" \
Andrew Overholt 0994b94
  $sdkDir/artifacts.xml
Andrew Overholt 0994b94
profileDir=$sdkDir/p2/org.eclipse.equinox.p2.engine/profileRegistry
Andrew Overholt 0994b94
pushd $profileDir
Andrew Overholt 0994b94
  sed -i "s|$provisionDir|%{_libdir}/%{name}|g" \
Andrew Overholt 0994b94
    PlatformProfile.profile/*
Andrew Overholt 0994b94
  sed -i "s|$RPM_BUILD_ROOT||g" PlatformProfile.profile/*
Andrew Overholt 8a2c6f4
popd
Ben Konrath c3ae080
Andrew Overholt d5b2034
%ifarch ppc64 sparc sparcv9 sparc64 alpha ia64
Andrew Overholt 0994b94
cp -p features/org.eclipse.platform/gtk/eclipse.ini $sdkDir
Andrew Overholt d5b2034
%endif
Andrew Overholt 65c016b
Andrew Overholt d5b2034
cp -p features/org.eclipse.platform/gtk/eclipse.ini.patched \
Andrew Overholt 0994b94
  $sdkDir/eclipse.ini
Andrew Overholt c2c49f8
# We have /usr/share/eclipse/dropins in eclipse.ini
Andrew Overholt c2c49f8
sed -i "s|/usr/share|%{_datadir}|" $sdkDir/eclipse.ini
55afd25
# Use our own splash
55afd25
sed -i "s|org.eclipse.platform|org.fedoraproject.ide.platform|" $sdkDir/eclipse.ini
55afd25
Andrew Overholt 65c016b
Andrew Overholt d5b2034
# Add a compatibility symlink to startup.jar
Andrew Overholt 0994b94
pushd $sdkDir
Andrew Overholt d5b2034
LAUNCHERNAME=$(ls plugins | grep equinox.launcher_)
Andrew Overholt d5b2034
ln -s plugins/$LAUNCHERNAME startup.jar
Andrew Overholt d5b2034
popd
Ben Konrath d563cf5
Andrew Overholt b5482d5
# Remove the unnecessary configuration data
Andrew Overholt b5482d5
rm -r $sdkDir/configuration/org.eclipse.update
Andrew Overholt b5482d5
Andrew Overholt b5482d5
%if %{initialize}
Ben Konrath 158e040
# FIXME: investigate why it doesn't work to set this -- configuration data is
Andrew Overholt 65c016b
# always written to /usr/share/eclipse/configuration, even with
Andrew Overholt 65c016b
#     -Dosgi.sharedConfiguration.area=$RPM_BUILD_ROOT%{_libdir}/%{name}/configuration
Andrew Overholt 65c016b
# Note (2006-12-05):  upon looking at this again, we (bkonrath, overholt) don't
Andrew Overholt 65c016b
# know what we're doing with $libdir_path :)  It requires some investigation.
Andrew Overholt e6ab17d
#
Andrew Overholt fd64f0d
# Extract .so files
Andrew Overholt fd64f0d
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=90535
255430c
255430c
sed --in-place "s|org.eclipse.core.runtime,3.5.0.v20090316,file:plugins/org.eclipse.core.runtime_3.5.0.v20090316.jar,4,false|org.eclipse.core.runtime,3.5.0.v20090316,file:plugins/org.eclipse.core.runtime_3.5.0.v20090316.jar,4,true|" \
255430c
  $RPM_BUILD_ROOT%{_libdir}/%{name}/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
Andrew Overholt 32f425f
pushd $RPM_BUILD_ROOT
Andrew Overholt b5482d5
mv $RPM_BUILD_ROOT%{_libdir}/eclipse/dropins  $RPM_BUILD_ROOT/dropins
Andrew Overholt b5482d5
mkdir $RPM_BUILD_ROOT%{_libdir}/eclipse/dropins
Andrew Overholt 32f425f
libdir_path=$(echo %{_libdir}/%{name} | sed -e 's/^\///')
Andrew Overholt 32f425f
java -Dosgi.sharedConfiguration.area=$libdir_path/configuration \
Andrew Overholt d5b2034
     -cp $libdir_path/startup.jar \
Ben Konrath 158e040
     org.eclipse.core.launcher.Main \
255430c
     -debug -consolelog \
Andrew Overholt 32f425f
     -application org.eclipse.equinox.initializer.configInitializer \
Ben Konrath 158e040
     -fileInitializer %{SOURCE19}
9ef820f
popd
Andrew Overholt b5482d5
rm -fr $RPM_BUILD_ROOT%{_libdir}/eclipse/dropins
Andrew Overholt b5482d5
mv $RPM_BUILD_ROOT/dropins $RPM_BUILD_ROOT%{_libdir}/eclipse/dropins
Andrew Overholt b5482d5
Andrew Overholt b5482d5
# Do this again after we've run the file initializer
Andrew Overholt b5482d5
rm -rf $sdkDir/p2/org.eclipse.equinox.p2.core/cache
Andrew Overholt b5482d5
rm -rf $sdkDir/p2/org.eclipse.equinox.p2.director/rollback/content.xml
303b3e2
rm -rf $sdkDir/p2/org.eclipse.equinox.p2.engine/.settings/org.eclipse.equinox.p2.artifact.repository.prefs
1c43f0e
rm -rf $sdkDir/p2/org.eclipse.equinox.p2.engine/profileRegistry/PlatformProfile.profile/.data/.settings
Andrew Overholt b5482d5
pushd $profileDir
Andrew Overholt b5482d5
  sed -i "s|$RPM_BUILD_ROOT||g" *.profile/*
Andrew Overholt b5482d5
popd
9ef820f
Andrew Overholt d5b2034
# Remove the unnecessary configuration data
Andrew Overholt 0994b94
rm -r $sdkDir/configuration/org.eclipse.core.runtime
Andrew Overholt 0994b94
rm -r $sdkDir/configuration/org.eclipse.equinox.app
255430c
#rm -r $sdkDir/configuration/.settings
Andrew Overholt c9ccf4f
rm -rf $sdkDir/configuration/*.log
Andrew Overholt 0994b94
dataDirs=$(find $sdkDir/configuration \
Andrew Overholt f869e64
  -type d -name data)
Andrew Overholt f869e64
for dataDir in $dataDirs; do
Andrew Overholt f869e64
    rm -rf `dirname $dataDir`
Andrew Overholt f869e64
done
Andrew Overholt f869e64
Andrew Overholt 0061dd6
pushd $sdkDir
Andrew Overholt b5482d5
# Create file listings for the extracted shared libraries
Andrew Overholt b5482d5
echo -n "" > %{_builddir}/%{buildsubdir}/%{name}-platform.install;
Andrew Overholt b5482d5
for id in `ls configuration/org.eclipse.osgi/bundles`; do
Andrew Overholt b5482d5
  if [ "Xconfiguration" = $(echo X`find configuration/org.eclipse.osgi/bundles/$id -name libswt\*.so` | sed "s:/.*::") ]; then
Andrew Overholt b5482d5
    echo "%{_libdir}/%{name}/configuration/org.eclipse.osgi/bundles/$id" > %{_builddir}/%{buildsubdir}/%{name}-swt.install;
Andrew Overholt b5482d5
  else
Andrew Overholt b5482d5
    echo "%{_libdir}/%{name}/configuration/org.eclipse.osgi/bundles/$id" >> %{_builddir}/%{buildsubdir}/%{name}-platform.install;
Andrew Overholt b5482d5
  fi
Andrew Overholt e6ab17d
done
Andrew Overholt b5482d5
popd
Andrew Overholt b5482d5
Andrew Overholt b5482d5
# Install symlinks to the SWT JNI shared libraries in %%{_libdir}/eclipse
Andrew Overholt b5482d5
pushd $RPM_BUILD_ROOT%{_libdir}/%{name}
Andrew Overholt e6ab17d
for lib in $(find configuration -name libswt\*.so); do
Andrew Overholt b5482d5
  ln -s $lib `basename $lib`
Andrew Overholt b5482d5
done
9377446
popd
Andrew Overholt b5482d5
Andrew Overholt b5482d5
# Ensure the shared libraries have the correct permissions
Andrew Overholt e6ab17d
pushd $RPM_BUILD_ROOT%{_libdir}/%{name}
Andrew Overholt b5482d5
for lib in `find configuration -name \*.so`; do
Andrew Overholt b5482d5
   chmod 755 $lib
Andrew Overholt b5482d5
done
Andrew Overholt f869e64
popd
Andrew Overholt b5482d5
%endif
cvsdist df631d8
Andrew Overholt e6ab17d
# Set eclipse.product to org.fedoraproject.ide.platform
Andrew Overholt b94d72f
sed --in-place "s/plugins\/org.eclipse.platform/plugins\/org.fedoraproject.ide.platform/" \
Andrew Overholt b94d72f
  $RPM_BUILD_ROOT%{_libdir}/%{name}/configuration/config.ini
Andrew Overholt b94d72f
sed --in-place "s/eclipse.product=org.eclipse.platform.ide/eclipse.product=org.fedoraproject.ide.platform.product/" \
Andrew Overholt b94d72f
  $RPM_BUILD_ROOT%{_libdir}/%{name}/configuration/config.ini
255430c
sed --in-place "s/osgi.ws=gtk/osgi.ws=gtk\norg.eclipse.update.reconcile=false/" \
255430c
  $RPM_BUILD_ROOT%{_libdir}/%{name}/configuration/config.ini
255430c
sed --in-place "s|org.eclipse.core.runtime,3.5.0.v20090316,file:plugins/org.eclipse.core.runtime_3.5.0.v20090316.jar,4,false|org.eclipse.core.runtime,3.5.0.v20090316,file:plugins/org.eclipse.core.runtime_3.5.0.v20090316.jar,4,true|" \
255430c
  $RPM_BUILD_ROOT%{_libdir}/%{name}/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
Andrew Overholt b94d72f
Ben Konrath 4c0ee09
# Install the Eclipse binary wrapper
Andrew Overholt bfd4e0b
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
Andrew Overholt d5b2034
ln -s %{_libdir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
255430c
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
Andrew Overholt d5b2034
#cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/eclipse
Andrew Overholt d5b2034
#sed --in-place "s|@LIBDIR@|%{_libdir}|g" $RPM_BUILD_ROOT%{_bindir}/eclipse
Andrew Overholt d5b2034
#ECLIPSELIBSUFFIX=$(ls $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/org.eclipse.equinox.launcher.gtk.linux*/*.so | sed "s/.*.launcher.gtk.linux.//")
Andrew Overholt d5b2034
#sed --in-place "s|@ECLIPSELIBSUFFIX@|$ECLIPSELIBSUFFIX|" $RPM_BUILD_ROOT%{_bindir}/eclipse
Andrew Overholt bfd4e0b
57bee49
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/links
Andrew Overholt c2c49f8
# FIXME:  We can probably get rid of the links file when we ensure all
Andrew Overholt c2c49f8
# plugins are installing into dropins (either in libdir or datadir).
Andrew Overholt 269d301
# Set up an extension location and a link file for the arch-independent dir
96a1f37
echo "path:%{_datadir}" > \
Andrew Overholt c2c49f8
  $sdkDir/links/datadir.link
Andrew Overholt 269d301
Andrew Overholt d5b2034
# Ensure the launcher binary has the correct permissions
Andrew Overholt e7563e0
chmod 755 $RPM_BUILD_ROOT/%{_libdir}/%{name}/%{name}
Andrew Overholt 5fd1871
Ben Konrath 121ec8f
# Install the SWT jar symlinks in libdir
255430c
SWTJARVERSION=$(grep v$SWT_VERSION plugins/org.eclipse.swt.gtk.linux.%{eclipse_arch}/build.xml | sed "s:.*<.*\"\(.*\)\" />:\1:")
Ben Konrath c3ae080
pushd $RPM_BUILD_ROOT%{_libdir}/%{name}
Andrew Overholt c9ccf4f
ln -s plugins/org.eclipse.swt.gtk.linux.%{eclipse_arch}_$SWTJARVERSION.jar swt-gtk-%{eclipse_majmin}.%{eclipse_micro}.jar
Ben Konrath 2987a9c
ln -s swt-gtk-%{eclipse_majmin}.%{eclipse_micro}.jar swt-gtk-%{eclipse_majmin}.jar
Andrew Overholt 690cc24
ln -s swt-gtk-%{eclipse_majmin}.%{eclipse_micro}.jar swt.jar
Andrew Overholt 690cc24
ln -s ../%{name}/swt-gtk-%{eclipse_majmin}.%{eclipse_micro}.jar ../java/swt.jar
cvsdist 38d0d0c
popd
cvsdist 38d0d0c
Andrew Overholt 65c016b
# Icons
Andrew Overholt 65c016b
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
Andrew Overholt 56ebf50
ln -s %{_libdir}/%{name}/plugins/org.fedoraproject.ide.platform_%{version}/eclipse48.png \
cvsdist 38d0d0c
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
Andrew Overholt 65c016b
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
Andrew Overholt 56ebf50
ln -s %{_libdir}/%{name}/plugins/org.fedoraproject.ide.platform_%{version}/eclipse32.png \
Andrew Overholt 349c5a6
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
Andrew Overholt 65c016b
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps
Andrew Overholt 56ebf50
ln -s %{_libdir}/%{name}/plugins/org.fedoraproject.ide.platform_%{version}/eclipse.png \
Andrew Overholt 349c5a6
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
Andrew Overholt 65c016b
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pixmaps
Ben Konrath de36359
ln -s %{_datadir}/icons/hicolor/48x48/apps/%{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
cvsdist df631d8
Andrew Overholt e6ab17d
# Install the efj wrapper script
Ben Konrath 0b073c2
install -p -D -m0755 %{SOURCE17} $RPM_BUILD_ROOT%{_bindir}/efj
Andrew Overholt d5b2034
sed --in-place "s:startup.jar:%{_libdir}/%{name}/startup.jar:" \
Andrew Overholt e6ab17d
  $RPM_BUILD_ROOT%{_bindir}/efj
Ben Konrath 0b073c2
cvsdist 38d0d0c
# A sanity check.
cvsdist 38d0d0c
desktop-file-validate %{SOURCE2}
cvsdist 38d0d0c
cvsdist 38d0d0c
# freedesktop.org menu entry
Andrew Overholt 7959f75
desktop-file-install --vendor="fedora" \
Andrew Overholt 7959f75
--dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2}
cvsdist 38d0d0c
cvsdist 38d0d0c
# Create a script that can be used to make a symlink tree of the
cvsdist 38d0d0c
# eclipse platform.
Andrew Overholt d5b2034
cp -p %{SOURCE16} copy-platform
cvsdist 38d0d0c
(
Andrew Overholt d5b2034
  cd $RPM_BUILD_ROOT%{_libdir}/%{name}
Andrew Overholt 079a00b
  ls -d * | egrep -v '^(plugins|features|about_files|dropins)$'
Andrew Overholt c9ccf4f
  ls -d plugins/* features/*
cvsdist 38d0d0c
) |
e906bd4
sed -e's,^\(.*\),[ ! -e \1 ] \&\& ln -s $eclipse/\1 \1,' >> copy-platform
Andrew Overholt d5b2034
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/buildscripts
c3c925c
mv copy-platform $RPM_BUILD_ROOT%{_libdir}/%{name}/buildscripts
Andrew Overholt c9ccf4f
copyPlatform=$RPM_BUILD_ROOT%{_libdir}/%{name}/buildscripts/copy-platform
Andrew Overholt c9ccf4f
pushd $RPM_BUILD_ROOT%{_libdir}/%{name}
Andrew Overholt 7889e5c
for p in $(ls -d dropins/jdt/plugins/*); do
Andrew Overholt c9ccf4f
    plugin=$(basename $p)
Andrew Overholt c9ccf4f
    echo $p | sed -e"s,^\(.*\),[ ! -e plugins/$plugin ] \&\& ln -s \$eclipse/\1 plugins/$plugin," >> $copyPlatform
Andrew Overholt c9ccf4f
done
Andrew Overholt 7889e5c
for p in $(ls -d dropins/sdk/plugins/*); do
Andrew Overholt c9ccf4f
    plugin=$(basename $p)
Andrew Overholt c9ccf4f
    echo $p | sed -e"s,^\(.*\),[ ! -e plugins/$plugin ] \&\& ln -s \$eclipse/\1 plugins/$plugin," >> $copyPlatform
Andrew Overholt c9ccf4f
done
Andrew Overholt c9ccf4f
popd
Ben Konrath 435496e
Andrew Overholt 8b3726e
# Install the PDE Build wrapper script.
Andrew Overholt 8b3726e
install -p -D -m0755 %{SOURCE21} \
Andrew Overholt d5b2034
  $RPM_BUILD_ROOT%{_libdir}/%{name}/buildscripts/pdebuild
Andrew Overholt 7889e5c
PDEBUILDVERSION=$(ls $RPM_BUILD_ROOT%{_libdir}/%{name}/dropins/sdk/plugins \
Andrew Overholt c9ccf4f
  | grep org.eclipse.pde.build_ | \
Andrew Overholt c9ccf4f
  sed 's/org.eclipse.pde.build_//')
Andrew Overholt c9ccf4f
sed -i "s/@PDEBUILDVERSION@/$PDEBUILDVERSION/g" \
Andrew Overholt c9ccf4f
  $RPM_BUILD_ROOT%{_libdir}/%{name}/buildscripts/pdebuild
Andrew Overholt d5b2034
Andrew Overholt d5b2034
pushd $RPM_BUILD_ROOT%{_libdir}/%{name}
Andrew Overholt d5b2034
rm plugins/org.sat4j*
255430c
ln -s %{_javadir}/org.sat4j.core* plugins/org.sat4j.core_2.1.0.v20090308.jar
255430c
ln -s %{_javadir}/org.sat4j.pb* plugins/org.sat4j.pb_2.1.0.v20090308.jar
Andrew Overholt d5b2034
Andrew Overholt 7889e5c
ASMPLUGINVERSION=$(ls dropins/sdk/plugins | grep org.objectweb.asm_ | \
Andrew Overholt d5b2034
  sed 's/org.objectweb.asm_//')
Andrew Overholt 7889e5c
rm dropins/sdk/plugins/org.objectweb.asm_$ASMPLUGINVERSION
Andrew Overholt d5b2034
ln -s %{_javadir}/objectweb-asm/asm-all.jar \
Andrew Overholt 7889e5c
  dropins/sdk/plugins/org.objectweb.asm_$ASMPLUGINVERSION
Andrew Overholt 8b3726e
Andrew Overholt bfd4e0b
## BEGIN ANT ##
Andrew Overholt d5b2034
ANTDIR=plugins/$(ls plugins | grep org.apache.ant_)
Andrew Overholt d5b2034
rm $ANTDIR/lib/*
Andrew Overholt d5b2034
ANTDIR=$ANTDIR/lib
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-antlr.jar $ANTDIR/ant-antlr.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-bcel.jar $ANTDIR/ant-apache-bcel.jar
Andrew Overholt 56ebf50
ln -s %{_javadir}/ant/ant-apache-bsf.jar $ANTDIR/ant-apache-bsf.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-log4j.jar $ANTDIR/ant-apache-log4j.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-oro.jar $ANTDIR/ant-apache-oro.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-regexp.jar $ANTDIR/ant-apache-regexp.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-apache-resolver.jar $ANTDIR/ant-apache-resolver.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-commons-logging.jar $ANTDIR/ant-commons-logging.jar
Andrew Overholt 56ebf50
ln -s %{_javadir}/ant/ant-commons-net.jar $ANTDIR/ant-commons-net.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-jai.jar $ANTDIR/ant-jai.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant.jar $ANTDIR/ant.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-javamail.jar $ANTDIR/ant-javamail.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-jdepend.jar $ANTDIR/ant-jdepend.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-jmf.jar $ANTDIR/ant-jmf.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-jsch.jar $ANTDIR/ant-jsch.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-junit.jar $ANTDIR/ant-junit.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant-launcher.jar $ANTDIR/ant-launcher.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-netrexx.jar $ANTDIR/ant-netrexx.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-nodeps.jar $ANTDIR/ant-nodeps.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-starteam.jar $ANTDIR/ant-starteam.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-stylebook.jar $ANTDIR/ant-stylebook.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-swing.jar $ANTDIR/ant-swing.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/ant/ant-trax.jar $ANTDIR/ant-trax.jar
Andrew Overholt d5b2034
#ln -s %{_javadir}/ant/ant-weblogic.jar $ANTDIR/ant-weblogic.jar
Andrew Overholt bfd4e0b
## END ANT ##
Andrew Overholt 65c016b
255430c
#JETTYPLUGINVERSION=$(ls plugins | grep org.mortbay.jetty_5 | sed 's/org.mortbay.jetty_//')
255430c
#rm plugins/org.mortbay.jetty_$JETTYPLUGINVERSION
255430c
#ln -s %{_javadir}/jetty/jetty.jar plugins/org.mortbay.jetty_$JETTYPLUGINVERSION
Andrew Overholt 39363de
Andrew Overholt 7889e5c
pushd dropins/jdt
Andrew Overholt 16c113b
build-jar-repository -s -p plugins/org.junit_* junit
Andrew Overholt bfd4e0b
Andrew Overholt d5b2034
JUNIT4VERSION=$(ls plugins | grep org.junit4_ | sed 's/org.junit4_//')
Andrew Overholt d5b2034
rm plugins/org.junit4_$JUNIT4VERSION/junit.jar
Andrew Overholt d5b2034
ln -s %{_javadir}/junit4.jar plugins/org.junit4_$JUNIT4VERSION/junit.jar
Andrew Overholt c9ccf4f
popd
Ben Konrath 619a6b2
Andrew Overholt d5b2034
JSCHVERSION=$(ls plugins | grep com.jcraft.jsch_ | sed 's/com.jcraft.jsch_//')
Andrew Overholt d5b2034
rm plugins/com.jcraft.jsch_$JSCHVERSION
Andrew Overholt d5b2034
ln -s %{_javadir}/jsch.jar plugins/com.jcraft.jsch_$JSCHVERSION
Ben Konrath f23231d
Ben Konrath 82b9077
# link to the icu4j stuff
Andrew Overholt d5b2034
ICUVERSION=$(ls plugins | grep com.ibm.icu_ | sed 's/com.ibm.icu_//')
Andrew Overholt d5b2034
rm plugins/com.ibm.icu_*.jar
Ben Konrath 82b9077
Ben Konrath bc52b62
# link to lucene
Andrew Overholt d5b2034
LUCENEVERSION=$(ls plugins | grep org.apache.lucene_ | \
Andrew Overholt d5b2034
  sed 's/org.apache.lucene_//')
Andrew Overholt d5b2034
rm plugins/org.apache.lucene_*
Andrew Overholt d5b2034
ln -s %{_javadir}/lucene.jar plugins/org.apache.lucene_$LUCENEVERSION
Andrew Overholt d5b2034
rm plugins/org.apache.lucene.analysis_*
Andrew Overholt d5b2034
ln -s %{_javadir}/lucene-contrib/lucene-analyzers.jar \
Andrew Overholt d5b2034
  plugins/org.apache.lucene.analysis_$LUCENEVERSION
Ben Konrath f449bd8
Ben Konrath f449bd8
# link to commons-logging
Andrew Overholt d5b2034
COMMONSLOGGINGVERSION=$(ls plugins | grep commons.logging_ | \
Andrew Overholt d5b2034
  sed 's/org.apache.commons.logging_//')
Andrew Overholt d5b2034
rm plugins/org.apache.commons.logging_$COMMONSLOGGINGVERSION
Andrew Overholt d5b2034
ln -s %{_javadir}/commons-logging.jar \
Andrew Overholt d5b2034
  plugins/org.apache.commons.logging_$COMMONSLOGGINGVERSION
Ben Konrath bc52b62
Ben Konrath 491b3aa
# link to commons-el
Andrew Overholt d5b2034
COMMONSELVERSION=$(ls plugins | grep commons.el_ | \
Andrew Overholt d5b2034
  sed 's/org.apache.commons.el_//')
Andrew Overholt d5b2034
rm plugins/org.apache.commons.el_$COMMONSELVERSION
Andrew Overholt d5b2034
ln -s %{_javadir}/commons-el.jar \
Andrew Overholt d5b2034
  plugins/org.apache.commons.el_$COMMONSELVERSION
255430c
  
255430c
# link to commons-el
255430c
COMMONSCODECVERSION=$(ls plugins | grep commons.codec_ | \
255430c
  sed 's/org.apache.commons.codec_//')
255430c
rm plugins/org.apache.commons.codec_$COMMONSCODECVERSION
255430c
ln -s %{_javadir}/commons-codec.jar \
255430c
  plugins/org.apache.commons.codec_$COMMONSCODECVERSION
255430c
  
255430c
# link to commons-el
255430c
COMMONSHTTPVERSION=$(ls plugins | grep commons.httpclient_ | \
255430c
  sed 's/org.apache.commons.httpclient_//')
255430c
rm plugins/org.apache.commons.httpclient_$COMMONSHTTPVERSION
255430c
ln -s %{_javadir}/commons-httpclient.jar \
255430c
  plugins/org.apache.commons.httpclient_$COMMONSHTTPVERSION
Ben Konrath 491b3aa
Ben Konrath 556f63a
# link to jasper
Andrew Overholt d5b2034
JASPERVERSION=$(ls plugins | grep org.apache.jasper_ | \
Andrew Overholt d5b2034
  sed 's/org.apache.jasper_//')
Andrew Overholt d5b2034
rm plugins/org.apache.jasper_*.jar
Andrew Overholt d5b2034
ln -s %{_datadir}/eclipse/plugins/org.apache.jasper_* \
Andrew Overholt d5b2034
   plugins/org.apache.jasper_$JASPERVERSION
Ben Konrath 556f63a
Andrew Overholt d5b2034
# link to servlet-api
Andrew Overholt d5b2034
SERVLETAPIVERSION=$(ls plugins | grep javax.servlet_ | \
Andrew Overholt d5b2034
  sed 's/javax.servlet_//')
Andrew Overholt d5b2034
rm plugins/javax.servlet_*
255430c
ln -s %{_javadir}/tomcat6-servlet-2.5-api.jar \
Andrew Overholt d5b2034
  plugins/javax.servlet_$SERVLETAPIVERSION
Ben Konrath 556f63a
Ben Konrath 556f63a
# link to jsp-api
Andrew Overholt d5b2034
JSPAPIVERSION=$(ls plugins | grep javax.servlet.jsp_ | \
Andrew Overholt d5b2034
  sed 's/javax.servlet.jsp_//')
Andrew Overholt d5b2034
rm plugins/javax.servlet.jsp_*
Andrew Overholt d5b2034
ln -s %{_javadir}/tomcat5-jsp-2.0-api.jar \
Andrew Overholt d5b2034
  plugins/javax.servlet.jsp_$JSPAPIVERSION
Ben Konrath 556f63a
Ben Konrath 82b9077
popd
Ben Konrath 82b9077
Andrew Overholt bfd4e0b
%clean
Andrew Overholt bfd4e0b
rm -rf $RPM_BUILD_ROOT
Andrew Overholt 25abe4e
Andrew Overholt 921a570
%post platform
fcae093
touch --no-create %{_datadir}/icons/hicolor
b295832
if [ -x /usr/bin/gtk-update-icon-cache ]; then
17c7c30
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fcae093
fi
cvsdist 38d0d0c
Andrew Overholt 0665d48
%postun platform
fcae093
touch --no-create %{_datadir}/icons/hicolor
b295832
if [ -x /usr/bin/gtk-update-icon-cache ]; then
17c7c30
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fcae093
fi
Ben Konrath 07ad637
Andrew Overholt b5482d5
%if %{initialize}
Andrew Overholt d5b2034
%files swt -f %{name}-swt.install
Andrew Overholt b5482d5
%else
Andrew Overholt b5482d5
%files swt
Andrew Overholt b5482d5
%endif
Ben Konrath 5037e9d
%defattr(-,root,root)
Ben Konrath 2ce933e
%dir %{_libdir}/%{name}
Ben Konrath 158e040
%dir %{_libdir}/%{name}/plugins
Andrew Overholt b5482d5
%if %{initialize}
Andrew Overholt b5482d5
%dir %{_libdir}/%{name}/libswt-*.so
Ben Konrath 158e040
%dir %{_libdir}/%{name}/configuration
Ben Konrath 158e040
%dir %{_libdir}/%{name}/configuration/org.eclipse.osgi
Ben Konrath 158e040
%dir %{_libdir}/%{name}/configuration/org.eclipse.osgi/bundles
Andrew Overholt b5482d5
%endif
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.swt_*
Ben Konrath 158e040
%{_libdir}/%{name}/plugins/org.eclipse.swt.gtk.linux.%{eclipse_arch}_*
Ben Konrath c3ae080
%{_libdir}/%{name}/swt-gtk*.jar
Andrew Overholt 690cc24
%{_libdir}/%{name}/swt.jar
Andrew Overholt 690cc24
%{_libdir}/java/swt.jar
cvsdist 38d0d0c
Ben Konrath 9dbdca5
%files rcp
Ben Konrath 5037e9d
%defattr(-,root,root)
Ben Konrath 556f63a
%dir %{_libdir}/%{name}/features
Andrew Overholt 269d301
%dir %{_datadir}/%{name}
Andrew Overholt 269d301
%dir %{_datadir}/%{name}/features
Andrew Overholt 269d301
%dir %{_datadir}/%{name}/plugins
Andrew Overholt b5482d5
%if %{initialize}
Ben Konrath 158e040
%{_libdir}/%{name}/configuration/org.eclipse.osgi/.bundledata*
Ben Konrath 158e040
%{_libdir}/%{name}/configuration/org.eclipse.osgi/.lazy*
Ben Konrath 158e040
%{_libdir}/%{name}/configuration/org.eclipse.osgi/.manager
Ben Konrath 158e040
%{_libdir}/%{name}/configuration/org.eclipse.osgi/.state*
Andrew Overholt b5482d5
%endif
255430c
%config %{_libdir}/%{name}/configuration
Andrew Overholt 8a2c6f4
%config %{_libdir}/%{name}/configuration/config.ini
Andrew Overholt 8a2c6f4
%config %{_libdir}/%{name}/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
Andrew Overholt 8a2c6f4
%dir %{_libdir}/%{name}/configuration/org.eclipse.equinox.simpleconfigurator
Andrew Overholt d5b2034
%{_libdir}/%{name}/notice.html
Andrew Overholt d5b2034
%{_libdir}/%{name}/epl-v10.html
Andrew Overholt 269d301
%{_libdir}/%{name}/links
255430c
%ifnarch ppc
Andrew Overholt d5b2034
%{_libdir}/%{name}/about.html
Andrew Overholt 9aec0f8
%endif
Andrew Overholt 7f97beb
%ifarch x86_64
Andrew Overholt d5b2034
%{_libdir}/%{name}/about_files
Andrew Overholt 7f97beb
%endif
Andrew Overholt d5b2034
%{_libdir}/%{name}/readme
Andrew Overholt d5b2034
%{_libdir}/%{name}/startup.jar
Ben Konrath d563cf5
%{_libdir}/%{name}/features/org.eclipse.rcp_*
255430c
#%{_libdir}/%{name}/plugins/com.ibm.icu_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.commands_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.contenttype_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.databinding_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.databinding.beans_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.core.databinding.observable_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.core.databinding.property_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.expressions_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.jobs_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.runtime_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.auth_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.app_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.common_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.equinox.ds_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.launcher_*
Ben Konrath 4c0ee09
%{_libdir}/%{name}/plugins/org.eclipse.equinox.launcher.gtk.linux.%{eclipse_arch}_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.preferences_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.registry_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.equinox.util_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.help_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.jface_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.jface.databinding_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.osgi_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.rcp_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.workbench_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.update.configurator_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.simpleconfigurator_*
Ben Konrath 4c0ee09
Andrew Overholt b5482d5
%if %{initialize}
Andrew Overholt 921a570
%files platform -f %{name}-platform.install
Andrew Overholt b5482d5
%else
Andrew Overholt b5482d5
%files platform
Andrew Overholt b5482d5
%endif
Ben Konrath 5037e9d
%defattr(-,root,root)
Ben Konrath 158e040
%attr(0755,root,root) %{_bindir}/%{name}
Andrew Overholt 0f27cf8
%config %{_libdir}/%{name}/eclipse.ini
Andrew Overholt 0994b94
%{_libdir}/%{name}/.eclipseproduct
Andrew Overholt 0994b94
%{_libdir}/%{name}/configuration/config.ini
Ben Konrath 9dbdca5
%{_datadir}/applications/*
Ben Konrath 9dbdca5
%{_datadir}/pixmaps/*
Ben Konrath 9dbdca5
%{_datadir}/icons/*/*/apps/*
Andrew Overholt d5b2034
%{_libdir}/%{name}/eclipse
Andrew Overholt c9ccf4f
%dir %{_libdir}/%{name}/dropins
Andrew Overholt c2c49f8
%dir %{_datadir}/%{name}/dropins
Andrew Overholt d5b2034
%{_libdir}/%{name}/features/org.eclipse.platform_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/com.jcraft.jsch_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/javax.servlet_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/javax.servlet.jsp_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.apache.ant_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.apache.commons.el_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.apache.commons.logging_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.apache.lucene_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.apache.lucene.analysis_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ant.core_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.compare_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.compare.core_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.boot_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.filebuffers_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.filesystem_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.fedoraproject.ide.platform_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/features/org.fedoraproject.ide.feature_*
Ben Konrath 158e040
%{_libdir}/%{name}/plugins/org.eclipse.core.filesystem.linux.%{eclipse_arch}_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.net_*
Andrew Overholt fc7e41d
%ifarch %{ix86}
Andrew Overholt 7f97beb
%{_libdir}/%{name}/plugins/org.eclipse.core.net.linux.x86_*
Andrew Overholt fc7e41d
%endif
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.resources_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.resources.compatibility_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.runtime.compatibility.registry_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.core.variables_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.debug.core_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.debug.ui_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.http.jetty_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.http.registry_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.http.servlet_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.jsp.jasper_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.jsp.jasper.registry_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.help.appserver_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.help.base_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.help.ui_*
Ben Konrath 4c0ee09
%{_libdir}/%{name}/plugins/org.eclipse.help.webapp_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.jface.text_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.jsch.core_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.jsch.ui_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ltk.core.refactoring_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ltk.ui.refactoring_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.osgi.services_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.osgi.util_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.platform_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.platform.doc.user_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.search_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.team.core_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.team.ui_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.text_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.browser_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.cheatsheets_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.console_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.editors_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.externaltools_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.forms_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.ide_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.ide.application_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.intro_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.intro.universal_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.navigator_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.navigator.resources_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.net_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.presentations.r21_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.views_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.views.properties.tabbed_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.workbench.compatibility_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ui.workbench.texteditor_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.update.core_*
Ben Konrath 4c0ee09
%{_libdir}/%{name}/plugins/org.eclipse.update.core.linux_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.update.scheduler_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.update.ui_*
255430c
%{_libdir}/%{name}/plugins/org.mortbay.jetty.util_*
255430c
%{_libdir}/%{name}/plugins/org.mortbay.jetty.server_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.initializer_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.team.cvs.core_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.cvs_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.team.cvs.ssh2_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.team.cvs.ssh_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.team.cvs.ui_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/features/org.eclipse.cvs_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/features/org.eclipse.help_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.apache.jasper_*
Andrew Overholt 7f652ce
%{_libdir}/%{name}/plugins/org.eclipse.equinox.frameworkadmin_*
Andrew Overholt 7f652ce
%{_libdir}/%{name}/plugins/org.eclipse.equinox.frameworkadmin.equinox_*
Andrew Overholt 7f652ce
%{_libdir}/%{name}/plugins/org.eclipse.equinox.simpleconfigurator.manipulator_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/features/org.eclipse.equinox.p2.user.ui_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.director_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.core_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.engine_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.jarprocessor_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.metadata_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.metadata.repository_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.artifact.repository_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.exemplarysetup_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.touchpoint.eclipse_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.touchpoint.natives_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.console_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.ui_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.ui.sdk_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.ui.sdk.scheduler_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.updatechecker_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.garbagecollector_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.directorywatcher_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.publisher_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.repository_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.repository.tools_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.reconciler.dropins_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.metadata.generator_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.updatesite_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.security_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.security.ui_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.extensionlocation_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.equinox.p2.director.app_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ecf.provider.filetransfer_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.ecf.provider.filetransfer.httpclient_*
255430c
%{_libdir}/%{name}/plugins/org.eclipse.ecf.provider.filetransfer.httpclient.ssl_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ecf.provider.filetransfer.ssl_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ecf.ssl_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ecf_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ecf.filetransfer_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.eclipse.ecf.identity_*
255430c
%{_libdir}/%{name}/plugins/org.apache.commons.codec_*
255430c
%{_libdir}/%{name}/plugins/org.apache.commons.httpclient_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.sat4j.core_*
Andrew Overholt d5b2034
%{_libdir}/%{name}/plugins/org.sat4j.pb_*
Andrew Overholt 7f652ce
# Put this in -platform since we're putting the p2 stuff here
Andrew Overholt 7f652ce
%{_libdir}/%{name}/artifacts.xml
Andrew Overholt c9ccf4f
# FIXME: should we ship content.xml for the platform?
Andrew Overholt 8a2c6f4
#%{_libdir}/%{name}/metadata
Andrew Overholt 0994b94
%{_libdir}/%{name}/p2
Andrew Overholt 7f652ce
Andrew Overholt 7f652ce
%files jdt
Andrew Overholt 7f652ce
%defattr(-,root,root)
Andrew Overholt 7f652ce
%{_bindir}/efj
255430c
%{_libdir}/%{name}/dropins/jdt
255430c
#%{_libdir}/%{name}/dropins/jdt/content.xml
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/features
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.ant.ui_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.apt.core_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.apt.ui_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.apt.pluggable.core_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.compiler.apt_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.compiler.tool_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.core_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.core.manipulation_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.debug.ui_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.debug_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.junit_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.junit.runtime_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.junit4.runtime_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.launching_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.ui_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.junit_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.junit4_*
Andrew Overholt 7889e5c
%{_libdir}/%{name}/dropins/jdt/plugins/org.eclipse.jdt.doc.user_*
Ben Konrath 9dbdca5
Ben Konrath 9dbdca5
%files pde
Ben Konrath 9dbdca5
%defattr(-,root,root)
Andrew Overholt d5b2034
%{_libdir}/%{name}/buildscripts
Andrew Overholt c9ccf4f
%{_libdir}/%{name}/dropins/sdk
Andrew Overholt d5b2034
# FIXME:  where should this go?
21a5042
#%{_libdir}/%{name}/configuration/org.eclipse.equinox.source
Ben Konrath 9dbdca5
Andrew Overholt bfd4e0b
%changelog
1c43f0e
* Mon Apr 13 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.5.0-0.1.11
1c43f0e
- Remove more p2 generated files.
1c43f0e
303b3e2
* Mon Apr 13 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.5.0-0.1.10
303b3e2
- Do not install p2 generatad file.
303b3e2
a466bbe
* Fri Apr 10 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.5.0-0.1.9
a466bbe
- BR/R jakarta-commons-codec and jakarta-commons-httpclient.
a466bbe
43ecf62
* Thu Apr 9 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.5.0-0.1.8
43ecf62
- Add patch for xulrunner compilation.
43ecf62
6a5869b
* Tue Apr 7 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.5.0-0.1.7
6a5869b
- Fix patch name.
6a5869b
255430c
* Thu Apr 2 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.5.0-0.1.6
255430c
- First try for 3.5 build.