# # disables the check: brp-java-repack-jars # needed that the following error do not happen at the 'rakudo' build # also the the command 'nqp-j --version' fails with that error: # Unhandled exception: java.lang.RuntimeException: Bytecode jar contains # unexpected file META-INF/ # in (src/stage2/gen/NQP.nqp) # %define __jar_repack %{nil} %global year 2016 %global month 11 Name: nqp-jvm Version: 0.%{year}.%{month} Release: 1%{?dist} Summary: Not Quite Perl (6) build on JVM BuildArch: noarch License: Artistic 2.0 and ISC and WTFPL URL: https://github.com/perl6/nqp Source0: http://rakudo.org/downloads/nqp/nqp-%{year}.%{month}.tar.gz BuildRequires: perl(Text::ParseWords) BuildRequires: perl(Test::Harness) BuildRequires: perl(ExtUtils::Command) BuildRequires: jpackage-utils BuildRequires: java BuildRequires: java-devel Requires: java %description This is "Not Quite Perl" -- a lightweight Perl 6-like environment for the Java virtual machine. The key feature of NQP is that it's designed to be a very small environment (as compared with, say, perl6 or Rakudo) and is focused on being a high-level way to create compilers and libraries for the Java virtual machine (JVM). Unlike a full-fledged implementation of Perl 6, NQP strives to have as small a run-time footprint as it can, while still providing a Perl 6 object model and regular expression engine for the virtual machine. # There exists already a doc subpackage for documentation and examples about NQP# form the nqp package %prep %setup -q -n nqp-%{year}.%{month} %build # needed to build on arm sed -i -e "s/= java$/= java -Xmx2048m/" tools/build/Makefile-JVM.in rm -r 3rdparty/libtommath 3rdparty/sha1 # this was for the parrot backend %{__perl} Configure.pl --backends=jvm --prefix=%{_usr} %{__make} %{?_smp_mflags} %install %make_install # nqp-m is the default for the nqp executable rm -f $RPM_BUILD_ROOT/%{_bindir}/nqp %check rm -f t/nativecall/01-basic.t %{?!_without_tests: make test} %files %doc CREDITS README.pod %license LICENSE %{_bindir}/nqp-j %{_bindir}/eval-client.pl %{_datadir}/nqp %changelog * Wed Feb 01 2017 Gerd Pokorra 0.2016.11-1 - initial .spec file created