8
0

Compare commits

...

12 Commits

Author SHA256 Message Date
6e3ac24dca Accepting request 1239110 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1239110
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Net-IDN-Encode?expand=0&rev=14
2025-01-21 20:10:24 +00:00
9db441e688 Accepting request 1239103 from home:tinita:branches:home:anag+factory:branches:devel:languages:perl
Add use-uvchr_to_utf8_flags-instead-of-uvuni_to_utf8_fla.patch

OBS-URL: https://build.opensuse.org/request/show/1239103
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-IDN-Encode?expand=0&rev=24
2025-01-20 19:10:01 +00:00
c53871db02 Accepting request 743339 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/743339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Net-IDN-Encode?expand=0&rev=13
2019-10-28 15:58:45 +00:00
Lars Vogdt
3f49f6053a Accepting request 741586 from devel:languages:perl:autoupdate
- 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.
- updated to 2.500
   see /usr/share/doc/packages/perl-Net-IDN-Encode/Changes

OBS-URL: https://build.opensuse.org/request/show/741586
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-IDN-Encode?expand=0&rev=22
2019-10-27 13:51:07 +00:00
c9dba4bcf0 Accepting request 334897 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/334897
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Net-IDN-Encode?expand=0&rev=12
2015-10-06 11:24:45 +00:00
Stephan Kulow
bee6d8f9e2 Accepting request 334896 from devel:languages:perl:autoupdate
- add cpanspec.yml

OBS-URL: https://build.opensuse.org/request/show/334896
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-IDN-Encode?expand=0&rev=20
2015-09-30 04:32:19 +00:00
Stephan Kulow
2783186c90 Accepting request 334883 from home:oertel:branches:devel:languages:perl
- 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

OBS-URL: https://build.opensuse.org/request/show/334883
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-IDN-Encode?expand=0&rev=19
2015-09-30 04:28:47 +00:00
Stephan Kulow
cd32833a67 Accepting request 249364 from devel:languages:perl
- 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)

OBS-URL: https://build.opensuse.org/request/show/249364
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Net-IDN-Encode?expand=0&rev=11
2014-09-17 15:25:57 +00:00
Stephan Kulow
16ff195968 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-IDN-Encode?expand=0&rev=17
2014-09-15 15:54:44 +00:00
Stephan Kulow
5535ed574f Accepting request 241901 from devel:languages:perl
->

OBS-URL: https://build.opensuse.org/request/show/241901
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Net-IDN-Encode?expand=0&rev=9
2014-07-23 20:07:01 +00:00
7b313f6d56 - fix off-by-one error in memory allocation in the punycode encoder
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-IDN-Encode?expand=0&rev=15
2014-07-22 14:01:12 +00:00
Stephan Kulow
a02a770f1d - updated to 2.200
- Net::IDN::UTS46: update to Unicode® 7.0.0 and UTS #46 r13
    - typo and metadata fixes from dstreinbrunner

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-IDN-Encode?expand=0&rev=14
2014-07-20 07:30:06 +00:00
6 changed files with 149 additions and 23 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:018898c79f279b8390d646ab1825508c37b0c511f337e6bfe059a97fae30f09a
size 452625

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:55453633e3ff24ce325b34bc2c8157b9859962a31ab5cf28bf7ccc1c9b3a3eaa
size 648108

22
cpanspec.yml Normal file
View 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

View File

@@ -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

View File

@@ -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

View 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