2009-03-10 18:35:57 +00:00
|
|
|
Epoch: 1
|
|
|
|
|
2012-01-16 10:20:05 +00:00
|
|
|
%global qualifier 200902111700
|
2009-03-10 18:35:57 +00:00
|
|
|
|
|
|
|
%define with_gcjbootstrap %{!?_with_gcjbootstrap:0}%{?_with_gcjbootstrap:1}
|
|
|
|
%define without_gcjbootstrap %{?_with_gcjbootstrap:0}%{!?_with_gcjbootstrap:1}
|
|
|
|
|
|
|
|
Summary: Eclipse Compiler for Java
|
|
|
|
Name: ecj
|
|
|
|
Version: 3.4.2
|
2012-04-17 14:36:40 +00:00
|
|
|
Release: 12%{?dist}
|
2009-03-10 18:35:57 +00:00
|
|
|
URL: http://www.eclipse.org
|
|
|
|
License: EPL
|
|
|
|
Group: Development/Languages
|
|
|
|
Source0: http://download.eclipse.org/eclipse/downloads/drops/R-%{version}-%{qualifier}/%{name}src-%{version}.zip
|
|
|
|
Source1: ecj.sh.in
|
|
|
|
# Use ECJ for GCJ
|
|
|
|
# cvs -d:pserver:anonymous@sourceware.org:/cvs/rhug \
|
|
|
|
# export -r eclipse_r34_1 eclipse-gcj
|
|
|
|
# tar cjf ecj-gcj.tar.bz2 eclipse-gcj
|
|
|
|
Source2: %{name}-gcj.tar.bz2
|
2012-01-16 10:20:05 +00:00
|
|
|
#Patched from http://repo2.maven.org/maven2/org/eclipse/jdt/core/3.3.0-v_771/core-3.3.0-v_771.pom
|
|
|
|
# No dependencies are needed for ecj, dependencies are for using of jdt.core which makes no sense outside of eclipse
|
|
|
|
Source3: core-3.3.0-v_771.pom
|
2009-03-10 18:35:57 +00:00
|
|
|
# Always generate debug info when building RPMs (Andrew Haley)
|
|
|
|
Patch0: %{name}-rpmdebuginfo.patch
|
|
|
|
Patch1: %{name}-defaultto1.5.patch
|
2009-03-11 17:32:38 +00:00
|
|
|
Patch2: %{name}-generatedebuginfo.patch
|
2009-03-10 18:35:57 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc-java >= 4.0.0
|
2009-03-10 19:13:24 +00:00
|
|
|
BuildRequires: /usr/bin/aot-compile-rpm
|
2009-03-10 18:35:57 +00:00
|
|
|
BuildRequires: java-gcj-compat
|
|
|
|
|
2009-03-10 18:50:59 +00:00
|
|
|
%if ! %{with_gcjbootstrap}
|
2009-03-10 18:35:57 +00:00
|
|
|
BuildRequires: ant
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Provides: eclipse-ecj = %{epoch}:%{version}-%{release}
|
|
|
|
Obsoletes: eclipse-ecj < 1:3.4.2-4
|
|
|
|
|
|
|
|
%description
|
|
|
|
ECJ is the Java bytecode compiler of the Eclipse Platform. It is also known as
|
|
|
|
the JDT Core batch compiler.
|
|
|
|
|
2012-04-17 14:36:40 +00:00
|
|
|
%package native
|
|
|
|
Summary: Native(gcj) bits for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: libgcj >= 4.0.0
|
|
|
|
Requires(post): java-gcj-compat
|
|
|
|
Requires(postun): java-gcj-compat
|
|
|
|
|
|
|
|
%description native
|
|
|
|
AOT compiled ecj to speed up when running under GCJ.
|
|
|
|
|
|
|
|
|
2009-03-10 18:35:57 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -c
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2009-03-11 17:32:38 +00:00
|
|
|
%patch2 -p1
|
2009-03-10 18:35:57 +00:00
|
|
|
|
2009-09-09 08:25:06 +00:00
|
|
|
cp %{SOURCE3} pom.xml
|
2009-03-10 18:35:57 +00:00
|
|
|
# Use ECJ for GCJ's bytecode compiler
|
|
|
|
tar jxf %{SOURCE2}
|
|
|
|
mv eclipse-gcj/org/eclipse/jdt/internal/compiler/batch/GCCMain.java \
|
|
|
|
org/eclipse/jdt/internal/compiler/batch/
|
|
|
|
cat eclipse-gcj/gcc.properties >> \
|
|
|
|
org/eclipse/jdt/internal/compiler/batch/messages.properties
|
|
|
|
rm -rf eclipse-gcj
|
|
|
|
|
|
|
|
# Remove bits of JDT Core we don't want to build
|
|
|
|
rm -r org/eclipse/jdt/internal/compiler/tool
|
|
|
|
rm -r org/eclipse/jdt/internal/compiler/apt
|
|
|
|
|
|
|
|
# JDTCompilerAdapter isn't used by the batch compiler
|
|
|
|
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if %{with_gcjbootstrap}
|
|
|
|
for f in `find -name '*.java' | cut -c 3- | LC_ALL=C sort`; do
|
|
|
|
gcj -Wno-deprecated -C $f
|
|
|
|
done
|
|
|
|
|
|
|
|
find -name '*.class' -or -name '*.properties' -or -name '*.rsc' |\
|
|
|
|
xargs fastjar cf %{name}-%{version}.jar
|
|
|
|
%else
|
|
|
|
ant
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
2012-01-16 10:20:05 +00:00
|
|
|
cp -a *.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
2009-03-10 18:35:57 +00:00
|
|
|
pushd $RPM_BUILD_ROOT%{_javadir}
|
2012-01-16 10:20:05 +00:00
|
|
|
ln -s %{name}.jar eclipse-%{name}.jar
|
|
|
|
ln -s %{name}.jar jdtcore.jar
|
2009-03-10 18:35:57 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
# Install the ecj wrapper script
|
|
|
|
install -p -D -m0755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/ecj
|
|
|
|
sed --in-place "s:@JAVADIR@:%{_javadir}:" $RPM_BUILD_ROOT%{_bindir}/ecj
|
|
|
|
|
|
|
|
aot-compile-rpm
|
|
|
|
|
2009-09-09 08:25:06 +00:00
|
|
|
# poms
|
2012-01-16 10:20:05 +00:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
2009-09-09 08:25:06 +00:00
|
|
|
install -pm 644 pom.xml \
|
2012-01-16 10:20:05 +00:00
|
|
|
$RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
2010-11-26 12:41:56 +00:00
|
|
|
|
2012-01-16 10:20:05 +00:00
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
2009-03-10 18:35:57 +00:00
|
|
|
|
2012-04-17 14:36:40 +00:00
|
|
|
%post native
|
2009-03-10 18:35:57 +00:00
|
|
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
|
|
then
|
|
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
fi
|
|
|
|
|
2012-04-17 14:36:40 +00:00
|
|
|
%postun native
|
2009-03-10 18:35:57 +00:00
|
|
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
|
|
then
|
|
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc about.html
|
2012-01-16 10:20:05 +00:00
|
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
2009-09-09 08:25:06 +00:00
|
|
|
%{_mavendepmapfragdir}/%{name}
|
2009-03-10 18:35:57 +00:00
|
|
|
%{_bindir}/%{name}
|
2012-01-16 10:20:05 +00:00
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_javadir}/eclipse-%{name}.jar
|
2009-03-10 18:35:57 +00:00
|
|
|
%{_javadir}/jdtcore.jar
|
2012-04-17 14:36:40 +00:00
|
|
|
|
|
|
|
%files native
|
2009-03-10 18:35:57 +00:00
|
|
|
%{_libdir}/gcj/%{name}
|
|
|
|
|
|
|
|
%changelog
|
2012-04-17 14:36:40 +00:00
|
|
|
* Tue Apr 17 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-12
|
|
|
|
- Separate gcj in subpackage.
|
|
|
|
|
2012-01-16 10:20:05 +00:00
|
|
|
* Mon Jan 16 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-11
|
|
|
|
- Patch pom file to better represent ecj and not jdt.core .
|
|
|
|
- Guidelines fixes.
|
|
|
|
|
2012-01-13 01:25:27 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-08 16:13:37 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-26 12:41:56 +00:00
|
|
|
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:3.4.2-8
|
|
|
|
- Fix add_to_maven_depmap call (Resolves rhbz#655796)
|
|
|
|
|
2009-12-21 21:26:45 +00:00
|
|
|
* Mon Dec 21 2009 Deepak Bhole <dbhole@redhat.com> - 1:3.4.2-7
|
|
|
|
- Fix RHBZ# 490936. If CLASSPATH is not set, add . to default classpath.
|
|
|
|
|
2009-09-09 08:25:06 +00:00
|
|
|
* Wed Sep 9 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-6
|
|
|
|
- Add maven pom and depmaps.
|
|
|
|
|
2009-07-24 20:49:38 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-03-11 17:32:38 +00:00
|
|
|
* Wed Mar 11 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-4
|
|
|
|
- Add patch to generate full debuginfo for ecj itself
|
|
|
|
|
2009-03-10 19:13:24 +00:00
|
|
|
* Tue Mar 10 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-3
|
|
|
|
- Add BR for aot-compile-rpm
|
|
|
|
|
2009-03-10 18:50:59 +00:00
|
|
|
* Tue Mar 10 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-2
|
|
|
|
- Add BR for ant
|
|
|
|
|
2009-03-10 18:35:57 +00:00
|
|
|
* Fri Mar 6 2009 Andrew Overholt <overholt@redhat.com> 1:3.4.2-1
|
|
|
|
- 3.4.2
|
|
|
|
|
|
|
|
* Tue Dec 9 2008 Andrew Overholt <overholt@redhat.com> 1:3.4.1-1
|
|
|
|
- 3.4.1
|
|
|
|
- Don't conditionalize building of gcj AOT bits (we're only building
|
|
|
|
this for gcj and IcedTea bootstrapping).
|
|
|
|
|
|
|
|
* Mon Jan 22 2007 Andrew Overholt <overholt@redhat.com> 3.2.1-1
|
|
|
|
- Add eclipse-ecj-gcj.patch.
|
|
|
|
|
|
|
|
* Fri Jan 12 2007 Andrew Overholt <overholt@redhat.com> 3.2.1-1
|
|
|
|
- First version for Fedora 7.
|
|
|
|
- Add BR: java-devel for jar.
|
|
|
|
|
|
|
|
* Thu Nov 02 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.1-1jpp
|
|
|
|
- First version for JPackage.
|
|
|
|
|
|
|
|
* Mon Jul 24 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.0-1
|
|
|
|
- Add versionless ecj.jar symlink in /usr/share/java.
|
|
|
|
|
|
|
|
* Wed Jul 19 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.0-1
|
|
|
|
- 3.2.0.
|
|
|
|
|
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Mon Mar 07 2005 Andrew Overholt <overholt@redhat.com> 1:3.1.0.M4.9
|
|
|
|
- Don't build for ppc or ia64.
|
|
|
|
|
|
|
|
* Sun Feb 20 2005 Andrew Overholt <overholt@redhat.com> 1:3.1.0.M4.6
|
|
|
|
- Upgrade back to 3.1M4.
|
|
|
|
- Don't build for i386 and x86_64.
|
|
|
|
- Provide eclipse-ecj until we can deprecate this package.
|
|
|
|
|
|
|
|
* Fri Jan 14 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.4
|
|
|
|
- build for all but x86
|
|
|
|
|
|
|
|
* Thu Jan 13 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.3
|
|
|
|
- build for ppc exclusively
|
|
|
|
|
|
|
|
* Wed Jan 12 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.2
|
|
|
|
- Add RPM_OPT_FLAGS workaround.
|
|
|
|
|
|
|
|
* Tue Jan 11 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.1
|
|
|
|
- New version.
|
|
|
|
|
|
|
|
* Mon Sep 27 2004 Gary Benson <gbenson@redhat.com> 2.1.3-5
|
|
|
|
- Rebuild with new katana.
|
|
|
|
|
|
|
|
* Fri Jul 22 2004 Gary Benson <gbenson@redhat.com> 2.1.3-4
|
|
|
|
- Build without bootstrap-ant.
|
|
|
|
- Split out lib-org-eclipse-jdt-internal-compiler.so.
|
|
|
|
|
|
|
|
* Tue Jul 6 2004 Gary Benson <gbenson@redhat.com> 2.1.3-3
|
|
|
|
- Fix ecj-devel's dependencies.
|
|
|
|
|
|
|
|
* Wed Jun 9 2004 Gary Benson <gbenson@redhat.com> 2.1.3-2
|
|
|
|
- Work around an optimiser failure somewhere in ecj or gcj (#125613).
|
|
|
|
|
|
|
|
* Fri May 28 2004 Gary Benson <gbenson@redhat.com>
|
|
|
|
- Build with katana.
|
|
|
|
|
|
|
|
* Mon May 24 2004 Gary Benson <gbenson@redhat.com> 2.1.3-1
|
|
|
|
- Initial Red Hat Linux build.
|
|
|
|
|
|
|
|
* Mon May 24 2004 Gary Benson <gbenson@redhat.com>
|
|
|
|
- Upgraded to latest version.
|
|
|
|
|
|
|
|
* Sun Jul 20 2003 Anthony Green <green@redhat.com>
|
|
|
|
- Add %%doc
|
|
|
|
|
|
|
|
* Fri Jul 18 2003 Anthony Green <green@redhat.com>
|
|
|
|
- Initial RHUG build.
|