bd3beb
Epoch: 1
bd3beb
bd3beb
%global qualifier S-4.11RC1-201903010040
bd3beb
bd3beb
Summary: Eclipse Compiler for Java
bd3beb
Name: ecj
bd3beb
Version: 4.11
bd3beb
Release: 0.1%{?dist}
bd3beb
URL: http://www.eclipse.org
bd3beb
License: EPL-2.0
bd3beb
bd3beb
Source0: http://download.eclipse.org/eclipse/downloads/drops4/%{qualifier}/ecjsrc-%{version}RC1.jar
bd3beb
Source1: ecj.sh.in
bd3beb
Source3: https://repo1.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/%{version}/ecj-%{version}.pom
bd3beb
# Extracted from https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/%%{qualifier}/ecj-%%{version}.jar
bd3beb
Source4: MANIFEST.MF
bd3beb
# Java API stubs for newer JDKs
bd3beb
Source5: java10api.jar
bd3beb
bd3beb
# Always generate debug info when building RPMs (Andrew Haley)
bd3beb
Patch0: %{name}-rpmdebuginfo.patch
bd3beb
bd3beb
# Include java API stubs in build
bd3beb
Patch1: javaAPI.patch
bd3beb
bd3beb
BuildArch: noarch
bd3beb
bd3beb
BuildRequires: ant
bd3beb
BuildRequires: javapackages-local
bd3beb
bd3beb
%description
bd3beb
ECJ is the Java bytecode compiler of the Eclipse Platform.  It is also known as
bd3beb
the JDT Core batch compiler.
bd3beb
bd3beb
%prep
bd3beb
%setup -q -c
bd3beb
%patch0 -p1
bd3beb
%patch1
bd3beb
bd3beb
sed -i -e 's|debuglevel=\"lines,source\"|debug=\"yes\"|g' build.xml
bd3beb
bd3beb
cp %{SOURCE3} pom.xml
bd3beb
mkdir -p scripts/binary/META-INF/
bd3beb
cp %{SOURCE4} scripts/binary/META-INF/MANIFEST.MF
bd3beb
bd3beb
# JDTCompilerAdapter isn't used by the batch compiler
bd3beb
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java
bd3beb
bd3beb
# No dep on ant needed
bd3beb
%pom_remove_dep org.apache.ant:ant
bd3beb
bd3beb
# Symlinks and aliases
bd3beb
%mvn_file :ecj ecj jdtcore
bd3beb
%mvn_alias org.eclipse.jdt.core.compiler:ecj \
bd3beb
  org.eclipse.tycho:org.eclipse.jdt.core org.eclipse.tycho:org.eclipse.jdt.compiler.apt \
bd3beb
  org.eclipse.jdt:core org.eclipse.jdt:ecj
