cvsdist df631d8
# -*- RPM-SPEC -*-
cvsdist df631d8
# Uncomment for the IBM 1.3.1 JDK.
cvsdist df631d8
# %%define	java_home	/opt/IBMJava2-131
cvsdist df631d8
# Uncomment for the Sun JDK.
cvsdist df631d8
# %%define java_home	/usr/java/j2sdk1.4.0_01
cvsdist df631d8
#
cvsdist df631d8
# The next three are appropriate for use with either
cvsdist df631d8
# external JDK.  When using free tools, comment these out.
cvsdist df631d8
# %%define java_jre	%{java_home}/jre
cvsdist df631d8
# %%define java_runtime	%{java_jre}/lib/rt.jar
cvsdist df631d8
# %%define java_bin	%{java_home}/bin
cvsdist df631d8
#
cvsdist df631d8
# Uncomment the next 3 for gcj.  We define java_home oddly to
cvsdist df631d8
# avoid problems with Makefiles that pass it and subdirs via -I.
cvsdist df631d8
%define java_home	/nosuchdir
cvsdist df631d8
%define java_jre	/usr
cvsdist df631d8
%define java_runtime	%{java_jre}/share/java/libgcj-3.5-tree-ssa.jar
cvsdist df631d8
%define java_bin	/usr/bin
cvsdist df631d8
#
cvsdist df631d8
# Define as true to compile to native.
cvsdist df631d8
%define gcj_build	true
cvsdist df631d8
# Define as true to build .class files with ecj.
cvsdist df631d8
%define ecj_build	true
cvsdist df631d8
cvsdist df631d8
#
cvsdist df631d8
# Eclipse specs
cvsdist df631d8
#
cvsdist df631d8
Summary: Eclipse - an open extensible IDE
cvsdist df631d8
Name: eclipse
cvsdist df631d8
Version: 2.1.0
cvsdist df631d8
Release: 22
cvsdist df631d8
Copyright: Common Public License Version 0.5 <http://www.eclipse.org/legal/cpl-v05.html>
cvsdist df631d8
Group: Development/Tools
cvsdist df631d8
Source: eclipse-src.tar.gz
cvsdist df631d8
URL: http://www.eclipse.org
cvsdist df631d8
Requires: libgcj-ssa gtk2 ctags gdb make oprofile >= 0.5 binutils rpm-build gnome-utils
cvsdist df631d8
Provides: eclipse-SDK-2.0 eclipse-SDK
cvsdist df631d8
BuildRequires: pango gtk2-devel glib2-devel gnome-vfs2-devel desktop-file-utils ant gcc-java-ssa gcc-c++-ssa libgcj-ssa libgcj-ssa-devel oprofile-devel >= 0.5 binutils
cvsdist df631d8
Prefix: /usr/lib/eclipse
cvsdist df631d8
BuildRoot: %{_tmppath}/%{name}-buildroot
cvsdist df631d8
ExclusiveArch: i386 ppc
cvsdist df631d8
cvsdist df631d8
cvsdist df631d8
%description
cvsdist df631d8
The Eclipse Platform is designed for building integrated development
cvsdist df631d8
environments (IDEs) that can be used to create applications as diverse
cvsdist df631d8
as web sites, embedded Java (TM) programs, C++ programs, and Enterprise
cvsdist df631d8
JavaBeans (TM).
cvsdist df631d8
cvsdist df631d8
%prep
cvsdist df631d8
%setup -q -c 
cvsdist df631d8
cvsdist df631d8
%build
cvsdist df631d8
export JAVA_HOME=%{java_home}
cvsdist df631d8
export PATH=%{java_bin}:/usr/bin:$PATH
cvsdist df631d8
cvsdist df631d8
target=buildAll
cvsdist df631d8
build_options="-os linux -ws gtk -bc %{java_runtime}"
cvsdist df631d8
cvsdist df631d8
if %{gcj_build}; then
cvsdist df631d8
  export JAVACMD=%{java_bin}/gij-ssa
cvsdist df631d8
  export GCJ=gcj-ssa
cvsdist df631d8
  export CC=gcc-ssa
cvsdist df631d8
  target=gcjBuild
cvsdist df631d8
fi
cvsdist df631d8
cvsdist df631d8
if %{ecj_build}; then
cvsdist df631d8
  build_options="$build_options -ecj"
cvsdist df631d8
fi
cvsdist df631d8
cvsdist df631d8
./build -target $target $build_options
cvsdist df631d8
cvsdist df631d8
# A sanity check.
cvsdist df631d8
desktop-file-validate eclipse.desktop
cvsdist df631d8
cvsdist df631d8
%install
cvsdist df631d8
rm -rf ${RPM_BUILD_ROOT}
cvsdist df631d8
mkdir -p ${RPM_BUILD_ROOT}/%{prefix}
cvsdist df631d8
cvsdist df631d8
export JAVA_HOME=%{java_home}
cvsdist df631d8
export PATH=%{java_bin}:/usr/bin:$PATH
cvsdist df631d8
cvsdist df631d8
if %{gcj_build}; then
cvsdist df631d8
  export JAVACMD=%{java_bin}/gij-ssa
