File raku-LIVR.spec of Package raku-LIVR
#
# spec file for package raku-LIVR
#
# 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-LIVR
Version: 2.1.0
Release: 2.1.0
License: Artistic-2.0
Summary: Lightweight Perl validator supporting Language Independent Validation Rules Specification (LIVR)
Url: http://www.cpan.org/authors/id/K/KO/KOORCHIK/Perl6/LIVR-2.1.0.tar.gz
Group: Development/Languages/Other
Source0: raku-LIVR-2.1.0.tar.xz
BuildRequires: fdupes
BuildRequires: rakudo >= 2017.04.2
BuildRequires: raku(JSON::Tiny)
BuildRequires: raku(Email::Valid)
Requires: raku >= 2016.12
Requires: raku(JSON::Tiny)
Requires: raku(Email::Valid)
Provides: raku(LIVR)
Provides: perl6(LIVR)
Provides: raku(LIVR::Rules::Common)
Provides: perl6(LIVR::Rules::Common)
Provides: raku(LIVR::Rules::Meta)
Provides: perl6(LIVR::Rules::Meta)
Provides: raku(LIVR::Rules::Modifiers)
Provides: perl6(LIVR::Rules::Modifiers)
Provides: raku(LIVR::Rules::Numeric)
Provides: perl6(LIVR::Rules::Numeric)
Provides: raku(LIVR::Rules::Special)
Provides: perl6(LIVR::Rules::Special)
Provides: raku(LIVR::Rules::String)
Provides: perl6(LIVR::Rules::String)
Provides: raku(LIVR::Utils)
Provides: perl6(LIVR::Utils)
Provides: raku(LIVR::Validator)
Provides: perl6(LIVR::Validator)
Obsoletes: perl6-LIVR
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global debug_package %{nil}
%description
Lightweight Perl validator supporting Language Independent Validation Rules Specification (LIVR)
%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