bd3beb
bd3beb
# Make Java API stubs available for other packages
bd3beb
%mvn_artifact "org.eclipse:java10api:jar:10" %{SOURCE5}
bd3beb
%mvn_alias "org.eclipse:java10api:jar:10" "org.eclipse:java9api:jar:9"
bd3beb
bd3beb
%build
bd3beb
ant -Djavaapi=%{SOURCE5}
bd3beb
bd3beb
%install
bd3beb
%mvn_artifact pom.xml ecj.jar
bd3beb
%mvn_install
bd3beb
bd3beb
# Install the ecj wrapper script
bd3beb
install -p -D -m0755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/ecj
bd3beb
bd3beb
# Install manpage
bd3beb
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
bd3beb
install -m 644 -p ecj.1 $RPM_BUILD_ROOT%{_mandir}/man1/ecj.1
bd3beb
bd3beb
%files -f .mfiles
bd3beb
%license about.html
bd3beb
%{_bindir}/ecj
bd3beb
%{_mandir}/man1/ecj*
bd3beb
bd3beb
%changelog
bd3beb
* Thu Mar 07 2019 Mat Booth <mat.booth@redhat.com> - 1:4.11-0.1
bd3beb
- Update to latest release candidate of 4.11
bd3beb
bd3beb
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.10-2
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bd3beb
bd3beb
* Tue Dec 11 2018 Mat Booth <mat.booth@redhat.com> - 1:4.10-1
bd3beb
- Update to 2018-12 release
bd3beb
bd3beb
* Wed Sep 12 2018 Mat Booth <mat.booth@redhat.com> - 1:4.9-1
bd3beb
- Update to latest release
bd3beb
- Amend license tag
bd3beb
bd3beb
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.3a-2
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bd3beb
bd3beb
* Mon Apr 09 2018 Mat Booth <mat.booth@redhat.com> - 1:4.7.3a-1
bd3beb
- Update to Oxygen.3a release for java 10 support
bd3beb
- Break circular dep on JDT by providing the java API stubs in this package
bd3beb
bd3beb
* Tue Mar 20 2018 Mat Booth <mat.booth@redhat.com> - 1:4.7.3-1
bd3beb
- Update to Oxygen.3
bd3beb
bd3beb
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.1-2
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bd3beb
bd3beb
* Thu Sep 21 2017 Mat Booth <mat.booth@redhat.com> - 1:4.7.1-1
bd3beb
- Update to Oxygen.1 release
bd3beb
bd3beb
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.6.3-3
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bd3beb
bd3beb
* Thu Jun 15 2017 Michael Simacek <msimacek@redhat.com> - 1:4.6.3-2
bd3beb
- Update aliases for jetty
bd3beb
bd3beb
* Wed Mar 29 2017 Mat Booth <mat.booth@redhat.com> - 1:4.6.3-1
bd3beb
- Update to Neon.3 release
bd3beb
bd3beb
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.6.2-2
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bd3beb
bd3beb
* Tue Jan 10 2017 Mat Booth <mat.booth@redhat.com> - 1:4.6.2-1
bd3beb
- Update to Neon.2 release
bd3beb
bd3beb
* Fri Jul 01 2016 Mat Booth <mat.booth@redhat.com> - 1:4.6-1
bd3beb
- Update to Neon release
bd3beb
bd3beb
* Tue Apr 26 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.2-3
bd3beb
- Re-add alias for org.eclipse.jdt:core
bd3beb
bd3beb
* Fri Apr 22 2016 Mat Booth <mat.booth@redhat.com> - 1:4.5.2-2
bd3beb
- Drop aliases that are now provided by eclipse-jdt
bd3beb
bd3beb
* Mon Feb 29 2016 Mat Booth <mat.booth@redhat.com> - 1:4.5.2-1
bd3beb
- Update to Mars.2 release
bd3beb
bd3beb
* Fri Feb 05 2016 Mat Booth <mat.booth@redhat.com> - 1:4.5.1-3
bd3beb
- Allow any compression man pages
bd3beb
bd3beb
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.5.1-2
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bd3beb
bd3beb
* Tue Oct 06 2015 Mat Booth <mat.booth@redhat.com> - 1:4.5.1-1
bd3beb
- Update to Mars.1 release
bd3beb
bd3beb
* Thu Jul 2 2015 Alexander Kurtakov <akurtako@redhat.com> 1:4.5-1
bd3beb
- Update to upstream 4.5 release.
bd3beb
bd3beb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.4.2-2
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bd3beb
bd3beb
* Mon Mar 30 2015 Mat Booth <mat.booth@redhat.com> - 1:4.4.2-1
bd3beb
- Update to 4.4.2.
bd3beb
- Install with mvn_install
bd3beb
- Add jetty.orbit alias
bd3beb
- Add compiler.apt aliases
bd3beb
- Drop ancient obsoletes/provides on eclipse-ecj
bd3beb
- Use man page from upstream source
bd3beb
bd3beb
* Thu Jan 8 2015 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.1-1
bd3beb
- Update to 4.4.1.
bd3beb
bd3beb
* Thu Jul 3 2014 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.0-1
bd3beb
- Update to 4.4 final.
bd3beb
- Drop gcj patches as gcj is not in Fedora anymore and ecj now requires 1.6.
bd3beb
bd3beb
* Thu Jun 12 2014 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.0-0.4.git20140430
bd3beb
- Add additional depmap for maven.
bd3beb
bd3beb
* Mon Jun 9 2014 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.0-0.3.git20140430
bd3beb
- Fix FTBFS.
bd3beb
bd3beb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.4.0-0.2.git20140430
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bd3beb
bd3beb
* Thu May 1 2014 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.0-0.1.git20140430
bd3beb
- Update to 4.4.0 I-build to make it cope with Java 8.
bd3beb
bd3beb
* Mon Apr 14 2014 Mat Booth <mat.booth@redhat.com> - 1:4.2.1-10
bd3beb
- Drop gcj AOT-compilation support.
bd3beb
- Obsolete -native sub-package.
bd3beb
bd3beb
* Wed Oct 09 2013 gil cattaneo <puntogil@libero.it> 1:4.2.1-9
bd3beb
- enable build of org/eclipse/jdt/internal/compiler/[apt,tool]
bd3beb
  (ant build mode only), required by querydsl
