File perl6-Net-DNS.spec of Package perl6-Net-DNS
#
# spec file for package perl6-Net-DNS
#
# 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-Net-DNS
Version: 1.3
Release: 1.3
License: MIT
Summary: Simple DNS Resolver
Url: http://www.cpan.org/authors/id/R/RB/RBT/Perl6/Net-DNS-1.3.tar.gz
Group: Development/Languages/Other
Source0: perl6-Net-DNS-1.3.tar.xz
BuildRequires: fdupes
BuildRequires: rakudo >= 2017.04.2
Requires: perl6 >= 2016.12
Provides: perl6(Net::DNS)
Provides: perl6(Net::DNS::Message)
Provides: perl6(Net::DNS::Message::DomainName)
Provides: perl6(Net::DNS::Message::Header)
Provides: perl6(Net::DNS::Message::Question)
Provides: perl6(Net::DNS::Message::Resource)
Provides: perl6(Net::DNS::Message::Resource::A)
Provides: perl6(Net::DNS::Message::Resource::AAAA)
Provides: perl6(Net::DNS::Message::Resource::CNAME)
Provides: perl6(Net::DNS::Message::Resource::MX)
Provides: perl6(Net::DNS::Message::Resource::NS)
Provides: perl6(Net::DNS::Message::Resource::PTR)
Provides: perl6(Net::DNS::Message::Resource::RRSIG)
Provides: perl6(Net::DNS::Message::Resource::SOA)
Provides: perl6(Net::DNS::Message::Resource::SPF)
Provides: perl6(Net::DNS::Message::Resource::SRV)
Provides: perl6(Net::DNS::Message::Resource::TXT)
Provides: perl6(Net::DNS::Type)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Simple DNS Resolver
%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 README.md
%license LICENSE
%{_datadir}/perl6/vendor
%changelog