ad056b
Epoch: 1
ad056b
ad056b
%global eclipse_ver 4.20
ad056b
%global bundle_ver 3.27.0
ad056b
%global jar_ver %{eclipse_ver}
ad056b
%global drop R-%{jar_ver}-202106111600
ad056b
ad056b
Summary: Eclipse Compiler for Java
ad056b
Name:    ecj
ad056b
Version: %{eclipse_ver}
ad056b
Release: 10%{?dist}
ad056b
URL:     https://www.eclipse.org
ad056b
License: EPL-2.0
ad056b
ad056b
Source0: https://download.eclipse.org/eclipse/downloads/drops4/%{drop}/ecjsrc-%{jar_ver}.jar
ad056b
Source1: https://repo1.maven.org/maven2/org/eclipse/jdt/ecj/%{bundle_ver}/ecj-%{bundle_ver}.pom
ad056b
# The ecj build does not generate a proper manifest, so use the one from the binary distribution
ad056b
# Extracted from: https://download.eclipse.org/eclipse/downloads/drops4/%%{drop}/ecj-%%{jar_ver}.jar
ad056b
Source2: MANIFEST.MF
ad056b
ad056b
# Always generate debug info when building RPMs (Andrew Haley)
ad056b
Patch0: 0001-Always-generate-bytecode-debuginfo.patch
ad056b
ad056b
BuildArch: noarch
ad056b
ad056b
BuildRequires: ant
ad056b
BuildRequires: javapackages-local
ad056b
BuildRequires: java-17-openjdk-devel
ad056b
ad056b
Requires: java-headless >= 1:1.8.0
ad056b
Requires: javapackages-tools
ad056b
ad056b
%description
ad056b
ECJ is the Java bytecode compiler of the Eclipse Platform.  It is also known as
ad056b
the JDT Core batch compiler.
ad056b
ad056b
%prep
ad056b
%autosetup -p1 -c -n %{name}-%{eclipse_ver}
ad056b
ad056b
# Specify encoding
ad056b
sed -i -e '/compilerarg/s/Xlint:none/Xlint:none -encoding cp1252/' build.xml
ad056b
ad056b
cp %{SOURCE1} pom.xml
ad056b
mkdir -p scripts/binary/META-INF/
ad056b
cp %{SOURCE2} scripts/binary/META-INF/MANIFEST.MF
ad056b
rm ./META-INF/ECLIPSE_.{SF,RSA}
ad056b
ad056b
# Aliases
ad056b
%mvn_alias org.eclipse.jdt:ecj org.eclipse.jdt:core org.eclipse.jdt.core.compiler:ecj \
ad056b
  org.eclipse.tycho:org.eclipse.jdt.core org.eclipse.tycho:org.eclipse.jdt.compiler.apt
