forked from pool/perl-Net-IDN-Encode
Compare commits
12 Commits
4a05352711
...
6e3ac24dca
| Author | SHA256 | Date | |
|---|---|---|---|
| 6e3ac24dca | |||
| 9db441e688 | |||
| c53871db02 | |||
|
|
3f49f6053a | ||
| c9dba4bcf0 | |||
|
|
bee6d8f9e2 | ||
|
|
2783186c90 | ||
|
|
cd32833a67 | ||
|
|
16ff195968 | ||
|
|
5535ed574f | ||
| 7b313f6d56 | |||
|
|
a02a770f1d |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:018898c79f279b8390d646ab1825508c37b0c511f337e6bfe059a97fae30f09a
|
||||
size 452625
|
||||
3
Net-IDN-Encode-2.500.tar.gz
Normal file
3
Net-IDN-Encode-2.500.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:55453633e3ff24ce325b34bc2c8157b9859962a31ab5cf28bf7ccc1c9b3a3eaa
|
||||
size 648108
|
||||
22
cpanspec.yml
Normal file
22
cpanspec.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
patches:
|
||||
use-uvchr_to_utf8_flags-instead-of-uvuni_to_utf8_fla.patch: -p1 PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Bug/Display.html?id=149108
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
@@ -1,3 +1,62 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 16 14:32:56 UTC 2025 - Ana Guerrero <ana.guerrero@suse.com>
|
||||
|
||||
- Add patch use-uvchr_to_utf8_flags-instead-of-uvuni_to_utf8_fla.patch
|
||||
to build after uvuni_to_utf8_flags was deprecated in Perl 5.36.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 21 15:16:27 UTC 2019 - Tina Mueller <tina.mueller@suse.com>
|
||||
|
||||
- Remove patch encodeoffbyone.diff
|
||||
* The corresponding code has been refactored, so the patch does not apply
|
||||
anymore. Tests are passing without the patch, so I assume it was fixed.
|
||||
I could not figure out the corresponding RT Ticket or github issue.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 07:17:25 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||
|
||||
- updated to 2.500
|
||||
see /usr/share/doc/packages/perl-Net-IDN-Encode/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 30 04:31:52 UTC 2015 - coolo@suse.com
|
||||
|
||||
- add cpanspec.yml
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 30 01:50:52 CEST 2015 - ro@suse.de
|
||||
|
||||
- update to 2.300
|
||||
- update to Unicode 8.0.0
|
||||
- update to 2.202
|
||||
- use updated IdnaTest.txt from Unicode 7.0.0 database
|
||||
FIXES: #96749: Fails with bleadperl
|
||||
- documentation updates, point to perl Unicode tutorials
|
||||
- tests for domain xn--zcaa.de;
|
||||
REJECTED: #103205 for Net-IDN-Encode: conversion of domain name
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 15 15:44:52 UTC 2014 - coolo@suse.com
|
||||
|
||||
- updated to 2.201
|
||||
- correct handling of uppercase a-labels in
|
||||
domain_to_{ascii,unicode}
|
||||
- FIXES: #98354: Capitalized ACE prefix does not work (reported
|
||||
by victor@*****.ru)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 22 16:00:29 CEST 2014 - mls@suse.de
|
||||
|
||||
- fix off-by-one error in memory allocation in the punycode encoder
|
||||
new patch: encodeoffbyone.diff
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 20 07:29:18 UTC 2014 - coolo@suse.com
|
||||
|
||||
- updated to 2.200
|
||||
- Net::IDN::UTS46: update to Unicode® 7.0.0 and UTS #46 r13
|
||||
- typo and metadata fixes from dstreinbrunner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 17 13:13:25 UTC 2014 - coolo@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Net-IDN-Encode
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,24 +12,25 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Net-IDN-Encode
|
||||
Version: 2.100
|
||||
Release: 0
|
||||
%define cpan_name Net-IDN-Encode
|
||||
Summary: Internationalizing Domain Names in Applications (IDNA)
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Net-IDN-Encode/
|
||||
Source: http://www.cpan.org/authors/id/C/CF/CFAERBER/%{cpan_name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Name: perl-Net-IDN-Encode
|
||||
Version: 2.500
|
||||
Release: 0
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Internationalizing Domain Names in Applications (UTS #46)
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/C/CF/CFAERBER/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
# 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
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::CBuilder)
|
||||
BuildRequires: perl(Module::Build) >= 0.4200
|
||||
BuildRequires: perl(Module::Build) >= 0.42
|
||||
BuildRequires: perl(Test::NoWarnings)
|
||||
%{perl_requires}
|
||||
|
||||
@@ -40,28 +41,33 @@ 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').
|
||||
(letter-digit-hyphen, '/[A-Z0-9-]/i').
|
||||
|
||||
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.
|
||||
|
||||
You should be familiar with Unicode support in perl, as this module expects
|
||||
correctly encoded input. See perlunitut, perluniintro and perlunicode for
|
||||
details.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
%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
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
|
||||
./Build build flags=%{?_smp_mflags}
|
||||
perl Build.PL --installdirs=vendor optimize="%{optflags}"
|
||||
./Build build --flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes eg LICENSE README
|
||||
%doc Changes README
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
||||
39
use-uvchr_to_utf8_flags-instead-of-uvuni_to_utf8_fla.patch
Normal file
39
use-uvchr_to_utf8_flags-instead-of-uvuni_to_utf8_fla.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
From 3ebe6f2e239b470efcb64a044edc8202798188af Mon Sep 17 00:00:00 2001
|
||||
From: Shin Kojima <shin@kojima.org>
|
||||
Date: Sun, 23 Jul 2023 13:15:59 +0900
|
||||
Subject: [PATCH] use uvchr_to_utf8_flags instead of uvuni_to_utf8_flags (which
|
||||
is removed in perl 5.38.0)
|
||||
|
||||
https://perldoc.perl.org/5.36.0/perlintern#uvuni_to_utf8_flags
|
||||
Signed-off-by: Shin Kojima <shin@kojima.org>
|
||||
---
|
||||
lib/Net/IDN/Punycode.xs | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/Net/IDN/Punycode.xs b/lib/Net/IDN/Punycode.xs
|
||||
index 211ef9c..36530dd 100644
|
||||
--- a/lib/Net/IDN/Punycode.xs
|
||||
+++ b/lib/Net/IDN/Punycode.xs
|
||||
@@ -24,6 +24,10 @@
|
||||
#define utf8_to_uvchr_buf(in_p,in_e,u8) utf8_to_uvchr(in_p,u8);
|
||||
#endif
|
||||
|
||||
+#ifndef uvchr_to_utf8_flags
|
||||
+#define uvchr_to_utf8_flags(d, uv, flags) uvuni_to_utf8_flags(d, uv, flags);
|
||||
+#endif
|
||||
+
|
||||
static char enc_digit[BASE] = {
|
||||
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
|
||||
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
|
||||
@@ -253,7 +257,7 @@ decode_punycode(input)
|
||||
if(skip_p < re_p) /* move succeeding chars */
|
||||
Move(skip_p, skip_p + u8, re_p - skip_p, char);
|
||||
re_p += u8;
|
||||
- uvuni_to_utf8_flags((U8*)skip_p, n, UNICODE_ALLOW_ANY);
|
||||
+ uvchr_to_utf8_flags((U8*)skip_p, n, UNICODE_ALLOW_ANY);
|
||||
}
|
||||
|
||||
if(!first) SvUTF8_on(RETVAL); /* UTF-8 chars have been inserted */
|
||||
--
|
||||
2.48.0
|
||||
|
||||
Reference in New Issue
Block a user