File raku-Cro-Core.spec of Package raku-Cro-Core

#
# spec file for package raku-Cro-Core
#
# 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:           raku-Cro-Core
Version:        0.8.9
Release:        0.8.9
License:        Artistic-2.0
Summary:        Implements the asynchronous pipeline at the heart of all Cro libraries
Url:            https://github.com/croservices/cro-core.git
Group:          Development/Languages/Other
Source0:        raku-Cro-Core-0.8.9.tar.xz
BuildRequires:  fdupes
BuildRequires:  rakudo >= 2017.04.2
Requires:       raku >= 2016.12
Provides:       raku(Cro)
Provides:       perl6(Cro)
Provides:       raku(Cro::BodyParser)
Provides:       perl6(Cro::BodyParser)
Provides:       raku(Cro::BodyParserSelector)
Provides:       perl6(Cro::BodyParserSelector)
Provides:       raku(Cro::BodySerializer)
Provides:       perl6(Cro::BodySerializer)
Provides:       raku(Cro::BodySerializerSelector)
Provides:       perl6(Cro::BodySerializerSelector)
Provides:       raku(Cro::Connection)
Provides:       perl6(Cro::Connection)
Provides:       raku(Cro::Connector)
Provides:       perl6(Cro::Connector)
Provides:       raku(Cro::Core)
Provides:       perl6(Cro::Core)
Provides:       raku(Cro::Iri)
Provides:       perl6(Cro::Iri)
Provides:       raku(Cro::MediaType)
Provides:       perl6(Cro::MediaType)
Provides:       raku(Cro::Message)
Provides:       perl6(Cro::Message)
Provides:       raku(Cro::MessageWithBody)
Provides:       perl6(Cro::MessageWithBody)
Provides:       raku(Cro::Policy::Timeout)
Provides:       perl6(Cro::Policy::Timeout)
Provides:       raku(Cro::Replyable)
Provides:       perl6(Cro::Replyable)
Provides:       raku(Cro::ResourceIdentifier)
Provides:       perl6(Cro::ResourceIdentifier)
Provides:       raku(Cro::Service)
Provides:       perl6(Cro::Service)
Provides:       raku(Cro::Sink)
Provides:       perl6(Cro::Sink)
Provides:       raku(Cro::Source)
Provides:       perl6(Cro::Source)
Provides:       raku(Cro::TCP)
Provides:       perl6(Cro::TCP)
Provides:       raku(Cro::TCP::NoDelay)
Provides:       perl6(Cro::TCP::NoDelay)
Provides:       raku(Cro::Transform)
Provides:       perl6(Cro::Transform)
Provides:       raku(Cro::Types)
Provides:       perl6(Cro::Types)
Provides:       raku(Cro::UnhandledErrorReporter)
Provides:       perl6(Cro::UnhandledErrorReporter)
Provides:       raku(Cro::Uri)
Provides:       perl6(Cro::Uri)
Obsoletes:      perl6-Cro-Core
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%global debug_package %{nil}

%description
Implements the asynchronous pipeline at the heart of all Cro libraries
%prep

%setup -q

%build

%install
RAKUDO_MODULE_DEBUG=1 RAKUDO_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 README.md

%license LICENSE
%{_datadir}/perl6/vendor

%changelog
openSUSE Build Service is sponsored by