perl-Net-IDN-Encode/perl-Net-IDN-Encode.spec

60 lines
1.7 KiB
RPMSpec

Name: perl-Net-IDN-Encode
Version: 2.500
Release: 2%{?dist}
Summary: Internationalizing Domain Names in Applications (IDNA)
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Net-IDN-Encode/
Source0: http://www.cpan.org/authors/id/C/CF/CFAERBER/Net-IDN-Encode-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl >= 0:5.008005
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Unicode::Normalize)
Requires: perl(Unicode::Normalize)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module provides an easy-to-use interface for encoding and decoding
Internationalized Domain Names (IDNs).
%prep
%setup -q -n Net-IDN-Encode-%{version}
%build
%{__perl} Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS"
./Build
%install
rm -rf $RPM_BUILD_ROOT
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes eg LICENSE META.json README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Net*
%{_mandir}/man3/*
%changelog
* Fri Jan 24 2025 Jean-Philippe Pialasse <jpp@koozali.org> 2.500-2.sme
- up release
* Tue Jan 21 2025 Koozali 2.500-1
- Specfile autogenerated by cpanspec 1.78.