927b8c
Epoch: 1
927b8c
927b8c
%global qualifier 201209141800
927b8c
927b8c
Summary: Eclipse Compiler for Java
927b8c
Name: ecj
927b8c
Version: 4.2.1
f347fd
Release: 8%{?dist}
927b8c
URL: http://www.eclipse.org
927b8c
License: EPL
927b8c
Group: Development/Languages
927b8c
Source0: http://download.eclipse.org/eclipse/downloads/drops4/R-%{version}-%{qualifier}/%{name}src-%{version}.jar
927b8c
Source1: ecj.sh.in
927b8c
#Patched from http://repo2.maven.org/maven2/org/eclipse/jdt/core/3.3.0-v_771/core-3.3.0-v_771.pom 
927b8c
# No dependencies are needed for ecj, dependencies are for using of jdt.core which makes no sense outside of eclipse
927b8c
Source2: core-3.3.0-v_771.pom
927b8c
# Always generate debug info when building RPMs (Andrew Haley)
927b8c
Patch0: %{name}-rpmdebuginfo.patch
927b8c
Patch1: %{name}-defaultto1.5.patch
927b8c
Patch2: %{name}-generatedebuginfo.patch
927b8c
# build.xml fails to include a necessary .props file in the built ecj.jar
927b8c
Patch3: %{name}-include-props.patch
927b8c
927b8c
BuildRequires: ant
927b8c
BuildRequires: java-devel >= 1:1.7.0 
927b8c
927b8c
Provides: eclipse-ecj = %{epoch}:%{version}-%{release}
927b8c
Obsoletes: eclipse-ecj < 1:3.4.2-4
927b8c
927b8c
%description
927b8c
ECJ is the Java bytecode compiler of the Eclipse Platform.  It is also known as
927b8c
the JDT Core batch compiler.
927b8c
927b8c
%prep
927b8c
%setup -q -c
927b8c
%patch0 -p1
927b8c
%patch1 -p1
927b8c
%patch2 -p1
927b8c
%patch3 -p1
927b8c
927b8c
cp %{SOURCE2} pom.xml
927b8c
927b8c
# Remove bits of JDT Core we don't want to build
927b8c
rm -r org/eclipse/jdt/internal/compiler/tool
927b8c
rm -r org/eclipse/jdt/internal/compiler/apt
927b8c
rm -f org/eclipse/jdt/core/BuildJarIndex.java
927b8c
927b8c
# JDTCompilerAdapter isn't used by the batch compiler
927b8c
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java
927b8c
927b8c
%build
927b8c
ant
927b8c
927b8c
%install
927b8c
mkdir -p $RPM_BUILD_ROOT%{_javadir}
927b8c
cp -a *.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
927b8c
pushd $RPM_BUILD_ROOT%{_javadir}
927b8c
ln -s %{name}.jar eclipse-%{name}.jar
927b8c
ln -s %{name}.jar jdtcore.jar
927b8c
popd
927b8c
927b8c
# Install the ecj wrapper script
927b8c
install -p -D -m0755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/ecj
927b8c
sed --in-place "s:@JAVADIR@:%{_javadir}:" $RPM_BUILD_ROOT%{_bindir}/ecj
927b8c
927b8c
# poms
927b8c
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
927b8c
install -pm 644 pom.xml \
927b8c
    $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