bd3beb
- remove some rpmlint problems (invalid date)
bd3beb
bd3beb
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.2.1-8
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bd3beb
bd3beb
* Tue May 21 2013 Jon VanAlten <jon.vanalten@redhat.com> - 4.2.1-7
bd3beb
- Add manpage for ecj executable
bd3beb
- Resolves: rhbz#948442
bd3beb
bd3beb
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-6
bd3beb
- Add depmap for org.eclipse.jdt.core.compiler:ecj
bd3beb
- Resolves: rhbz#949938
bd3beb
bd3beb
* Wed Mar 06 2013 Karsten Hopp <karsten@redhat.com> 1:4.2.1-5
bd3beb
- add BR java-devel for !with_gcjbootstrap
bd3beb
bd3beb
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.2.1-4
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bd3beb
bd3beb
* Mon Oct 29 2012 Jon VanAlten <jon.vanalten@redhat.com> 1:4.2.1-3
bd3beb
- Patch GCCMain to avoid dummy symbols.
bd3beb
bd3beb
* Wed Oct 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:4.2.1-2
bd3beb
- Add depmap satysfying Tycho req.
bd3beb
bd3beb
* Sun Jul 29 2012 Jon VanAlten <jon.vanalten@redhat.com> 1:4.2.1-1
bd3beb
- Update to 4.2.1 upstream version.
bd3beb
bd3beb
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-14
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bd3beb
bd3beb
* Wed Apr 18 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-13
bd3beb
- Add missing epoch to native subpackage requires.
bd3beb
bd3beb
* Tue Apr 17 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-12
bd3beb
- Separate gcj in subpackage.
bd3beb
bd3beb
* Mon Jan 16 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-11
bd3beb
- Patch pom file to better represent ecj and not jdt.core .
bd3beb
- Guidelines fixes.
bd3beb
bd3beb
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-10
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bd3beb
bd3beb
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-9
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bd3beb
bd3beb
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:3.4.2-8
bd3beb
- Fix add_to_maven_depmap call (Resolves rhbz#655796)
bd3beb
bd3beb
* Mon Dec 21 2009 Deepak Bhole <dbhole@redhat.com> - 1:3.4.2-7
bd3beb
- Fix RHBZ# 490936. If CLASSPATH is not set, add . to default classpath.
bd3beb
bd3beb
* Wed Sep 9 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-6
bd3beb
- Add maven pom and depmaps.
bd3beb
bd3beb
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-5
bd3beb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bd3beb
bd3beb
* Wed Mar 11 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-4
bd3beb
- Add patch to generate full debuginfo for ecj itself
bd3beb
bd3beb
* Tue Mar 10 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-3
bd3beb
- Add BR for aot-compile-rpm
bd3beb
bd3beb
* Tue Mar 10 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-2
bd3beb
- Add BR for ant
bd3beb
bd3beb
* Fri Mar 6 2009 Andrew Overholt <overholt@redhat.com> 1:3.4.2-1
bd3beb
- 3.4.2
bd3beb
bd3beb
* Tue Dec 9 2008 Andrew Overholt <overholt@redhat.com> 1:3.4.1-1
bd3beb
- 3.4.1
bd3beb
- Don't conditionalize building of gcj AOT bits (we're only building
bd3beb
  this for gcj and IcedTea bootstrapping).
