From 3f85563c77bc82cbdf6518d67d0fc7ff725f2155899ce8c5f2528df80cfc306f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 19:04:42 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main perl-Unicode-EastAsianWidth revision 31a4d614c6a322fc5497568d85c4068a --- .gitattributes | 23 ++++++++ Unicode-EastAsianWidth-12.0.tar.gz | 3 ++ cpanspec.yml | 28 ++++++++++ perl-Unicode-EastAsianWidth.changes | 26 +++++++++ perl-Unicode-EastAsianWidth.spec | 82 +++++++++++++++++++++++++++++ 5 files changed, 162 insertions(+) create mode 100644 .gitattributes create mode 100644 Unicode-EastAsianWidth-12.0.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-Unicode-EastAsianWidth.changes create mode 100644 perl-Unicode-EastAsianWidth.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/Unicode-EastAsianWidth-12.0.tar.gz b/Unicode-EastAsianWidth-12.0.tar.gz new file mode 100644 index 0000000..bfa8fca --- /dev/null +++ b/Unicode-EastAsianWidth-12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a5bfd926c4fe5f77e6137da2c31ac2545282ae5fec6e9af0fdd403555a90ff4 +size 52302 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..db1ced7 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,28 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#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_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +license: CC0-1.0 +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Unicode-EastAsianWidth.changes b/perl-Unicode-EastAsianWidth.changes new file mode 100644 index 0000000..7440d34 --- /dev/null +++ b/perl-Unicode-EastAsianWidth.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Fri Sep 27 12:49:05 UTC 2019 - Tina Mueller + +- Add custom CC0 license to cpanspec.yml + +------------------------------------------------------------------- +Tue Sep 3 11:18:33 UTC 2019 - + +- updated to 12.0 + see /usr/share/doc/packages/perl-Unicode-EastAsianWidth/Changes + + [Changes for 12.0 - 2018-11-24] + + * Update to Unicode v12.0.0. + + [Changes for 1.40 - 2018-11-24] + + * Fix installation compatibility with Perl 5.26+. + * Update to Unicode v11.0.0. + +------------------------------------------------------------------- +Fri Oct 17 10:54:15 UTC 2014 - ncutler@suse.com + +- check license (CC0-1.0 should be OK) +- take maintainership + diff --git a/perl-Unicode-EastAsianWidth.spec b/perl-Unicode-EastAsianWidth.spec new file mode 100644 index 0000000..373743d --- /dev/null +++ b/perl-Unicode-EastAsianWidth.spec @@ -0,0 +1,82 @@ +# +# spec file for package perl-Unicode-EastAsianWidth +# +# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/ +# + + +Name: perl-Unicode-EastAsianWidth +Version: 12.0 +Release: 0 +#Upstream: This work is under the *CC0 1.0 Universal* license. or neighboring rights to Unicode-EastAsianWidth. This work is published from Taiwan. the http://creativecommons.org/publicdomain/zero/1.0 manpage +%define cpan_name Unicode-EastAsianWidth +Summary: East Asian Width properties +License: CC0-1.0 +Group: Development/Libraries/Perl +Url: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +%{perl_requires} + +%description +This module provide user-defined Unicode properties that deal with width +status of East Asian characters, as specified in +http://www.unicode.org/unicode/reports/tr11/. + +It exports the following functions to the caller's scope, to be used by +Perl's Unicode matching system: 'InEastAsianFullwidth', +'InEastAsianHalfwidth', 'InEastAsianAmbiguous', 'InEastAsianNarrow' +'InEastAsianWide', 'InEastAsianNeutral'. + +In accord to TR11 cited above, two additional context-sensitive properties +are exported: 'InFullwidth' (union of 'Fullwidth' and 'Wide') and +'InHalfwidth' (union of 'Halfwidth', 'Narrow' and 'Neutral'). + +_Ambiguous_ characters are treated by default as part of 'InHalfwidth', but +you can modify this behaviour by assigning a true value to +'$Unicode::EastAsianWidth::EastAsian' at compile time within a 'BEGIN' +block before loading this module: + + BEGIN { $Unicode::EastAsianWidth::EastAsian = 1; } + use Unicode::EastAsianWidth; + +Setting '$Unicode::EastAsianWidth::EastAsian' at run-time used to work on +Perl versions between 5.8 and 5.14 due to an implementation detail, but it +will no longer work on Perl 5.16 and later versions, and hence is not +recommended. + +%prep +%setup -q -n %{cpan_name}-%{version} + +%build +PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README README.mkdn + +%changelog