[nqp] add subpackage jvm
Gerd Pokorra
gerd at fedoraproject.org
Sat Apr 5 08:03:42 UTC 2014
commit 812b6a92315b68b81b776032af998f2fc7f77d45
Author: gerd <gp at zimt.uni-siegen.de>
Date: Sat Apr 5 10:03:21 2014 +0200
add subpackage jvm
nqp.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 46 insertions(+), 2 deletions(-)
---
diff --git a/nqp.spec b/nqp.spec
index 53470e3..c8d62bf 100644
--- a/nqp.spec
+++ b/nqp.spec
@@ -1,3 +1,12 @@
+#
+# disables the check: brp-java-repack-jars
+# needed that the following error do not happen:
+# Unhandled exception: java.lang.RuntimeException: Bytecode jar contains
+# unexpected file META-INF/
+# in (src/stage2/gen/NQP.nqp)
+#
+%define __jar_repack %{nil}
+
%global year 2014
%global month 03
%global parrot_version 6.1.0
@@ -7,7 +16,7 @@
Name: nqp
Version: 0.0.%{year}.%{month}
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Not Quite Perl (6)
Group: Development/Libraries
@@ -36,6 +45,31 @@ still providing a Perl 6 object model and regular expression engine
for the virtual machine.
+#--
+
+%package jvm
+Summary: Not Quite Perl (6) build on JVM
+Group: Development/Libraries
+
+BuildArch: noarch
+
+BuildRequires: perl(Text::ParseWords)
+BuildRequires: perl(Test::Harness)
+
+BuildRequires: jpackage-utils
+BuildRequires: java
+BuildRequires: java-devel
+
+Requires: java
+
+
+%description jvm
+Not Quite Perl (6) build on JVM
+
+#--
+
+
+
%prep
%setup -q -n %{name}-%{year}.%{month}
#
@@ -51,7 +85,7 @@ rm `find 3rdparty/libtommath -type f ! -name '*long.c' -a ! -name '*.h'`
%build
-%{__perl} Configure.pl --has-libtommath
+%{__perl} Configure.pl --has-libtommath -backends=parrot,jvm --prefix=%{_usr}
CFLAGS="$RPM_OPT_FLAGS -fPIC" %{__make} # %{?_smp_mflags}
@@ -92,7 +126,17 @@ CFLAGS="$RPM_OPT_FLAGS -fPIC" %{__make} # %{?_smp_mflags}
%{_includedir}/parrot/%{parrot_version}/dynpmc/pmc_*
+%files jvm
+%{_bindir}/nqp-j
+%{_bindir}/eval-client.pl
+%dir %{_usr}/languages
+%dir %{_usr}/languages/nqp
+%{_usr}/languages/nqp
+
%changelog
+* Fri Apr 04 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.0.2014.03-4
+- add subpackage jvm
+
* Fri Apr 04 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.0.2014.03-3
- add a comment while not all libtommath source files are deleted
More information about the scm-commits
mailing list