File perl6-zef.spec of Package perl6-zef
#
# spec file for package perl6-zef
#
# Copyright (c) 2017 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: perl6-zef
Version: 0.13.7
Release: 0.13.7
License: Artistic-2.0
Summary: A Raku / Perl 6 module manager
Url: https://github.com/ugexe/zef.git
Group: Development/Languages/Other
Source0: perl6-zef-0.13.7.tar.xz
BuildRequires: fdupes
BuildRequires: rakudo >= 2017.04.2
Requires: perl6 >= 2016.12
Provides: perl6(Zef)
Provides: perl6(Zef::Build)
Provides: perl6(Zef::CLI)
Provides: perl6(Zef::Client)
Provides: perl6(Zef::Config)
Provides: perl6(Zef::Distribution)
Provides: perl6(Zef::Distribution::DependencySpecification)
Provides: perl6(Zef::Distribution::Local)
Provides: perl6(Zef::Extract)
Provides: perl6(Zef::Fetch)
Provides: perl6(Zef::Identity)
Provides: perl6(Zef::Install)
Provides: perl6(Zef::Report)
Provides: perl6(Zef::Repository)
Provides: perl6(Zef::Repository::Ecosystems)
Provides: perl6(Zef::Repository::LocalCache)
Provides: perl6(Zef::Service::FetchPath)
Provides: perl6(Zef::Service::FileReporter)
Provides: perl6(Zef::Service::InstallRakuDistribution)
Provides: perl6(Zef::Service::Shell::DistributionBuilder)
Provides: perl6(Zef::Service::Shell::LegacyBuild)
Provides: perl6(Zef::Service::Shell::PowerShell)
Provides: perl6(Zef::Service::Shell::PowerShell::download)
Provides: perl6(Zef::Service::Shell::PowerShell::unzip)
Provides: perl6(Zef::Service::Shell::Test)
Provides: perl6(Zef::Service::Shell::curl)
Provides: perl6(Zef::Service::Shell::git)
Provides: perl6(Zef::Service::Shell::p5tar)
Provides: perl6(Zef::Service::Shell::prove)
Provides: perl6(Zef::Service::Shell::tar)
Provides: perl6(Zef::Service::Shell::unzip)
Provides: perl6(Zef::Service::Shell::wget)
Provides: perl6(Zef::Service::TAP)
Provides: perl6(Zef::Test)
Provides: perl6(Zef::Utils::FileSystem)
Provides: perl6(Zef::Utils::SystemQuery)
Provides: perl6(Zef::Utils::URI)
Provides: perl6(zef)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A Raku / Perl 6 module manager
%prep
%setup -q
%build
%install
RAKUDO_MODULE_DEBUG=1 RAKUDOE_PRECOMP_VERBOSE=1 RAKUDO_RERESOLVE_DEPENDENCIES=0 raku --ll-exception %{_datadir}/perl6/bin/install-perl6-dist \
--to=$RPM_BUILD_ROOT%{_datadir}/perl6/vendor \
--for=vendor \
--from=.
%fdupes %{buildroot}/%{_datadir}/perl6/vendor
rm -f %{buildroot}%{_datadir}/perl6/vendor/bin/*-j
rm -f %{buildroot}%{_datadir}/perl6/vendor/bin/*-js
find %{buildroot}/%{_datadir}/perl6/vendor/bin/ -type f -exec sed -i -e '1s:!/usr/bin/env :!/usr/bin/:' '{}' \;
%files
%defattr(-,root,root)
%doc
%{_datadir}/perl6/vendor
%changelog