File perl-Net-IDN-Encode.spec of Package perl-Net-IDN-Encode
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Net-IDN-Encode
#
# Copyright (c) 2012 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: perl-Net-IDN-Encode
Version: 1.100
Release: 0
Summary: Internationalizing Domain Names in Applications (RFC 3490)
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/Net-IDN-Encode-%{version}.tar.gz
Url: http://search.cpan.org/dist/Net-IDN-Encode/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Net::IDN::Nameprep)
BuildRequires: perl(Test::NoWarnings)
Requires: perl(Net::IDN::Nameprep)
%description
This module provides an easy-to-use interface for encoding and decoding
Internationalized Domain Names (IDNs).
IDNs use characters drawn from a large repertoire (Unicode), but IDNA allows
the non-ASCII characters to be represented using only the ASCII characters
already allowed in so-called host names today (letter-digit-hypen,
/[A-Z0-9-]/i).
%prep
%setup -q -n "Net-IDN-Encode-%{version}"
find . -type f -name '*.pm' -exec %__chmod -x {} \;
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README LICENSE
%dir %{perl_vendorarch}/Net
%dir %{perl_vendorarch}/Net/IDN
%{perl_vendorarch}/Net/IDN/Encode.pm
%dir %{perl_vendorarch}/Net/IDN/Punycode.pm
%{perl_vendorarch}/Net/IDN/Punycode
%dir %{perl_vendorarch}/auto/Net
%dir %{perl_vendorarch}/auto/Net/IDN
%{perl_vendorarch}/auto/Net/IDN/Encode
%{perl_vendorarch}/auto/Net/IDN/Punycode
%doc %{perl_man3dir}/Net::IDN::Encode.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Net::IDN::Punycode.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Net::IDN::Punycode::*.%{perl_man3ext}%{ext_man}
%changelog