File perl-Net-IDN-Nameprep.spec of Package perl-Net-IDN-Nameprep
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Net-IDN-Nameprep
#
# 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-Nameprep
Version: 1.100
Release: 0
Summary: Stringprep Profile for Internationalized Domain Names (RFC 3491)
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-Nameprep-%{version}.tar.gz
Url: http://search.cpan.org/dist/Net-IDN-Nameprep/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Unicode::Stringprep)
Requires: perl(Unicode::Stringprep)
%description
This module implements the nameprep specification, which describes how to
prepare internationalized domain name (IDN) labels in order to increase the
likelihood that name input and name comparison work in ways that make sense for
typical users throughout the world. Nameprep is a profile of the stringprep
protocol and is used as part of a suite of on-the-wire protocols for
internationalizing the Domain Name System (DNS).
%prep
%setup -q -n "Net-IDN-Nameprep-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%__chmod -x Changes
find . -name '*.pm' -exec %__chmod -x {} \;
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%__perl ./Build.PL
./Build
%install
%perl_make_install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
%__make test
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Net
%dir %{perl_vendorlib}/Net/IDN
%{perl_vendorlib}/Net/IDN/Nameprep.pm
%dir %{perl_vendorarch}/auto/Net
%dir %{perl_vendorarch}/auto/Net/IDN
%{perl_vendorarch}/auto/Net/IDN/Nameprep
%doc %{perl_man3dir}/Net::IDN::Nameprep.%{perl_man3ext}%{ext_man}
%changelog