Separate gcj in subpackage.
This commit is contained in:
parent
e8fcec6368
commit
cb70f90985
27
ecj.spec
27
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@redhat.com> 1:3.4.2-12
|
||||
- Separate gcj in subpackage.
|
||||
|
||||
* Mon Jan 16 2012 Alexander Kurtakov <akurtako@redhat.com> 1:3.4.2-11
|
||||
- Patch pom file to better represent ecj and not jdt.core .
|
||||
- Guidelines fixes.
|
||||
|
Loading…
Reference in New Issue
Block a user