diff --git a/.gitignore b/.gitignore index ad3f20a..faa4e07 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -ecj-gcj.tar.bz2 -ecjsrc-4.2.1.jar -/ecj.1 -/ecjsrc-I20140430-2000.jar -/ecjsrc-4.4.jar -/ecjsrc-4.4.1.jar +/noarch +/.build-*.log +/*.src.rpm +/ecj-*.pom +/ecj-*/ +/ecjsrc-*.jar diff --git a/ecj-4.4.1.pom b/ecj-4.4.1.pom deleted file mode 100644 index 164278c..0000000 --- a/ecj-4.4.1.pom +++ /dev/null @@ -1,26 +0,0 @@ - - - - 4.0.0 - org.eclipse.jdt.core.compiler - ecj - 4.4.1 - jar - Eclipse ECJ - Eclipse JDT Core Batch Compiler - http://www.eclipse.org/jdt/ - - UTF-8 - UTF-8 - - - - Eclipse Public License v1.0 - http://www.eclipse.org/org/documents/epl-v10.php - repo - - - \ No newline at end of file diff --git a/ecj.spec b/ecj.spec index b9489bc..9548efe 100644 --- a/ecj.spec +++ b/ecj.spec @@ -1,21 +1,19 @@ Epoch: 1 -%global qualifier R-4.4.1-201409250400 +%global qualifier R-4.4.2-201502041700 Summary: Eclipse Compiler for Java Name: ecj -Version: 4.4.1 +Version: 4.4.2 Release: 1%{?dist} URL: http://www.eclipse.org License: EPL -Group: Development/Languages -Source0: http://download.eclipse.org/eclipse/downloads/drops4/%{qualifier}/%{name}src-%{version}.jar + +Source0: http://download.eclipse.org/eclipse/downloads/drops4/%{qualifier}/ecjsrc-%{version}.jar Source1: ecj.sh.in -#Patched from http://central.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/4.4/ecj-4.4.pom -# No dependencies are needed for ecj, dependencies are for using of jdt.core which makes no sense outside of eclipse -Source3: ecj-4.4.1.pom -Source4: ecj.1 -Source5: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/plain/org.eclipse.jdt.core/scripts/binary/META-INF/MANIFEST.MF +Source3: https://repo1.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/%{version}/ecj-%{version}.pom +Source4: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/plain/org.eclipse.jdt.core/scripts/binary/META-INF/MANIFEST.MF + # Always generate debug info when building RPMs (Andrew Haley) Patch0: %{name}-rpmdebuginfo.patch # build.xml fails to include a necessary .props file in the built ecj.jar @@ -25,10 +23,7 @@ BuildArch: noarch BuildRequires: gzip BuildRequires: ant -BuildRequires: java-devel >= 1:1.7.0 - -Provides: eclipse-ecj = %{epoch}:%{version}-%{release} -Obsoletes: eclipse-ecj < 1:3.4.2-4 +BuildRequires: javapackages-local Obsoletes: %{name}-native < 1:4.2.1-10 @@ -46,23 +41,29 @@ sed -i -e "s/Xlint:none/Xlint:none -encoding cp1252/g" build.xml cp %{SOURCE3} pom.xml mkdir -p scripts/binary/META-INF/ -cp %{SOURCE5} scripts/binary/META-INF/MANIFEST.MF +cp %{SOURCE4} scripts/binary/META-INF/MANIFEST.MF # JDTCompilerAdapter isn't used by the batch compiler rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java -cp %{SOURCE4} ecj.1 + +# No dep on ant needed +%pom_remove_dep org.apache.ant:ant + +# Symlinks and aliases +%mvn_file :ecj ecj eclipse-ecj jdtcore +%mvn_alias org.eclipse.jdt.core.compiler:ecj \ + org.eclipse.jdt:org.eclipse.jdt.core org.eclipse.jdt:org.eclipse.jdt.compiler.apt \ + org.eclipse.tycho:org.eclipse.jdt.core org.eclipse.tycho:org.eclipse.jdt.compiler.apt \ + org.eclipse.jetty.orbit:org.eclipse.jdt.core \ + org.eclipse.jdt:core %build ant gzip ecj.1 %install -mkdir -p $RPM_BUILD_ROOT%{_javadir} -cp -a *.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar -pushd $RPM_BUILD_ROOT%{_javadir} -ln -s %{name}.jar eclipse-%{name}.jar -ln -s %{name}.jar jdtcore.jar -popd +%mvn_artifact pom.xml ecj.jar +%mvn_install # Install the ecj wrapper script install -p -D -m0755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/ecj @@ -72,21 +73,20 @@ sed --in-place "s:@JAVADIR@:%{_javadir}:" $RPM_BUILD_ROOT%{_bindir}/ecj mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 install -m 644 -p ecj.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/ecj.1.gz -# poms -install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} -install -pm 644 pom.xml \ - $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom - -%add_maven_depmap -a "org.eclipse.tycho:org.eclipse.jdt.core,org.eclipse.jdt:core,org.eclipse.jdt:org.eclipse.jdt.core" JPP-%{name}.pom %{name}.jar - %files -f .mfiles %doc about.html -%{_bindir}/%{name} -%{_javadir}/eclipse-%{name}.jar -%{_javadir}/jdtcore.jar +%{_bindir}/ecj %{_mandir}/man1/ecj.1.gz %changelog +* Mon Mar 30 2015 Mat Booth - 1:4.4.2-1 +- Update to 4.4.2. +- Install with mvn_install +- Add jetty.orbit alias +- Add compiler.apt aliases +- Drop ancient obsoletes/provides on eclipse-ecj +- Use man page from upstream source + * Thu Jan 8 2015 Alexander Kurtakov 1:4.4.1-1 - Update to 4.4.1. diff --git a/sources b/sources index 8e0bc38..05e604a 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -96d507a301eeb8454299a325a9aca31d ecj.1 -7bf1576a4cf33f95091f8777bdada580 ecjsrc-4.4.1.jar +bfa9fe02f1123d7ec1fe020e8921d87a ecj-4.4.2.pom +212445012540363e8b4a702c59ec9a43 ecjsrc-4.4.2.jar