From 14780679f47dd2e18b81faae64546ceb20aaf3a4 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Wed, 9 Sep 2009 08:25:06 +0000 Subject: [PATCH] Add maven pom and depmap. --- core-3.3.0-v_771.pom | 41 +++++++++++++++++++++++++++++++++++++++++ ecj.spec | 18 +++++++++++++++++- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 core-3.3.0-v_771.pom diff --git a/core-3.3.0-v_771.pom b/core-3.3.0-v_771.pom new file mode 100644 index 0000000..21ea74b --- /dev/null +++ b/core-3.3.0-v_771.pom @@ -0,0 +1,41 @@ + + 4.0.0 + org.eclipse.jdt + core + Java Development Tools Core + 3.3.0-v_771 + + + Eclipse Public License - v 1.0 + http://www.eclipse.org/org/documents/epl-v10.html + + + + + org.eclipse.core + resources + [3.2.0,4.0.0) + + + org.eclipse.core + runtime + [3.3.0,4.0.0) + + + org.eclipse.core + filesystem + [1.0.0,2.0.0) + + + org.eclipse + text + [3.1.0,4.0.0) + + + org.eclipse.team + core + [3.1.0,4.0.0) + true + + + \ No newline at end of file diff --git a/ecj.spec b/ecj.spec index ca7b8ed..28c6580 100644 --- a/ecj.spec +++ b/ecj.spec @@ -8,7 +8,7 @@ Epoch: 1 Summary: Eclipse Compiler for Java Name: ecj Version: 3.4.2 -Release: 5%{?dist} +Release: 6%{?dist} URL: http://www.eclipse.org License: EPL Group: Development/Languages @@ -21,6 +21,7 @@ Source1: ecj.sh.in # export -r eclipse_r34_1 eclipse-gcj # tar cjf ecj-gcj.tar.bz2 eclipse-gcj Source2: %{name}-gcj.tar.bz2 +Source3: http://repo2.maven.org/maven2/org/eclipse/jdt/core/3.3.0-v_771/core-3.3.0-v_771.pom # Always generate debug info when building RPMs (Andrew Haley) Patch0: %{name}-rpmdebuginfo.patch Patch1: %{name}-defaultto1.5.patch @@ -51,6 +52,7 @@ the JDT Core batch compiler. %patch1 -p1 %patch2 -p1 +cp %{SOURCE3} pom.xml # Use ECJ for GCJ's bytecode compiler tar jxf %{SOURCE2} mv eclipse-gcj/org/eclipse/jdt/internal/compiler/batch/GCCMain.java \ @@ -96,6 +98,13 @@ sed --in-place "s:@JAVADIR@:%{_javadir}:" $RPM_BUILD_ROOT%{_bindir}/ecj aot-compile-rpm +# poms +install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms +install -pm 644 pom.xml \ + $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom + +%add_to_maven_depmap org.eclipse.jdt core %{version} JPP jdtcore + %clean rm -rf $RPM_BUILD_ROOT @@ -104,16 +113,20 @@ if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db fi +%update_maven_depmap %postun if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db fi +%update_maven_depmap %files %defattr(-,root,root,-) %doc about.html +%{_datadir}/maven2/poms/JPP-%{name}.pom +%{_mavendepmapfragdir}/%{name} %{_bindir}/%{name} %{_javadir}/%{name}*.jar %{_javadir}/eclipse-%{name}*.jar @@ -121,6 +134,9 @@ fi %{_libdir}/gcj/%{name} %changelog +* Wed Sep 9 2009 Alexander Kurtakov 1:3.4.2-6 +- Add maven pom and depmaps. + * Fri Jul 24 2009 Fedora Release Engineering - 1:3.4.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild