[ecj] Separate gcj in subpackage.

Alexander Kurtakov akurtakov at fedoraproject.org
Tue Apr 17 14:36:54 UTC 2012


commit cb70f90985597e5a14ce2b104b99aed869ab03a2
Author: Alexander Kurtakov <akurtako at redhat.com>
Date:   Tue Apr 17 17:36:40 2012 +0300

    Separate gcj in subpackage.

 ecj.spec |   27 ++++++++++++++++++++-------
 1 files 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 <akurtako at redhat.com> 1:3.4.2-12
+- Separate gcj in subpackage.
+
 * Mon Jan 16 2012 Alexander Kurtakov <akurtako at redhat.com> 1:3.4.2-11
 - Patch pom file to better represent ecj and not jdt.core .
 - Guidelines fixes.


More information about the scm-commits mailing list