From f980c24bf505bf3a40ce524c9053079f900d60eefbf1224bebd257b205238066 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Sat, 17 Sep 2016 20:25:06 +0000 Subject: [PATCH 1/3] Accepting request 425953 from devel:languages:perl:autoupdate automatic update OBS-URL: https://build.opensuse.org/request/show/425953 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Unicode-String?expand=0&rev=21 --- Unicode-String-2.09.tar.gz | 3 -- Unicode-String-2.10.tar.gz | 3 ++ cpanspec.yml | 28 ++++++++++++++++ perl-Unicode-String.changes | 13 ++++++++ perl-Unicode-String.spec | 64 ++++++++++++++++++++----------------- 5 files changed, 78 insertions(+), 33 deletions(-) delete mode 100644 Unicode-String-2.09.tar.gz create mode 100644 Unicode-String-2.10.tar.gz create mode 100644 cpanspec.yml diff --git a/Unicode-String-2.09.tar.gz b/Unicode-String-2.09.tar.gz deleted file mode 100644 index 5a7a260..0000000 --- a/Unicode-String-2.09.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c817bedb954ea2d488bade56059028b99e0198f6826482e2f68fd6d78653faad -size 122705 diff --git a/Unicode-String-2.10.tar.gz b/Unicode-String-2.10.tar.gz new file mode 100644 index 0000000..cb50cd9 --- /dev/null +++ b/Unicode-String-2.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:894a110ece479546af8afec0972eec7320c86c4dea4e6b354dff3c7526ba9b68 +size 121287 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..76ad4a4 --- /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: SUSE-NonFree +#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-String.changes b/perl-Unicode-String.changes index c774e1e..74f260d 100644 --- a/perl-Unicode-String.changes +++ b/perl-Unicode-String.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Sep 9 06:17:46 UTC 2016 - coolo@suse.com + +- updated to 2.10 + see /usr/share/doc/packages/perl-Unicode-String/Changes + + 2016-09-08 Gisle Aas + + Release 2.10 + + Applied patch from Michael Joyce that is required to make the + test pass for perl-5.24 + ------------------------------------------------------------------- Thu Aug 27 10:42:46 UTC 2015 - hsk@imb-jena.de diff --git a/perl-Unicode-String.spec b/perl-Unicode-String.spec index 02d0f8f..7fa30ee 100644 --- a/perl-Unicode-String.spec +++ b/perl-Unicode-String.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Unicode-String # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,52 +17,56 @@ Name: perl-Unicode-String -Version: 2.09 +Version: 2.10 Release: 0 -Summary: String of Unicode characters (UCS2/UTF16) -License: Artistic-1.0 +%define cpan_name Unicode-String +Summary: String of Unicode characters (UTF-16BE) +License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl -Url: http://cpan.org/modules/by-module/Unicode/ -Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Unicode-String-%version.tar.gz -Patch0: perl522.patch +Url: http://search.cpan.org/dist/Unicode-String/ +Source0: http://www.cpan.org/authors/id/G/GA/GAAS/GAAS/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros +%{perl_requires} %description -A Unicode::String object represents a sequence of Unicode characters. -The Unicode Standard is a fixed-width, uniform encoding scheme for -written characters and text. This encoding treats alphabetic -characters, ideographic characters, and symbols identically, which -means that they can be used in any mixture and with equal facility. -Unicode is modeled on the ASCII character set, but uses a 16-bit -encoding to support full multilingual text. +A 'Unicode::String' object represents a sequence of Unicode characters. +Methods are provided to convert between various external formats +(encodings) and 'Unicode::String' objects, and methods are provided for +common string manipulations. +The functions utf32be(), utf32le(), utf16be(), utf16le(), utf8(), utf7(), +latin1(), uhex(), uchr() can be imported from the 'Unicode::String' module +and will work as constructors initializing strings of the corresponding +encoding. +The 'Unicode::String' objects overload various operators, which means that +they in most cases can be treated like plain strings. -Authors: --------- - Gisle Aas +Internally a 'Unicode::String' object is represented by a string of 2 byte +numbers in network byte order (big-endian). This representation is not +visible by the API provided, but it might be useful to know in order to +predict the efficiency of the provided methods. %prep -%setup -n Unicode-String-%{version} -%patch0 -p2 +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make %{?_smp_mflags} -make test +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%files -%defattr(-,root,root) -%doc README Changes -%doc %{_mandir}/man?/* -%{perl_vendorarch}/Unicode -%{perl_vendorarch}/auto/Unicode +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README %changelog From 665447eb4a4d9aabff4ca97a6c6bab07a4b166d2f43e62a8c197e1630c67b2b5 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Sat, 17 Sep 2016 20:26:37 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Unicode-String?expand=0&rev=22 --- perl-Unicode-String.changes | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/perl-Unicode-String.changes b/perl-Unicode-String.changes index 74f260d..f175935 100644 --- a/perl-Unicode-String.changes +++ b/perl-Unicode-String.changes @@ -2,14 +2,8 @@ Fri Sep 9 06:17:46 UTC 2016 - coolo@suse.com - updated to 2.10 - see /usr/share/doc/packages/perl-Unicode-String/Changes - - 2016-09-08 Gisle Aas - - Release 2.10 - - Applied patch from Michael Joyce that is required to make the - test pass for perl-5.24 + * Applied patch from Michael Joyce that is required to make the + test pass for perl-5.24 (perl522.patch) ------------------------------------------------------------------- Thu Aug 27 10:42:46 UTC 2015 - hsk@imb-jena.de From efc5f737212791f292dff65fcf62aaa31e39b0298ff14acaef0e8f3c4e8db98a Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Sat, 17 Sep 2016 20:26:45 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Unicode-String?expand=0&rev=23 --- perl522.patch | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 perl522.patch diff --git a/perl522.patch b/perl522.patch deleted file mode 100644 index 3b8d490..0000000 --- a/perl522.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/Unicode-String-2.09/lib/Unicode/CharName.pm 2005-10-25 20:11:00.000000000 +0200 -+++ b/Unicode-String-2.09/lib/Unicode/CharName.pm 2015-08-27 12:33:13.761929481 +0200 -@@ -77,7 +77,7 @@ - return join("", "HANGUL SYLLABLE ", @s) - } - } -- _init_names() unless defined %NAMES; -+ _init_names() unless %NAMES; - $NAMES{sprintf("%04X",$code)} - } -