File rakudo.spec of Package rakudo

#
# spec file for package rakudo
#
# Copyright (c) 2012 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.05
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
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
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
PARROT_DIR=%{_libdir}`parrot_config versiondir`
install -d $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT$PARROT_DIR/dynext
install dynext/* $RPM_BUILD_ROOT$PARROT_DIR/dynext
rm -f $RPM_BUILD_ROOT$PARROT_DIR/dynext/IGNORE
install perl6 $RPM_BUILD_ROOT%{_bindir}/perl6

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CREDITS LICENSE README 
%{_bindir}/*
%{_libdir}/parrot/*/dynext/*

%changelog
openSUSE Build Service is sponsored by