Name: eclipse-ecj Version: 4.7.2 Release: 1mamba Summary: Eclipse Compiler for Java Group: Development/Languages Vendor: openmamba Distribution: openmamba Packager: Automatic Build System URL: http://www.eclipse.org #Source: http://mirrors.ibiblio.org/eclipse/eclipse/downloads/drops4/R-%{version}-201309111000/ecjsrc-%{version}.jar Source: http://ftp.fau.de/eclipse/eclipse/downloads/drops4/R-%{version}-201711300510/ecjsrc-%{version}.jar #Source: ftp://rm.mirror.garr.it/mirrors/eclipse/eclipse/downloads/drops/R-%{version}-201002111343/ecjsrc-%{version}.zip #Source: http://download.eclipse.org/eclipse/downloads/drops/R-%{version}-200906111540/ecjsrc-%{version}.zip Source1: java-ecj.sh.in # cvs -d:pserver:anonymous@sourceware.org:/cvs/rhug export -r eclipse_r34_1 eclipse-gcj # tar cjf java-ecj-gcj.tar.bz2 eclipse-gcj Source2: java-ecj-gcj.tar.bz2 Source3: jdtcoresrc.tar.gz Patch0: java-ecj-3.4.2-rpmdebuginfo.patch Patch1: java-ecj-3.4.2-defaultto1.5.patch Patch2: java-ecj-3.4.2-generatedebuginfo.patch License: Eclipse Public License BuildRequires: apache-ant BuildRequires: java-gcj-compat BuildRequires: java-junit3 BuildRequires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description ECJ is the Java bytecode compiler of the Eclipse Platform. It is also known as the JDT Core batch compiler. %prep %setup -q -c -n %{name}-%{version} %patch0 -p1 #%patch1 -p1 #%patch2 -p1 tar jxf %{S:2} tar zxf %{S:3} # Use ECJ for GCJ's bytecode compiler 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 # JDTCompilerAdapter isn't used by the batch compiler rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java %build ORIGCLASSPATH=$CLASSPATH ant -DcompilerArg="-encoding ISO-8859-1 -nowarn" -buildfile jdtcoresrc/compilejdtcorewithjavac.xml # 2. Use this ecj to rebuild itself export CLASSPATH=`pwd`/jdtcoresrc/ecj.jar:$ORIGCLASSPATH ant -DcompilerArg="-encoding ISO-8859-1 -nowarn" -buildfile jdtcoresrc/compilejdtcore.xml %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -m 644 ecj.jar %{buildroot}%{_javadir}/ecj-%{version}.jar mkdir -p %{buildroot}/opt/java/ant/lib pushd %{buildroot}%{_javadir} # ln -s ecj-%{version}.jar ecj.jar ln -s ecj-%{version}.jar eclipse-ecj-%{version}.jar ln -s eclipse-ecj-%{version}.jar eclipse-ecj.jar ln -s ecj-%{version}.jar jdtcore.jar ln -s ecj-%{version}.jar %{buildroot}/opt/java/ant/lib/ecj-%{version}.jar popd mkdir -p %{buildroot}%{_bindir} install -pm 755 %{S:1} \ %{buildroot}%{_bindir}/ecj sed -i "s:@JAVADIR@:%{_javadir}:" %{buildroot}%{_bindir}/ecj #%{_bindir}/aot-compile-rpm %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/ecj %{_javadir}/ecj-%{version}.jar #%{_javadir}/ecj.jar %{_javadir}/eclipse-ecj-%{version}.jar %{_javadir}/eclipse-ecj.jar %{_javadir}/jdtcore.jar /opt/java/ant/lib/ecj-%{version}.jar %doc about.html %changelog * Sat Dec 23 2017 Silvan Calarco 4.7.2-1mamba - update to 4.7.2 * Tue Oct 29 2013 Silvan Calarco 4.3.1-1mamba - update to 4.3.1 * Fri Jul 22 2011 Automatic Build System 3.7-1mamba - update to 3.7 * Fri Sep 17 2010 Automatic Build System 3.6-1mamba - update to 3.6 * Fri Jun 11 2010 Automatic Build System 3.5.2-1mamba - update to 3.5.2 * Sat Sep 12 2009 Silvan Calarco 3.5-1mamba - update to 3.5 * Sat Apr 04 2009 gil 3.4.2-2mamba - rebuilt * Fri Mar 13 2009 gil 3.4.2-1mamba - renamed eclipse-ecj * Fri Mar 13 2009 gil 3.4.2-1mamba - package created by autospec