From cb70f90985597e5a14ce2b104b99aed869ab03a2 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Tue, 17 Apr 2012 17:36:40 +0300 Subject: [PATCH] Separate gcj in subpackage. --- ecj.spec | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/ecj.spec b/ecj.spec index 09aca10..6b61490 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: 11%{?dist} +Release: 12%{?dist} URL: http://www.eclipse.org License: EPL Group: Development/Languages @@ -35,10 +35,6 @@ BuildRequires: java-gcj-compat BuildRequires: ant %endif -Requires: libgcj >= 4.0.0 -Requires(post): java-gcj-compat -Requires(postun): java-gcj-compat - Provides: eclipse-ecj = %{epoch}:%{version}-%{release} Obsoletes: eclipse-ecj < 1:3.4.2-4 @@ -46,6 +42,18 @@ Obsoletes: eclipse-ecj < 1:3.4.2-4 ECJ is the Java bytecode compiler of the Eclipse Platform. It is also known as the JDT Core batch compiler. +%package native +Summary: Native(gcj) bits for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: libgcj >= 4.0.0 +Requires(post): java-gcj-compat +Requires(postun): java-gcj-compat + +%description native +AOT compiled ecj to speed up when running under GCJ. + + %prep %setup -q -c %patch0 -p1 @@ -101,13 +109,13 @@ install -pm 644 pom.xml \ %add_maven_depmap JPP-%{name}.pom %{name}.jar -%post +%post native if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db fi -%postun +%postun native if [ -x %{_bindir}/rebuild-gcj-db ] then %{_bindir}/rebuild-gcj-db @@ -121,9 +129,14 @@ fi %{_javadir}/%{name}.jar %{_javadir}/eclipse-%{name}.jar %{_javadir}/jdtcore.jar + +%files native %{_libdir}/gcj/%{name} %changelog +* Tue Apr 17 2012 Alexander Kurtakov 1:3.4.2-12 +- Separate gcj in subpackage. + * Mon Jan 16 2012 Alexander Kurtakov 1:3.4.2-11 - Patch pom file to better represent ecj and not jdt.core . - Guidelines fixes.