ad056b
ad056b
%build
ad056b
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
ad056b
ant
ad056b
ad056b
%install
ad056b
%mvn_artifact pom.xml ecj.jar
ad056b
%mvn_install
ad056b
ad056b
# Install the ecj wrapper script
ad056b
%jpackage_script org.eclipse.jdt.internal.compiler.batch.Main '' '' ecj ecj true
ad056b
ad056b
# Install manpage
ad056b
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
ad056b
install -m 644 -p ecj.1 $RPM_BUILD_ROOT%{_mandir}/man1/ecj.1
ad056b
ad056b
%files -f .mfiles
ad056b
%license about.html
ad056b
%{_bindir}/ecj
ad056b
%{_mandir}/man1/ecj*
ad056b
ad056b
%changelog
ad056b
* Wed Feb 15 2023 Coty Sutherland <csutherl@redhat.com> - 1:4.20-10
ad056b
- Drop unnecessary javax16.api.jar (again)
ad056b
- Add dependency on javapackages-tools since the ecj binary requires it to run
ad056b
ad056b
* Wed Feb 15 2023 Coty Sutherland <csutherl@redhat.com> - 1:4.20-9
ad056b
- Trigger CI tests again
ad056b
ad056b
* Wed Feb 15 2023 Coty Sutherland <csutherl@redhat.com> - 1:4.20-8
ad056b
- Update BuildRequires to use java-17
ad056b
ad056b
* Tue Feb 14 2023 Hui Wang <huwang@redhat.com> - 1:4.20-7
ad056b
- Fix JAVA_HOME
ad056b
ad056b
* Tue Feb 14 2023 Hui Wang <huwang@redhat.com> - 1:4.20-6
ad056b
- Add requires java-11-openjdk and java-11-openjdk-headless
ad056b
ad056b
* Tue Feb 07 2023 Hui Wang <huwang@redhat.com> - 1:4.20-5
ad056b
- Add javax16api.jar back
ad056b
ad056b
* Sat Feb 04 2023 Hui Wang <huwang@redhat.com> - 1:4.20-4
ad056b
- Remove javax16api.jar which is not necessary in RHEL-8
ad056b
ad056b
* Thu Feb 02 2023 Hui Wang <huwang@redhat.com> - 1:4.20-3
ad056b
- Add tmt gating plan
ad056b
ad056b
* Wed Feb 01 2023 Hui Wang <huwang@redhat.com> - 1:4.20-2
ad056b
- Add gating.yaml
ad056b
ad056b
* Thu Jan 19 2023 Hui Wang <huwang@redhat.com> - 1:4.20-1
ad056b
- Update to 4.20
ad056b
ad056b
* Wed Aug 25 2021 Stefan Bluhm <stefan.bluhm@clacee.eu> - 1:4.19-3
ad056b
- Added RHEL8 build.
ad056b
ad056b
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.19-2
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ad056b
ad056b
* Wed Mar 10 2021 Mat Booth <mat.booth@redhat.com> - 1:4.19-1
ad056b
- Update to latest upstream release
ad056b
ad056b
* Mon Mar 01 2021 Mat Booth <mat.booth@redhat.com> - 1:4.18-3
ad056b
- Allow building against Java 11
ad056b
ad056b
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.18-2
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ad056b
ad056b
* Tue Jan 12 2021 Alexander Kurtakov <akurtako@redhat.com> 1:4.18-1
ad056b
- Update to latest upstream release.
ad056b
ad056b
* Thu Oct 29 2020 Mat Booth <mat.booth@redhat.com> - 1:4.17-1
ad056b
- Update to latest upstream release
ad056b
ad056b
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.16-4
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ad056b
ad056b
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1:4.16-3
ad056b
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
ad056b
ad056b
* Fri Jun 19 2020 Mat Booth <mat.booth@redhat.com> - 1:4.16-2
ad056b
- Restore compiler adaptor
ad056b
ad056b
* Thu Jun 18 2020 Mat Booth <mat.booth@redhat.com> - 1:4.16-1
ad056b
- Update to latest upstream release
ad056b
ad056b
* Fri Mar 20 2020 Mat Booth <mat.booth@redhat.com> - 1:4.15-1
ad056b
- Update to latest upstream release
ad056b
ad056b
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.14-3
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ad056b
ad056b
* Mon Dec 16 2019 Mat Booth <mat.booth@redhat.com> - 1:4.14-2
ad056b
- Remove upstream code-signatures
ad056b
ad056b
* Fri Dec 13 2019 Mat Booth <mat.booth@redhat.com> - 1:4.14-1
ad056b
- Update to latest upstream version
ad056b
ad056b
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.12-2
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ad056b
ad056b
* Sat Jun 29 2019 Mat Booth <mat.booth@redhat.com> - 1:4.12-1
ad056b
- Update to latest upstream release
ad056b
ad056b
* Thu Mar 07 2019 Mat Booth <mat.booth@redhat.com> - 1:4.11-0.1
ad056b
- Update to latest release candidate of 4.11
ad056b
ad056b
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.10-2
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ad056b
ad056b
* Tue Dec 11 2018 Mat Booth <mat.booth@redhat.com> - 1:4.10-1
ad056b
- Update to 2018-12 release
ad056b
ad056b
* Wed Sep 12 2018 Mat Booth <mat.booth@redhat.com> - 1:4.9-1
ad056b
- Update to latest release
ad056b
- Amend license tag
ad056b
ad056b
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.3a-2
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ad056b
ad056b
* Mon Apr 09 2018 Mat Booth <mat.booth@redhat.com> - 1:4.7.3a-1
ad056b
- Update to Oxygen.3a release for java 10 support
ad056b
- Break circular dep on JDT by providing the java API stubs in this package
ad056b
ad056b
* Tue Mar 20 2018 Mat Booth <mat.booth@redhat.com> - 1:4.7.3-1
ad056b
- Update to Oxygen.3
ad056b
ad056b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.7.1-2
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ad056b
ad056b
* Thu Sep 21 2017 Mat Booth <mat.booth@redhat.com> - 1:4.7.1-1
ad056b
- Update to Oxygen.1 release
ad056b
ad056b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.6.3-3
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ad056b
ad056b
* Thu Jun 15 2017 Michael Simacek <msimacek@redhat.com> - 1:4.6.3-2
ad056b
- Update aliases for jetty
ad056b
ad056b
* Wed Mar 29 2017 Mat Booth <mat.booth@redhat.com> - 1:4.6.3-1
ad056b
- Update to Neon.3 release
ad056b
ad056b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.6.2-2
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ad056b
ad056b
* Tue Jan 10 2017 Mat Booth <mat.booth@redhat.com> - 1:4.6.2-1
ad056b
- Update to Neon.2 release
ad056b
ad056b
* Fri Jul 01 2016 Mat Booth <mat.booth@redhat.com> - 1:4.6-1
ad056b
- Update to Neon release
ad056b
ad056b
* Tue Apr 26 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.5.2-3
ad056b
- Re-add alias for org.eclipse.jdt:core
ad056b
ad056b
* Fri Apr 22 2016 Mat Booth <mat.booth@redhat.com> - 1:4.5.2-2
ad056b
- Drop aliases that are now provided by eclipse-jdt
ad056b
ad056b
* Mon Feb 29 2016 Mat Booth <mat.booth@redhat.com> - 1:4.5.2-1
ad056b
- Update to Mars.2 release
ad056b
ad056b
* Fri Feb 05 2016 Mat Booth <mat.booth@redhat.com> - 1:4.5.1-3
ad056b
- Allow any compression man pages
ad056b
ad056b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.5.1-2
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ad056b
ad056b
* Tue Oct 06 2015 Mat Booth <mat.booth@redhat.com> - 1:4.5.1-1
ad056b
- Update to Mars.1 release
ad056b
ad056b
* Thu Jul 2 2015 Alexander Kurtakov <akurtako@redhat.com> 1:4.5-1
ad056b
- Update to upstream 4.5 release.
ad056b
ad056b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.4.2-2
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ad056b
ad056b
* Mon Mar 30 2015 Mat Booth <mat.booth@redhat.com> - 1:4.4.2-1
ad056b
- Update to 4.4.2.
ad056b
- Install with mvn_install
ad056b
- Add jetty.orbit alias
ad056b
- Add compiler.apt aliases
ad056b
- Drop ancient obsoletes/provides on eclipse-ecj
ad056b
- Use man page from upstream source
ad056b
ad056b
* Thu Jan 8 2015 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.1-1
ad056b
- Update to 4.4.1.
ad056b
ad056b
* Thu Jul 3 2014 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.0-1
ad056b
- Update to 4.4 final.
ad056b
- Drop gcj patches as gcj is not in Fedora anymore and ecj now requires 1.6.
ad056b
ad056b
* Thu Jun 12 2014 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.0-0.4.git20140430
ad056b
- Add additional depmap for maven.
ad056b
ad056b
* Mon Jun 9 2014 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.0-0.3.git20140430
ad056b
- Fix FTBFS.
ad056b
ad056b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.4.0-0.2.git20140430
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ad056b
ad056b
* Thu May 1 2014 Alexander Kurtakov <akurtako@redhat.com> 1:4.4.0-0.1.git20140430
ad056b
- Update to 4.4.0 I-build to make it cope with Java 8.
ad056b
ad056b
* Mon Apr 14 2014 Mat Booth <mat.booth@redhat.com> - 1:4.2.1-10
ad056b
- Drop gcj AOT-compilation support.
ad056b
- Obsolete -native sub-package.
ad056b
ad056b
* Wed Oct 09 2013 gil cattaneo <puntogil@libero.it> 1:4.2.1-9
ad056b
- enable build of org/eclipse/jdt/internal/compiler/[apt,tool]
ad056b
  (ant build mode only), required by querydsl