927b8c
927b8c
%add_maven_depmap -a "org.eclipse.tycho:org.eclipse.jdt.core,org.eclipse.jdt.core.compiler:ecj" JPP-%{name}.pom %{name}.jar
927b8c
927b8c
%files
927b8c
%doc about.html
927b8c
%{_mavenpomdir}/JPP-%{name}.pom
927b8c
%{_mavendepmapfragdir}/%{name}
927b8c
%{_bindir}/%{name}
927b8c
%{_javadir}/%{name}.jar
927b8c
%{_javadir}/eclipse-%{name}.jar
927b8c
%{_javadir}/jdtcore.jar
927b8c
927b8c
%changelog
f347fd
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1:4.2.1-8
f347fd
- Mass rebuild 2014-01-24
f347fd
f347fd
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:4.2.1-7
f347fd
- Mass rebuild 2013-12-27
f347fd
927b8c
* Tue Apr 09 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:4.2.1-6
927b8c
- Add depmap for org.eclipse.jdt.core.compiler:ecj
927b8c
- Resolves: rhbz#951064
927b8c
927b8c
* Fri Apr 05 2013 Jon VanAlten <jon.vanalten@redhat.com> 1:4.2.1-6
927b8c
- Remove gcj entry point, native subpackage, and gcj bootstrap entirely (fixes RHBZ927665).
927b8c
927b8c
* Wed Mar 06 2013 Karsten Hopp <karsten@redhat.com> 1:4.2.1-5
927b8c
- add BR java-devel for !with_gcjbootstrap
927b8c
927b8c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.2.1-4
927b8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
927b8c
927b8c
* Mon Oct 29 2012 Jon VanAlten <jon.vanalten@redhat.com> 1:4.2.1-3
927b8c
- Patch GCCMain to avoid dummy symbols.
927b8c
927b8c
* Wed Oct 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:4.2.1-2
927b8c
- Add depmap satysfying Tycho req.
927b8c
927b8c
* Wed Jul 31 2012 Jon VanAlten <jon.vanalten@redhat.com> 1:4.2.1-1
927b8c
- Update to 4.2.1 upstream version.
927b8c
927b8c
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-14
927b8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
927b8c
927b8c
* Wed Apr 18 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-13
927b8c
- Add missing epoch to native subpackage requires.
927b8c
927b8c
* Tue Apr 17 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-12
927b8c
- Separate gcj in subpackage.
927b8c
927b8c
* Mon Jan 16 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-11
927b8c
- Patch pom file to better represent ecj and not jdt.core .
927b8c
- Guidelines fixes.
927b8c
927b8c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-10
927b8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
927b8c
927b8c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-9
927b8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
927b8c
927b8c
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:3.4.2-8
927b8c
- Fix add_to_maven_depmap call (Resolves rhbz#655796)
927b8c
927b8c
* Mon Dec 21 2009 Deepak Bhole <dbhole@redhat.com> - 1:3.4.2-7
927b8c
- Fix RHBZ# 490936. If CLASSPATH is not set, add . to default classpath.
927b8c
927b8c
* Wed Sep 9 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-6
927b8c
- Add maven pom and depmaps.
927b8c
927b8c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-5
927b8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
927b8c
927b8c
* Wed Mar 11 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-4
927b8c
- Add patch to generate full debuginfo for ecj itself
927b8c
927b8c
* Tue Mar 10 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-3
927b8c
- Add BR for aot-compile-rpm
927b8c
927b8c
* Tue Mar 10 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-2
927b8c
- Add BR for ant
927b8c
927b8c
* Fri Mar 6 2009 Andrew Overholt <overholt@redhat.com> 1:3.4.2-1
927b8c
- 3.4.2
927b8c
927b8c
* Tue Dec 9 2008 Andrew Overholt <overholt@redhat.com> 1:3.4.1-1
927b8c
- 3.4.1
927b8c
- Don't conditionalize building of gcj AOT bits (we're only building
927b8c
  this for gcj and IcedTea bootstrapping).
927b8c
927b8c
* Mon Jan 22 2007 Andrew Overholt <overholt@redhat.com> 3.2.1-1
927b8c
- Add eclipse-ecj-gcj.patch.
927b8c
927b8c
* Fri Jan 12 2007 Andrew Overholt <overholt@redhat.com> 3.2.1-1
927b8c
- First version for Fedora 7.
927b8c
- Add BR: java-devel for jar.
927b8c
927b8c
* Thu Nov 02 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.1-1jpp
927b8c
- First version for JPackage.
927b8c
927b8c
* Mon Jul 24 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.0-1
927b8c
- Add versionless ecj.jar symlink in /usr/share/java.
927b8c
927b8c
* Wed Jul 19 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.0-1
927b8c
- 3.2.0.
927b8c
927b8c
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
927b8c
- rebuilt
927b8c
927b8c
* Mon Mar 07 2005 Andrew Overholt <overholt@redhat.com> 1:3.1.0.M4.9
927b8c
- Don't build for ppc or ia64.
927b8c
927b8c
* Sun Feb 20 2005 Andrew Overholt <overholt@redhat.com> 1:3.1.0.M4.6
927b8c
- Upgrade back to 3.1M4.
927b8c
- Don't build for i386 and x86_64.
927b8c
- Provide eclipse-ecj until we can deprecate this package.
927b8c
927b8c
* Fri Jan 14 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.4
927b8c
- build for all but x86
927b8c
927b8c
* Thu Jan 13 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.3
927b8c
- build for ppc exclusively
927b8c
927b8c
* Wed Jan 12 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.2
927b8c
- Add RPM_OPT_FLAGS workaround.
927b8c
927b8c
* Tue Jan 11 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.1
927b8c
- New version.
927b8c
927b8c
* Mon Sep 27 2004 Gary Benson <gbenson@redhat.com> 2.1.3-5
927b8c
- Rebuild with new katana.
927b8c
927b8c
* Fri Jul 22 2004 Gary Benson <gbenson@redhat.com> 2.1.3-4
927b8c
- Build without bootstrap-ant.
927b8c
- Split out lib-org-eclipse-jdt-internal-compiler.so.
927b8c
927b8c
* Tue Jul  6 2004 Gary Benson <gbenson@redhat.com> 2.1.3-3
927b8c
- Fix ecj-devel's dependencies.
927b8c
927b8c
* Wed Jun  9 2004 Gary Benson <gbenson@redhat.com> 2.1.3-2
927b8c
- Work around an optimiser failure somewhere in ecj or gcj (#125613).
927b8c
927b8c
* Fri May 28 2004 Gary Benson <gbenson@redhat.com>
927b8c
- Build with katana.
927b8c
927b8c
* Mon May 24 2004 Gary Benson <gbenson@redhat.com> 2.1.3-1
927b8c
- Initial Red Hat Linux build.
927b8c
927b8c
* Mon May 24 2004 Gary Benson <gbenson@redhat.com>
927b8c
- Upgraded to latest version.
927b8c
927b8c
* Sun Jul 20 2003 Anthony Green <green@redhat.com>
927b8c
- Add %%doc
927b8c
927b8c
* Fri Jul 18 2003 Anthony Green <green@redhat.com>
927b8c
- Initial RHUG build.