Name: perl-Net-IDN-PP Version: 0.01 Release: 1%{?dist} Summary: Pure-Perl implementation of the IDN Punycode algorithm License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/dist/Net-IDN-PP Source0: https://cpan.metacpan.org/authors/id/G/GB/GBROWN/Net-IDN-PP-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(common::sense) # Tests: BuildRequires: perl(open) BuildRequires: perl(Test::More) BuildRequires: perl(vars) %description Net::IDN::PP is a pure Perl IDN encoder/decoder. The decode() method takes an "A-label" and decodes it, and encode() takes a "U-label" and encodes it. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n Net-IDN-PP-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files # Each of the READMEs contain a different set of information %doc README README.md %license LICENSE %dir %{perl_vendorlib}/Net %dir %{perl_vendorlib}/Net/IDN %{perl_vendorlib}/Net/IDN/PP.pm %{_mandir}/man3/Net::IDN::PP.* %files tests %{_libexecdir}/%{name} %changelog * Wed Oct 15 2025 Petr Pisar 0.01-1 - Specfile autogenerated by cpanspec 1.78.