File rakudo.spec of Package rakudo

# spec file for package rakudo
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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:        2013.06
Release:        0
Summary:        Perl 6 implemenation that runs on Parrot
License:        Artistic-2.0
Group:          Development/Languages/Other
Source0:        rakudo-%{version}.tar.gz
BuildRequires:  nqp
BuildRequires:  nqp-devel
BuildRequires:  parrot-devel
Provides:       perl6 = %{version}-%{release}
Requires:       nqp >= 2012.06.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%setup -q

perl --with-nqp=/usr/bin/nqp

make test

mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name} $RPM_BUILD_ROOT%{_defaultdocdir}

%doc %{_mandir}/man1/*
%dir %{_defaultdocdir}/%{name}
%doc %{_defaultdocdir}/%{name}/*