bd3beb
bd3beb
* Mon Jan 22 2007 Andrew Overholt <overholt@redhat.com> 3.2.1-1
bd3beb
- Add eclipse-ecj-gcj.patch.
bd3beb
bd3beb
* Fri Jan 12 2007 Andrew Overholt <overholt@redhat.com> 3.2.1-1
bd3beb
- First version for Fedora 7.
bd3beb
- Add BR: java-devel for jar.
bd3beb
bd3beb
* Thu Nov 02 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.1-1jpp
bd3beb
- First version for JPackage.
bd3beb
bd3beb
* Mon Jul 24 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.0-1
bd3beb
- Add versionless ecj.jar symlink in /usr/share/java.
bd3beb
bd3beb
* Wed Jul 19 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.0-1
bd3beb
- 3.2.0.
bd3beb
bd3beb
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
bd3beb
- rebuilt
bd3beb
bd3beb
* Mon Mar 07 2005 Andrew Overholt <overholt@redhat.com> 1:3.1.0.M4.9
bd3beb
- Don't build for ppc or ia64.
bd3beb
bd3beb
* Sun Feb 20 2005 Andrew Overholt <overholt@redhat.com> 1:3.1.0.M4.6
bd3beb
- Upgrade back to 3.1M4.
bd3beb
- Don't build for i386 and x86_64.
bd3beb
- Provide eclipse-ecj until we can deprecate this package.
bd3beb
bd3beb
* Fri Jan 14 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.4
bd3beb
- build for all but x86
bd3beb
bd3beb
* Thu Jan 13 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.3
bd3beb
- build for ppc exclusively
bd3beb
bd3beb
* Wed Jan 12 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.2
bd3beb
- Add RPM_OPT_FLAGS workaround.
bd3beb
bd3beb
* Tue Jan 11 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.1
bd3beb
- New version.
bd3beb
bd3beb
* Mon Sep 27 2004 Gary Benson <gbenson@redhat.com> 2.1.3-5
bd3beb
- Rebuild with new katana.
bd3beb
bd3beb
* Thu Jul 22 2004 Gary Benson <gbenson@redhat.com> 2.1.3-4
bd3beb
- Build without bootstrap-ant.
bd3beb
- Split out lib-org-eclipse-jdt-internal-compiler.so.
bd3beb
bd3beb
* Tue Jul  6 2004 Gary Benson <gbenson@redhat.com> 2.1.3-3
bd3beb
- Fix ecj-devel's dependencies.
bd3beb
bd3beb
* Wed Jun  9 2004 Gary Benson <gbenson@redhat.com> 2.1.3-2
bd3beb
- Work around an optimiser failure somewhere in ecj or gcj (#125613).
bd3beb
bd3beb
* Fri May 28 2004 Gary Benson <gbenson@redhat.com>
bd3beb
- Build with katana.
bd3beb
bd3beb
* Mon May 24 2004 Gary Benson <gbenson@redhat.com> 2.1.3-1
bd3beb
- Initial Red Hat Linux build.
bd3beb
bd3beb
* Mon May 24 2004 Gary Benson <gbenson@redhat.com>
bd3beb
- Upgraded to latest version.
bd3beb
bd3beb
* Sun Jul 20 2003 Anthony Green <green@redhat.com>
bd3beb
- Add %%doc
bd3beb
bd3beb
* Fri Jul 18 2003 Anthony Green <green@redhat.com>
bd3beb
- Initial RHUG build.