diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9b1aee --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Unicode-String-2.09.tar.gz diff --git a/.perl-Unicode-String.metadata b/.perl-Unicode-String.metadata new file mode 100644 index 0000000..d03877b --- /dev/null +++ b/.perl-Unicode-String.metadata @@ -0,0 +1 @@ +7cc47c5a1c5e38f23886bbc613b27a4a4a3d5459 SOURCES/Unicode-String-2.09.tar.gz diff --git a/SOURCES/perl-Unicode-String-2.09-undefined.patch b/SOURCES/perl-Unicode-String-2.09-undefined.patch new file mode 100644 index 0000000..184b447 --- /dev/null +++ b/SOURCES/perl-Unicode-String-2.09-undefined.patch @@ -0,0 +1,12 @@ +diff -ru libunicode-string-perl-2.09.pristine/lib/Unicode/CharName.pm libunicode-string-perl-2.09/lib/Unicode/CharName.pm +--- libunicode-string-perl-2.09.pristine/lib/Unicode/CharName.pm 2005-10-25 19:11:00.000000000 +0100 ++++ libunicode-string-perl-2.09/lib/Unicode/CharName.pm 2012-01-24 12:56:59.730653088 +0000 +@@ -77,7 +77,7 @@ + return join("", "HANGUL SYLLABLE ", @s) + } + } +- _init_names() unless defined %NAMES; ++ _init_names() unless %NAMES; + $NAMES{sprintf("%04X",$code)} + } + diff --git a/SOURCES/perl-Unicode-String-2.09-utf8doc.patch b/SOURCES/perl-Unicode-String-2.09-utf8doc.patch new file mode 100644 index 0000000..10a2ebc --- /dev/null +++ b/SOURCES/perl-Unicode-String-2.09-utf8doc.patch @@ -0,0 +1,112 @@ +--- Unicode-String-2.09/README 2005-10-25 13:56:28.000000000 +0100 ++++ Unicode-String-2.09/README.utf8 2010-02-18 09:11:45.235669975 +0000 +@@ -18,8 +18,8 @@ + o Depreciation because of perl's own utf8 support. + + o Composition/decomposition support: +- $u->decomp; # will decomposite as much as possible: "�" --> "a�" +- $u->comp; # will composite as much as possible: "a�" --> "�" ++ $u->decomp; # will decomposite as much as possible: "å" --> "a°" ++ $u->comp; # will composite as much as possible: "a°" --> "å" + + Need separate routines or a special argument to distinguish + between compatibility decomposition and canonical decomposition. +@@ -64,7 +64,7 @@ + print $u->latin1; + print $u->hex; + +- print latin1("na�ve\n")->utf8; ++ print utf8("naïve\n")->latin1; + + use Unicode::CharName qw(uname); + print uname(ord('$')), "\n"; +@@ -73,7 +73,7 @@ + + COPYRIGHT + +- � 1997-2000,2005 Gisle Aas. All rights reserved. ++ © 1997-2000,2005 Gisle Aas. All rights reserved. + + This library is free software; you can redistribute it and/or modify + it under the same terms as Perl itself. +--- Unicode-String-2.09/String.pm 2005-10-26 09:13:10.000000000 +0100 ++++ Unicode-String-2.09/String.pm.utf8 2010-02-18 09:11:45.234427359 +0000 +@@ -597,7 +597,7 @@ + current value is returned. + + To illustrate the encodings we show how the 2 character sample string +-of "�m" (micro meter) is encoded for each one. ++of "µm" (micro meter) is encoded for each one. + + =over 4 + +@@ -606,7 +606,7 @@ + =item $us->utf32be( $newval ) + + The string passed should be in the UTF-32 encoding with bytes in big +-endian order. The sample "�m" is "\0\0\0\xB5\0\0\0m" in this encoding. ++endian order. The sample "µm" is "\0\0\0\xB5\0\0\0m" in this encoding. + + Alternative names for this method are utf32() and ucs4(). + +@@ -615,14 +615,14 @@ + =item $us->utf32le( $newval ) + + The string passed should be in the UTF-32 encoding with bytes in little +-endian order. The sample "�m" is is "\xB5\0\0\0m\0\0\0" in this encoding. ++endian order. The sample "µm" is is "\xB5\0\0\0m\0\0\0" in this encoding. + + =item $us->utf16be + + =item $us->utf16be( $newval ) + + The string passed should be in the UTF-16 encoding with bytes in big +-endian order. The sample "�m" is "\0\xB5\0m" in this encoding. ++endian order. The sample "µm" is "\0\xB5\0m" in this encoding. + + Alternative names for this method are utf16() and ucs2(). + +@@ -635,7 +635,7 @@ + =item $us->utf16le( $newval ) + + The string passed should be in the UTF-16 encoding with bytes in +-little endian order. The sample "�m" is is "\xB5\0m\0" in this ++little endian order. The sample "µm" is is "\xB5\0m\0" in this + encoding. This is the encoding used by the Microsoft Windows API. + + If the string passed to utf16le() starts with the Unicode byte order +@@ -646,14 +646,14 @@ + + =item $us->utf8( $newval ) + +-The string passed should be in the UTF-8 encoding. The sample "�m" is ++The string passed should be in the UTF-8 encoding. The sample "µm" is + "\xC2\xB5m" in this encoding. + + =item $us->utf7 + + =item $us->utf7( $newval ) + +-The string passed should be in the UTF-7 encoding. The sample "�m" is ++The string passed should be in the UTF-7 encoding. The sample "µm" is + "+ALU-m" in this encoding. + + +@@ -673,7 +673,7 @@ + + =item $us->latin1( $newval ) + +-The string passed should be in the ISO-8859-1 encoding. The sample "�m" is ++The string passed should be in the ISO-8859-1 encoding. The sample "µm" is + "\xB5m" in this encoding. + + Characters outside the "\x00" .. "\xFF" range are simply removed from +@@ -688,7 +688,7 @@ + The string passed should be plain ASCII where each Unicode character + is represented by the "U+XXXX" string and separated by a single space + character. The "U+" prefix is optional when setting the value. The +-sample "�m" is "U+00b5 U+006d" in this encoding. ++sample "µm" is "U+00b5 U+006d" in this encoding. + + =back + diff --git a/SPECS/perl-Unicode-String.spec b/SPECS/perl-Unicode-String.spec new file mode 100644 index 0000000..054051e --- /dev/null +++ b/SPECS/perl-Unicode-String.spec @@ -0,0 +1,181 @@ +Name: perl-Unicode-String +Version: 2.09 +Release: 29%{?dist} + +Summary: Perl modules to handle various Unicode issues + +Group: Development/Libraries +# in CharName.pm is mentioned use of Unicode table, but fonts are not used +# so here can't be UCD license +# in String.xs is mentioned "same terms as Perl itself" which is this +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Unicode-String/ +Source0: http://www.cpan.org/authors/id/G/GA/GAAS/Unicode-String-2.09.tar.gz +Patch0: perl-Unicode-String-2.09-utf8doc.patch +Patch1: perl-Unicode-String-2.09-undefined.patch + +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(MIME::Base64) +BuildRequires: perl(Test) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# not detected by auto provide scripts: +Requires: perl(MIME::Base64) + +%{?perl_default_filter} + +%description +%{summary}. + + +%prep +%setup -q -n Unicode-String-%{version} + +# Recode documentation as UTF-8 +# Can't just use iconv because README includes an example of +# character code conversion that would be wrong if simply recoded +%patch0 -p1 + +# Suppress warnings in newer versions of Perl +# Patch is upstreamed as RT #74354 +%patch1 -p1 + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" + + +%install +make install \ + DESTDIR=$RPM_BUILD_ROOT \ + INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} +find $RPM_BUILD_ROOT -type f \( -name perllocal.pod -o -name .packlist \ + -o \( -name '*.bs' -empty \) \) -exec rm -f {} ';' +find $RPM_BUILD_ROOT -depth -type d -empty -exec rmdir {} ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%files +%doc Changes README +%{perl_vendorarch}/auto/Unicode +%{perl_vendorarch}/Unicode +%{_mandir}/man3/*.3* + + +%changelog +* Fri Jan 24 2014 Daniel Mach - 2.09-29 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 2.09-28 +- Mass rebuild 2013-12-27 + +* Tue Oct 30 2012 Jitka Plesnikova - 2.09-27 +- Specify all dependencies + +* Fri Jul 20 2012 Fedora Release Engineering - 2.09-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jun 28 2012 Petr Pisar - 2.09-25 +- Perl 5.16 rebuild + +* Sun Jun 24 2012 Emmanuel Seyman - 2.09-24 +- Really add the patch + +* Sun Jun 24 2012 Emmanuel Seyman - 2.09-23 +- Add patch to suppress warnings (#834867) +- Clean up spec file + +* Mon Jun 11 2012 Petr Pisar - 2.09-22 +- Perl 5.16 rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 2.09-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Jul 24 2011 Iain Arnell 2.09-20 +- use perl_default_filter + +* Fri Jun 17 2011 Marcela Mašláňová - 2.09-19 +- Perl mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 2.09-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Dec 23 2010 Marcela Maslanova - 2.09-17 +- 661697 rebuild for fixing problems with vendorach/lib + +* Fri Jul 23 2010 Marcela Maslanova - 2.09-16 +- apply ppisar hints from 558743 + +* Fri May 07 2010 Marcela Maslanova - 2.09-15 +- Mass rebuild with perl-5.12.0 + +* Thu Feb 18 2010 Paul Howarth - 2.09-14 +- carefully convert documentation to UTF-8 encoding +- add :MODULE_COMPAT_* dependency + +* Wed Feb 17 2010 Marcela Mašláňová - 2.09-13 +- fix license + +* Tue Jan 26 2010 Stepan Kasal - 2.09-12 +- better buildroot +- no need to define perl_vendorarch + +* Sun Jul 26 2009 Fedora Release Engineering - 2.09-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 2.09-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Jun 05 2008 Aurelien Bompard 2.09-9 +- fix build + +* Wed Feb 27 2008 Tom "spot" Callaway - 2.09-8 +- Rebuild for perl 5.10 (again) + +* Mon Feb 18 2008 Fedora Release Engineering - 2.09-7 +- Autorebuild for GCC 4.3 + +* Mon Jan 28 2008 Tom "spot" Callaway 2.09-6 +- rebuild for new perl + +* Thu Sep 27 2007 Aurelien Bompard 2.09-5 +- fix license tag again (thanks Tom) + +* Sun Aug 26 2007 Aurelien Bompard 2.09-4 +- fix license tag (like perl itself) + +* Mon Aug 13 2007 Aurelien Bompard 2.09-3 +- BR: perl-devel + +* Wed Aug 30 2006 Aurelien Bompard 2.09-2 +- rebuild + +* Tue Feb 21 2006 Aurelien Bompard 2.09-1 +- version 2.09 + +* Tue Feb 21 2006 Aurelien Bompard 2.07-6 +- rebuild for FC5 + +* Fri Apr 7 2005 Michael Schwendt +- rebuilt + +* Mon Feb 2 2004 Ville Skyttä - 0:2.07-0.fdr.4 +- Reduce directory ownership bloat. + +* Sat Oct 11 2003 Ville Skyttä - 0:2.07-0.fdr.3 +- Install into vendor dirs. +- Spec cleanup. + +* Mon Jul 7 2003 Ville Skyttä - 0:2.07-0.fdr.2 +- Regenerate %%install section with cpanflute2. + +* Wed May 7 2003 Ville Skyttä - 0:2.07-0.fdr.1 +- Update to 2.07 and to current Fedora guidelines. + +* Sun Mar 2 2003 Ville Skyttä - 2.06-1.fedora.1 +- First Fedora release.