%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Net-IDN-Encode Version: 2.500 Release: 1mamba Summary: Net::IDN::Encode - Encoding/Decoding of Internationalized Domain Names (IDNs). Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cpan.org/ Source: https://cpan.metacpan.org/authors/id/C/CF/CFAERBER/Net-IDN-Encode-%{version}.tar.gz License: Artistic, GPL Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN BuildRequires: libperl BuildRequires: perl-devel ## AUTOBUILDREQ-END %description The "Net::IDN::Encode" module provides an easy-to-use interface for Internationalized Domain Names (IDNs). %prep %setup -q -n Net-IDN-Encode-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Mon Jan 10 2022 Silvan Calarco 2.500-1mamba - update to 2.500 * Thu Aug 29 2013 Automatic Build System 0.99-3mamba - automatic rebuild by autodist * Wed Nov 05 2008 Silvan Calarco 0.99-2mamba - automatic rebuild by autodist * Mon Oct 20 2008 gil 0.99-1mamba - package created by autospec