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 http://bugs.opensuse.org/
#
Name: rakudo
Version: 2012.12
Release: 0
Summary: Perl 6 implemenation that runs on Parrot
License: Artistic-2.0
Group: Development/Languages/Other
Url: http://rakudo.org/
Source0: rakudo-%{version}.tar.gz
BuildRequires: nqp
BuildRequires: parrot-devel
Provides: perl6 = %{version}-%{release}
Requires: nqp >= 2012.06.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Rakudo Perl 6, or just Rakudo, is an implementation of the Perl 6
specification that runs on the Parrot virtual machine.
%prep
%setup -q
%build
perl Configure.pl --with-nqp=/usr/bin/nqp
make
# currently hangs on 32bit platforms :(
#make test
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/usr/share/doc
%files
%defattr(-,root,root)
%doc CREDITS LICENSE README
%{_bindir}/*
%{_libdir}/parrot/*/dynext/*
%{_libdir}/parrot/*/languages/nqp/lib/*
%{_libdir}/parrot/*/languages/perl6
%doc %{_mandir}/man1/*
%changelog