ad056b
- remove some rpmlint problems (invalid date)
ad056b
ad056b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.2.1-8
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ad056b
ad056b
* Tue May 21 2013 Jon VanAlten <jon.vanalten@redhat.com> - 4.2.1-7
ad056b
- Add manpage for ecj executable
ad056b
- Resolves: rhbz#948442
ad056b
ad056b
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.1-6
ad056b
- Add depmap for org.eclipse.jdt.core.compiler:ecj
ad056b
- Resolves: rhbz#949938
ad056b
ad056b
* Wed Mar 06 2013 Karsten Hopp <karsten@redhat.com> 1:4.2.1-5
ad056b
- add BR java-devel for !with_gcjbootstrap
ad056b
ad056b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:4.2.1-4
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ad056b
ad056b
* Mon Oct 29 2012 Jon VanAlten <jon.vanalten@redhat.com> 1:4.2.1-3
ad056b
- Patch GCCMain to avoid dummy symbols.
ad056b
ad056b
* Wed Oct 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:4.2.1-2
ad056b
- Add depmap satysfying Tycho req.
ad056b
ad056b
* Sun Jul 29 2012 Jon VanAlten <jon.vanalten@redhat.com> 1:4.2.1-1
ad056b
- Update to 4.2.1 upstream version.
ad056b
ad056b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-14
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ad056b
ad056b
* Wed Apr 18 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-13
ad056b
- Add missing epoch to native subpackage requires.
ad056b
ad056b
* Tue Apr 17 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-12
ad056b
- Separate gcj in subpackage.
ad056b
ad056b
* Mon Jan 16 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-11
ad056b
- Patch pom file to better represent ecj and not jdt.core .
ad056b
- Guidelines fixes.
ad056b
ad056b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-10
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ad056b
ad056b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-9
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ad056b
ad056b
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:3.4.2-8
ad056b
- Fix add_to_maven_depmap call (Resolves rhbz#655796)
ad056b
ad056b
* Mon Dec 21 2009 Deepak Bhole <dbhole@redhat.com> - 1:3.4.2-7
ad056b
- Fix RHBZ# 490936. If CLASSPATH is not set, add . to default classpath.
ad056b
ad056b
* Wed Sep 9 2009 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-6
ad056b
- Add maven pom and depmaps.
ad056b
ad056b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.4.2-5
ad056b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ad056b
ad056b
* Wed Mar 11 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-4
ad056b
- Add patch to generate full debuginfo for ecj itself
ad056b
ad056b
* Tue Mar 10 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-3
ad056b
- Add BR for aot-compile-rpm
ad056b
ad056b
* Tue Mar 10 2009 Deepak Bhole <dbhole@redhat.com> 1:3.4.2-2
ad056b
- Add BR for ant
ad056b
ad056b
* Fri Mar 6 2009 Andrew Overholt <overholt@redhat.com> 1:3.4.2-1
ad056b
- 3.4.2
ad056b
ad056b
* Tue Dec 9 2008 Andrew Overholt <overholt@redhat.com> 1:3.4.1-1
ad056b
- 3.4.1
ad056b
- Don't conditionalize building of gcj AOT bits (we're only building
ad056b
  this for gcj and IcedTea bootstrapping).
