2012-02-13 14:43:59 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package perl-Net-IDN-Encode
|
|
|
|
|
#
|
2025-01-20 19:10:01 +00:00
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2012-02-13 14:43:59 +00:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-10-27 13:51:07 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-13 14:43:59 +00:00
|
|
|
|
#
|
|
|
|
|
|
2010-11-01 23:05:06 +00:00
|
|
|
|
|
2025-01-20 19:10:01 +00:00
|
|
|
|
%define cpan_name Net-IDN-Encode
|
2010-11-01 23:05:06 +00:00
|
|
|
|
Name: perl-Net-IDN-Encode
|
2019-10-27 13:51:07 +00:00
|
|
|
|
Version: 2.500
|
2010-11-01 23:05:06 +00:00
|
|
|
|
Release: 0
|
2019-10-27 13:51:07 +00:00
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2025-01-20 19:10:01 +00:00
|
|
|
|
Summary: Internationalizing Domain Names in Applications (UTS #46)
|
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2019-10-27 13:51:07 +00:00
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/C/CF/CFAERBER/%{cpan_name}-%{version}.tar.gz
|
2015-09-30 04:32:19 +00:00
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:16:00 +02:00
|
|
|
|
Source100: README.md
|
2025-01-20 19:10:01 +00:00
|
|
|
|
# PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Bug/Display.html?id=149108
|
|
|
|
|
Patch0: use-uvchr_to_utf8_flags-instead-of-uvuni_to_utf8_fla.patch
|
2012-02-13 14:43:59 +00:00
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:44:21 +00:00
|
|
|
|
BuildRequires: perl-macros
|
2013-07-30 04:57:36 +00:00
|
|
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
2025-01-20 19:10:01 +00:00
|
|
|
|
BuildRequires: perl(Module::Build) >= 0.42
|
2012-02-13 14:43:59 +00:00
|
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
2013-07-30 04:57:36 +00:00
|
|
|
|
%{perl_requires}
|
2010-11-01 23:05:06 +00:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This module provides an easy-to-use interface for encoding and decoding
|
|
|
|
|
Internationalized Domain Names (IDNs).
|
|
|
|
|
|
2013-07-30 04:57:36 +00:00
|
|
|
|
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
|
2019-10-27 13:51:07 +00:00
|
|
|
|
(letter-digit-hyphen, '/[A-Z0-9-]/i').
|
2013-07-30 04:57:36 +00:00
|
|
|
|
|
|
|
|
|
Use this module if you just want to convert domain names (or email
|
|
|
|
|
addresses), using whatever IDNA standard is the best choice at the moment.
|
2010-11-01 23:05:06 +00:00
|
|
|
|
|
2015-09-30 04:32:19 +00:00
|
|
|
|
You should be familiar with Unicode support in perl, as this module expects
|
2019-10-27 13:51:07 +00:00
|
|
|
|
correctly encoded input. See perlunitut, perluniintro and perlunicode for
|
|
|
|
|
details.
|
2015-09-30 04:32:19 +00:00
|
|
|
|
|
2010-11-01 23:05:06 +00:00
|
|
|
|
%prep
|
2025-01-20 19:10:01 +00:00
|
|
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-11-01 23:05:06 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2025-01-20 19:10:01 +00:00
|
|
|
|
perl Build.PL --installdirs=vendor optimize="%{optflags}"
|
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2010-11-01 23:05:06 +00:00
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
./Build test
|
|
|
|
|
|
2013-07-30 04:57:36 +00:00
|
|
|
|
%install
|
2025-01-20 19:10:01 +00:00
|
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2013-07-30 04:57:36 +00:00
|
|
|
|
%perl_gen_filelist
|
2010-11-01 23:05:06 +00:00
|
|
|
|
|
2013-07-30 04:57:36 +00:00
|
|
|
|
%files -f %{name}.files
|
2019-10-27 13:51:07 +00:00
|
|
|
|
%doc Changes README
|
|
|
|
|
%license LICENSE
|
2010-11-01 23:05:06 +00:00
|
|
|
|
|
2012-02-13 14:43:59 +00:00
|
|
|
|
%changelog
|