File perl6-Inline-Perl5.spec of Package perl6-Inline-Perl5
#
# spec file for package perl6-Inline-Perl5
#
# Copyright (c) 2016 Stefan Seifert <nine@detonation.org>
#
# 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: perl6-Inline-Perl5
Version: 0.50
Release: 1.1
Summary: Bridge between Perl 5 and Perl 6
License: Artistic-2.0
Group: Development/Languages/Other
Url: https://github.com/niner/Inline-Perl5
Source0: perl6-Inline-Perl5-%{version}.tar.xz
BuildRequires: rakudo >= 2020.02
BuildRequires: perl6(Distribution::Builder::MakeFromJSON)
BuildRequires: fdupes
Requires: perl6 >= 2019.03.1
Requires: perl >= 5.20.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Module for executing Perl 5 code and accessing Perl 5 modules from Perl 6.
Supports Perl 5 modules including XS modules. Allows passing integers,
strings, arrays, hashes, code references, file handles and objects between
Perl 5 and Perl 6. Also supports calling methods on Perl 5 objects from
Perl 6 and calling methods on Perl 6 objects from Perl 5 and subclass
Perl 5 classes in Perl 6.
%prep
%setup -q
%build
RAKUDO_MODULE_DEBUG=1 RAKUDOE_PRECOMP_VERBOSE=1 RAKUDO_RERESOLVE_DEPENDENCIES=0 raku --ll-exception \
%{_datadir}/perl6/bin/install-perl6-dist \
--only-build \
--from=.
%check
make test
%install
RAKUDO_RERESOLVE_DEPENDENCIES=0 raku --ll-exception \
%{_datadir}/perl6/bin/install-perl6-dist \
--to=$RPM_BUILD_ROOT%{_datadir}/perl6/vendor \
--for=vendor \
--/build \
--from=.
%fdupes %{buildroot}/%{_datadir}/perl6/vendor
%files
%defattr(-,root,root)
%doc README.md
%license LICENSE
%{_datadir}/perl6/vendor
%changelog