cvsdist df631d8
fi
cvsdist df631d8
cvsdist df631d8
# Compute standard options for build.
cvsdist df631d8
build_options="-os linux -ws gtk -bc %{java_runtime}"
cvsdist df631d8
if %{ecj_build}; then
cvsdist df631d8
  build_options="$build_options -ecj"
cvsdist df631d8
fi
cvsdist df631d8
cvsdist df631d8
./build -target zip.distribution  $build_options
cvsdist df631d8
cvsdist df631d8
rm -rf scratch
cvsdist df631d8
mkdir -p scratch
cvsdist df631d8
cvsdist df631d8
cp `find features -name \*.zip` scratch
cvsdist df631d8
grep -v '^#' MANIFEST | tar --files-from=- -cf - | (cd $RPM_BUILD_ROOT/%{prefix} && tar xfBp -)
cvsdist df631d8
cvsdist df631d8
(cd $RPM_BUILD_ROOT/%{prefix} && unzip -qq -o -u $RPM_BUILD_DIR/%{name}-%{version}/scratch/'*.zip')
cvsdist df631d8
cvsdist df631d8
# Since zip doesn't preserve file permissions, we must mark all the
cvsdist df631d8
# .so files as executable.
cvsdist df631d8
find $RPM_BUILD_ROOT/%{prefix} -name '*.so' -print | xargs chmod +x
cvsdist df631d8
cvsdist df631d8
# Copy the gcj-built .so files.
cvsdist df631d8
./gcjBuild install $RPM_BUILD_ROOT/%{prefix}
cvsdist df631d8
cvsdist df631d8
chmod +x eclipse-start
cvsdist df631d8
install -D eclipse-start ${RPM_BUILD_ROOT}%{_bindir}/eclipse
cvsdist df631d8
cvsdist df631d8
install -D eclipse.desktop ${RPM_BUILD_ROOT}%{_datadir}/applications/eclipse.desktop
cvsdist df631d8
cvsdist df631d8
# Symlink to JRE.
cvsdist df631d8
# ln -s %{java_jre} ${RPM_BUILD_ROOT}%{prefix}/java
cvsdist df631d8
cvsdist df631d8
cvsdist df631d8
# oprofile install
cvsdist df631d8
ln -s /usr/bin/consolehelper ${RPM_BUILD_ROOT}%{prefix}/plugins/com.redhat.eclipse.oprofile.core.linux_1.0.0/opcontrol-wrapper
cvsdist df631d8
install -D -m 644 plugins/com.redhat.eclipse.oprofile.core.linux/opcontrol-wrapper.security ${RPM_BUILD_ROOT}/etc/security/console.apps/opcontrol-wrapper
cvsdist df631d8
install -D -m 644 plugins/com.redhat.eclipse.oprofile.core.linux/opcontrol-wrapper.pamd ${RPM_BUILD_ROOT}/etc/pam.d/opcontrol-wrapper
cvsdist df631d8
chmod +x ${RPM_BUILD_ROOT}/%{prefix}/plugins/com.redhat.eclipse.oprofile.core.linux_1.0.0/os/linux/x86/opxml
cvsdist df631d8
cvsdist df631d8
%clean 
cvsdist df631d8
rm -rf ${RPM_BUILD_ROOT}
cvsdist df631d8
cvsdist df631d8
%files
cvsdist df631d8
%defattr(-,root,root)
cvsdist df631d8
%{_bindir}/eclipse
cvsdist df631d8
%{prefix}
cvsdist df631d8
%{_datadir}/applications/eclipse.desktop
cvsdist df631d8
%config(noreplace) /etc/security/console.apps/opcontrol-wrapper
cvsdist df631d8
%config(noreplace) /etc/pam.d/opcontrol-wrapper
cvsdist df631d8
cvsdist df631d8
%changelog
cvsdist df631d8
* Mon Sep 29 2003 Tom Tromey <tromey@redhat.com> 2.1.0-22
cvsdist df631d8
- Updated upstream sources; oprofile plugin works
cvsdist df631d8
cvsdist df631d8
* Wed Sep 24 2003 Tom Tromey <tromey@redhat.com> 2.1.0-21
cvsdist df631d8
- Updated upstream sources; fixes oprofile buglets, also doc updates
cvsdist df631d8
cvsdist df631d8
* Mon Sep 22 2003 Tom Tromey 
cvsdist df631d8
- Backed out xalan-j requirement; it causes problems
cvsdist df631d8
- Updated upstream sources; pulls in new documentation
cvsdist df631d8
cvsdist df631d8
* Mon Sep 22 2003 Tom Tromey 
cvsdist df631d8
- Fix for PR 104274.  Set LANG in startup script.
cvsdist df631d8
cvsdist df631d8
* Wed Sep 17 2003 Tom Tromey <tromey@redhat.com> 2.1.0-18
cvsdist df631d8
- xalan-j required at build time and runtime; bugzilla 104513
cvsdist df631d8
cvsdist df631d8
* Mon Sep 15 2003 Tom Tromey <tromey@redhat.com> 2.1.0-17
cvsdist df631d8
- Bug fixes in sources
cvsdist df631d8
cvsdist df631d8
* Fri Sep 05 2003 Tom Tromey <tromey@redhat.com> 2.1.0-16
cvsdist df631d8
- Updated upstream sources
cvsdist df631d8
cvsdist df631d8
* Fri Aug 15 2003 Tom Tromey <tromey@redhat.com> 2.1.0-15
cvsdist df631d8
- Don't build eclipse with -O2 for now
cvsdist df631d8
 