ad056b
ad056b
* Mon Jan 22 2007 Andrew Overholt <overholt@redhat.com> 3.2.1-1
ad056b
- Add eclipse-ecj-gcj.patch.
ad056b
ad056b
* Fri Jan 12 2007 Andrew Overholt <overholt@redhat.com> 3.2.1-1
ad056b
- First version for Fedora 7.
ad056b
- Add BR: java-devel for jar.
ad056b
ad056b
* Thu Nov 02 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.1-1jpp
ad056b
- First version for JPackage.
ad056b
ad056b
* Mon Jul 24 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.0-1
ad056b
- Add versionless ecj.jar symlink in /usr/share/java.
ad056b
ad056b
* Wed Jul 19 2006 Andrew Overholt <overholt@redhat.com> 1:3.2.0-1
ad056b
- 3.2.0.
ad056b
ad056b
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
ad056b
- rebuilt
ad056b
ad056b
* Mon Mar 07 2005 Andrew Overholt <overholt@redhat.com> 1:3.1.0.M4.9
ad056b
- Don't build for ppc or ia64.
ad056b
ad056b
* Sun Feb 20 2005 Andrew Overholt <overholt@redhat.com> 1:3.1.0.M4.6
ad056b
- Upgrade back to 3.1M4.
ad056b
- Don't build for i386 and x86_64.
ad056b
- Provide eclipse-ecj until we can deprecate this package.
ad056b
ad056b
* Fri Jan 14 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.4
ad056b
- build for all but x86
ad056b
ad056b
* Thu Jan 13 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.3
ad056b
- build for ppc exclusively
ad056b
ad056b
* Wed Jan 12 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.2
ad056b
- Add RPM_OPT_FLAGS workaround.
ad056b
ad056b
* Tue Jan 11 2005 Andrew Overholt <overholt@redhat.com> 3.1.0.M4.1
ad056b
- New version.
ad056b
ad056b
* Mon Sep 27 2004 Gary Benson <gbenson@redhat.com> 2.1.3-5
ad056b
- Rebuild with new katana.
ad056b
ad056b
* Thu Jul 22 2004 Gary Benson <gbenson@redhat.com> 2.1.3-4
ad056b
- Build without bootstrap-ant.
ad056b
- Split out lib-org-eclipse-jdt-internal-compiler.so.
ad056b
ad056b
* Tue Jul  6 2004 Gary Benson <gbenson@redhat.com> 2.1.3-3
ad056b
- Fix ecj-devel's dependencies.
ad056b
ad056b
* Wed Jun  9 2004 Gary Benson <gbenson@redhat.com> 2.1.3-2
ad056b
- Work around an optimiser failure somewhere in ecj or gcj (#125613).
ad056b
ad056b
* Fri May 28 2004 Gary Benson <gbenson@redhat.com>
ad056b
- Build with katana.
ad056b
ad056b
* Mon May 24 2004 Gary Benson <gbenson@redhat.com> 2.1.3-1
ad056b
- Initial Red Hat Linux build.
ad056b
ad056b
* Mon May 24 2004 Gary Benson <gbenson@redhat.com>
ad056b
- Upgraded to latest version.
ad056b
ad056b
* Sun Jul 20 2003 Anthony Green <green@redhat.com>
ad056b
- Add %%doc
ad056b
ad056b
* Fri Jul 18 2003 Anthony Green <green@redhat.com>
ad056b
- Initial RHUG build.