2024-01-05 22:02:00 +01:00
|
|
|
Name: eclipse-ecj
|
2024-01-05 22:02:01 +01:00
|
|
|
Version: 4.7.2
|
|
|
|
Release: 1mamba
|
2024-01-05 22:02:00 +01:00
|
|
|
Summary: Eclipse Compiler for Java
|
|
|
|
Group: Development/Languages
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 22:02:01 +01:00
|
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
2024-01-05 22:02:00 +01:00
|
|
|
URL: http://www.eclipse.org
|
2024-01-05 22:02:01 +01:00
|
|
|
#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
|
2024-01-05 22:02:00 +01:00
|
|
|
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
|
2024-01-05 22:02:01 +01:00
|
|
|
License: Eclipse Public License
|
2024-01-05 22:02:00 +01:00
|
|
|
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
|
2024-01-05 22:02:01 +01:00
|
|
|
#%patch2 -p1
|
2024-01-05 22:02:00 +01:00
|
|
|
tar jxf %{S:2}
|
|
|
|
tar zxf %{S:3}
|
|
|
|
# Use ECJ for GCJ's bytecode compiler
|
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
mv eclipse-gcj/org/eclipse/jdt/internal/compiler/batch/GCCMain.java org/eclipse/jdt/internal/compiler/batch/
|
2024-01-05 22:02:00 +01:00
|
|
|
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
|
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
|
2024-01-05 22:02:00 +01:00
|
|
|
%build
|
2024-01-05 22:02:01 +01:00
|
|
|
ORIGCLASSPATH=$CLASSPATH
|
|
|
|
ant -DcompilerArg="-encoding ISO-8859-1 -nowarn" -buildfile jdtcoresrc/compilejdtcorewithjavac.xml
|
2024-01-05 22:02:00 +01:00
|
|
|
# 2. Use this ecj to rebuild itself
|
2024-01-05 22:02:01 +01:00
|
|
|
export CLASSPATH=`pwd`/jdtcoresrc/ecj.jar:$ORIGCLASSPATH
|
|
|
|
ant -DcompilerArg="-encoding ISO-8859-1 -nowarn" -buildfile jdtcoresrc/compilejdtcore.xml
|
2024-01-05 22:02:00 +01:00
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
|
|
install -m 644 ecj.jar %{buildroot}%{_javadir}/ecj-%{version}.jar
|
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
mkdir -p %{buildroot}/opt/java/ant/lib
|
2024-01-05 22:02:00 +01:00
|
|
|
|
|
|
|
pushd %{buildroot}%{_javadir}
|
|
|
|
# ln -s ecj-%{version}.jar ecj.jar
|
2024-01-05 22:02:01 +01:00
|
|
|
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
|
2024-01-05 22:02:00 +01:00
|
|
|
popd
|
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
|
2024-01-05 22:02:00 +01:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2024-01-05 22:02:01 +01:00
|
|
|
install -pm 755 %{S:1} \
|
|
|
|
%{buildroot}%{_bindir}/ecj
|
2024-01-05 22:02:00 +01:00
|
|
|
sed -i "s:@JAVADIR@:%{_javadir}:" %{buildroot}%{_bindir}/ecj
|
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
#%{_bindir}/aot-compile-rpm
|
2024-01-05 22:02:00 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-05 22:02:01 +01:00
|
|
|
/opt/java/ant/lib/ecj-%{version}.jar
|
2024-01-05 22:02:00 +01:00
|
|
|
%doc about.html
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 22:02:01 +01:00
|
|
|
* Sat Dec 23 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 4.7.2-1mamba
|
|
|
|
- update to 4.7.2
|
2024-01-05 22:02:00 +01:00
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
* Tue Oct 29 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.3.1-1mamba
|
|
|
|
- update to 4.3.1
|
2024-01-05 22:02:00 +01:00
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
* Fri Jul 22 2011 Automatic Build System <autodist@mambasoft.it> 3.7-1mamba
|
|
|
|
- update to 3.7
|
2024-01-05 22:02:00 +01:00
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
* Fri Sep 17 2010 Automatic Build System <autodist@mambasoft.it> 3.6-1mamba
|
2024-01-05 22:02:00 +01:00
|
|
|
- update to 3.6
|
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
* Fri Jun 11 2010 Automatic Build System <autodist@mambasoft.it> 3.5.2-1mamba
|
2024-01-05 22:02:00 +01:00
|
|
|
- update to 3.5.2
|
|
|
|
|
2024-01-05 22:02:01 +01:00
|
|
|
* Sat Sep 12 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5-1mamba
|
2024-01-05 22:02:00 +01:00
|
|
|
- update to 3.5
|
|
|
|
|
|
|
|
* Sat Apr 04 2009 gil <puntogil@libero.it> 3.4.2-2mamba
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Mar 13 2009 gil <puntogil@libero.it> 3.4.2-1mamba
|
|
|
|
- renamed eclipse-ecj
|
|
|
|
|
|
|
|
* Fri Mar 13 2009 gil <puntogil@libero.it> 3.4.2-1mamba
|
|
|
|
- package created by autospec
|