cvsdist df631d8
* Thu Aug 14 2003 Tom Tromey <tromey@redhat.com> 2.1.0-14
cvsdist df631d8
- Updated eclipse sources
cvsdist df631d8
 
cvsdist df631d8
* Thu Aug  7 2003 Tom Tromey <tromey@redhat.com> 2.1.0-13
cvsdist df631d8
- g++ is build requirement
cvsdist df631d8
cvsdist df631d8
* Mon Jul 21 2003 Tom Tromey <tromey@redhat.com> 2.1.0-12
cvsdist df631d8
- Enable gcj build again
cvsdist df631d8
cvsdist df631d8
* Thu Jul 17 2003 Tom Tromey <tromey@redhat.com> 2.1.0-11
cvsdist df631d8
- Updated sources to fix -vm bug
cvsdist df631d8
cvsdist df631d8
* Thu Jul 17 2003 Tom Tromey <tromey@redhat.com> 2.1.0-10
cvsdist df631d8
- Updated sources
cvsdist df631d8
cvsdist df631d8
* Wed Jul 16 2003 Tom Tromey <tromey@redhat.com> 2.1.0-9
cvsdist df631d8
- Updated upstream sources
cvsdist df631d8
cvsdist df631d8
* Wed Jul 16 2003 Tom Tromey <tromey@redhat.com> 2.1.0-8
cvsdist df631d8
- Updated upstream sources
cvsdist df631d8
- Require gnome-vfs2-devel at build time
cvsdist df631d8
cvsdist df631d8
* Fri Jul 11 2003 Tom Tromey <tromey@redhat.com> 2.1.0-7
cvsdist df631d8
- Use LD_ASSUME_KERNEL hack
cvsdist df631d8
cvsdist df631d8
* Fri Jul 11 2003 Tom Tromey <tromey@redhat.com> 2.1.0-6
cvsdist df631d8
- Updated sources
cvsdist df631d8
cvsdist df631d8
* Wed Jul  9 2003 Tom Tromey <tromey@redhat.com> 2.1.0-5
cvsdist df631d8
- Updated upstream sources
cvsdist df631d8
- Removed j2sdk dependency
cvsdist df631d8
- Added rpm-build and gnome-utils dependencies
cvsdist df631d8
cvsdist df631d8
* Tue Jul  8 2003 Tom Tromey <tromey@redhat.com> 2.1.0-4
cvsdist df631d8
- Updated upstream sources
cvsdist df631d8
cvsdist df631d8
* Sun Jul  6 2003 Tom Tromey <tromey@redhat.com> 2.1.0-3
cvsdist df631d8
- Fixed more build buglets
cvsdist df631d8
cvsdist df631d8
* Sat Jul  5 2003 Tom Tromey <tromey@redhat.com> 2.1.0-2
cvsdist df631d8
- Don't build .so files at all
cvsdist df631d8
cvsdist df631d8
* Sat Jul  5 2003 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Require Sun JVM
cvsdist df631d8
cvsdist df631d8
* Wed Jul  2 2003 Tom Tromey <tromey@redhat.com> 2.1.0-1
cvsdist df631d8
- Updated to eclipse 2.1
cvsdist df631d8
cvsdist df631d8
* Tue Jul  2 2003 Keith Seitz <keiths@redhat.com>
cvsdist df631d8
- From Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Use i386, not x86, in ExclusiveArch
cvsdist df631d8
cvsdist df631d8
* Tue Jul  2 2003 Keith Seitz <keiths@redhat.com>
cvsdist df631d8
- Set executable bit for opxml since zip won't preserve it.
cvsdist df631d8
cvsdist df631d8
* Wed May 14 2003 Keith Seitz <keiths@redhat.com>
cvsdist df631d8
- Add oprofile plugin installation requirements.
cvsdist df631d8
cvsdist df631d8
* Mon May  5 2003 Tom Tromey <tromey@redhat.com> 2.0.1-25
cvsdist df631d8
- Use ExclusiveArch, not ExcludeArch
cvsdist df631d8
cvsdist df631d8
* Fri May  2 2003 Tom Tromey <tromey@redhat.com> 2.0.1-24
cvsdist df631d8
- Exclude ppc64
cvsdist df631d8
cvsdist df631d8
* Wed Apr 23 2003 Tom Tromey <tromey@redhat.com> 2.0.1-23
cvsdist df631d8
- Require gdb and make
cvsdist df631d8
cvsdist df631d8
* Tue Apr  8 2003 Tom Tromey <tromey@redhat.com> 2.0.1-22
cvsdist df631d8
- Bumped release for new build
cvsdist df631d8
- Fixed bug in JDT build
cvsdist df631d8
cvsdist df631d8
* Mon Apr  7 2003 Tom Tromey <tromey@redhat.com> 2.0.1-21
cvsdist df631d8
- Bumped release for rebuild
cvsdist df631d8
cvsdist df631d8
* Tue Apr  1 2003 Tom Tromey <tromey@redhat.com> 2.0.1-20
cvsdist df631d8
- Allow builds on ppc
cvsdist df631d8
cvsdist df631d8
* Fri Mar 28 2003 Tom Tromey <tromey@redhat.com> 2.0.1-19
cvsdist df631d8
- Changes to use gcc-ssa compiler
cvsdist df631d8
- Default to gcj build; install files required for gcj
cvsdist df631d8
- Define and use java_bin
cvsdist df631d8
- Only build on x86
cvsdist df631d8
cvsdist df631d8
* Wed Mar  5 2003 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Use build script to create ecj, compute architecture, choose targets
cvsdist df631d8
- Release 18
cvsdist df631d8
cvsdist df631d8
* Tue Feb 18 2003 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Replaced jikes with ecj
cvsdist df631d8
- Release 17
cvsdist df631d8
cvsdist df631d8
* Wed Feb  5 2003 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Added -arch to build, code to build with gcj, code to build with jikes,
cvsdist df631d8
  code to use Sun JDK
