File rakudo.spec of Package rakudo

# spec file for package rakudo
# Copyright (c) 2020 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           rakudo
Version:        2020.01+git234.g2b7d5ffeb
Release:        2.1
Summary:        Perl 6 implemenation that runs on MoarVM
License:        Artistic-2.0
Group:          Development/Languages/Other
Source0:        rakudo-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  moarvm-devel >= 2020.01
BuildRequires:  nqp >= 2020.01+git23.g3bbce8c3a
Provides:       perl6 = %{version}-%{release}
Requires:       nqp >= 2020.01+git23.g3bbce8c3a
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Rakudo Perl 6, or just Rakudo, is an implementation of the Perl 6 
specification that runs on the Moar virtual machine.

%setup -q

perl --prefix="%{_prefix}" --ignore-errors

%ifnarch armv6l armv6hl
# See armv6 issue:
rm t/08-performance/99-misc.t

mkdir -p "%{buildroot}/%{_datadir}/perl6/bin"
cp tools/install-dist.p6 "%{buildroot}/%{_datadir}/perl6/bin/install-perl6-dist"
chmod +x "%{buildroot}/%{_datadir}/perl6/bin/install-perl6-dist"
rm "%{buildroot}/%{_bindir}/raku"
rm "%{buildroot}/%{_bindir}/raku-debug"
ln -s "rakudo %{buildroot}/%{_bindir}/raku"
ln -s "rakudo-debug %{buildroot}/%{_bindir}/raku-debug"
%fdupes %{buildroot}/%{_bindir}
%fdupes %{buildroot}/%{_datadir}/perl6/runtime

%license LICENSE