cvsdist df631d8
- Removed java_jrelib
cvsdist df631d8
- Now release 16
cvsdist df631d8
cvsdist df631d8
* Tue Dec 10 2002 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Invoke buildNative
cvsdist df631d8
- Now release 15
cvsdist df631d8
cvsdist df631d8
* Wed Nov 27 2002 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Removed "-linux" from name
cvsdist df631d8
- Now release 14
cvsdist df631d8
cvsdist df631d8
* Tue Nov 26 2002 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Changed name to eclipse
cvsdist df631d8
- Removed Conflicts
cvsdist df631d8
- Updated Provides
cvsdist df631d8
- Now release 13
cvsdist df631d8
cvsdist df631d8
* Tue Nov 26 2002 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Install eclipse.desktop in %{_datadir}/applications, for 8.x
cvsdist df631d8
- Now release 12
cvsdist df631d8
cvsdist df631d8
* Tue Nov  5 2002 Jeff Johnson <jbj@redhat.com>
cvsdist df631d8
- Define java_home, java_jre, java_jrelib
cvsdist df631d8
- Use %setup
cvsdist df631d8
- Minor cleanups in %build
cvsdist df631d8
- Use _bindir
cvsdist df631d8
cvsdist df631d8
* Thu Oct 24 2002 Andrew Haley <aph@redhat.com>
cvsdist df631d8
- eclipse-2.0-linux-gtk.spec (Source): Now use gzip.
cvsdist df631d8
- (install): Now use Ant zip.distribution to do this installation.
cvsdist df631d8
- Added Requires for ctags.
cvsdist df631d8
cvsdist df631d8
* Fri Oct 18 2002 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Require JDK 1.3.1
cvsdist df631d8
- Added BuildReq for ant
cvsdist df631d8
- Use MANIFEST file to decide what to copy into install tree
cvsdist df631d8
cvsdist df631d8
* Tue Oct 15 2002 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Eclipse source now bzipped
cvsdist df631d8
cvsdist df631d8
* Mon Oct 14 2002 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- No patch required
cvsdist df631d8
cvsdist df631d8
* Fri Oct 11 2002 Tom Tromey <tromey@redhat.com>
cvsdist df631d8
- Added .desktop file
cvsdist df631d8
- Added BuildReq for desktop-file-utils