From eb9b356d09669ae8d59fd4ceac4a93dd9a18a1d5 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: May 21 2013 11:43:32 +0000 Subject: import perl-YAML-Syck-1.27-1.el7.src.rpm --- diff --git a/.perl-YAML-Syck.metadata b/.perl-YAML-Syck.metadata new file mode 100644 index 0000000..2498517 --- /dev/null +++ b/.perl-YAML-Syck.metadata @@ -0,0 +1 @@ +466ee625bb329836729aac417aead9fa5f7ac5c5 SOURCES/YAML-Syck-1.27.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-Recognize-all-wide-unicode-characters.patch b/SOURCES/0001-Recognize-all-wide-unicode-characters.patch new file mode 100644 index 0000000..702a8fa --- /dev/null +++ b/SOURCES/0001-Recognize-all-wide-unicode-characters.patch @@ -0,0 +1,94 @@ +From f646fa6ce15984b4a7d3c7b633be4129ad00c407 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Fri, 8 Mar 2013 13:00:52 +0100 +Subject: [PATCH] Recognize all wide unicode characters + +Type cast explicitly to (signed char) because sizof(char) can differ +from sizof(int). Also do not quote bytes above 0x7F because we assume +UTF-8 encoding. + +This should be fixed properly by UTF-8 to Unicode decoding but we +need to recognize which encoding is in use before. How? +--- + emitter.c | 22 +++++++++++----------- + syck.h | 2 +- + 2 files changed, 12 insertions(+), 12 deletions(-) + +diff --git a/emitter.c b/emitter.c +index 48141b3..1d1a609 100644 +--- a/emitter.c ++++ b/emitter.c +@@ -16,9 +16,9 @@ + + #define DEFAULT_ANCHOR_FORMAT "id%03d" + +-const char hex_table[] = ++const unsigned char hex_table[] = + "0123456789ABCDEF"; +-static char b64_table[] = ++static unsigned char b64_table[] = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + + /* +@@ -598,12 +598,12 @@ syck_scan_scalar( int req_width, char *cursor, long len ) + /* scan string */ + for ( i = 0; i < len; i++ ) { + +- if ( ! ( (unsigned)cursor[i] == 0x9 || +- (unsigned)cursor[i] == 0xA || +- (unsigned)cursor[i] == 0xD || +- ( (unsigned)cursor[i] >= 0x20 && (unsigned)cursor[i] <= 0x7E ) || +- (unsigned)cursor[i] == 0x85 || +- (unsigned)cursor[i] >= 0xa0 ) ++ if ( ! ( (unsigned char)cursor[i] == 0x9 || ++ (unsigned char)cursor[i] == 0xA || ++ (unsigned char)cursor[i] == 0xD || ++ ( (unsigned char)cursor[i] >= 0x20 && ++ (unsigned char)cursor[i] <= 0x7E ) || ++ (unsigned char)cursor[i] >= 0x80 ) + ) { + flags |= SCAN_NONPRINT; + } +@@ -812,7 +812,7 @@ void syck_emit_scalar( SyckEmitter *e, char *tag, enum scalar_style force_style, + } + + void +-syck_emitter_escape( SyckEmitter *e, char *src, long len ) ++syck_emitter_escape( SyckEmitter *e, unsigned char *src, long len ) + { + int i; + for( i = 0; i < len; i++ ) +@@ -927,7 +927,7 @@ void syck_emit_2quoted_1( SyckEmitter *e, int width, char *str, long len ) + break; + + default: +- syck_emitter_escape( e, mark, 1 ); ++ syck_emitter_escape( e, (unsigned char *)mark, 1 ); + break; + } + mark++; +@@ -990,7 +990,7 @@ void syck_emit_2quoted( SyckEmitter *e, int width, char *str, long len ) + break; + + default: +- syck_emitter_escape( e, mark, 1 ); ++ syck_emitter_escape( e, (unsigned char*)mark, 1 ); + break; + } + mark++; +diff --git a/syck.h b/syck.h +index 2886561..f5118cd 100644 +--- a/syck.h ++++ b/syck.h +@@ -411,7 +411,7 @@ void syck_emitter_handler( SyckEmitter *, SyckEmitterHandler ); + void syck_free_emitter( SyckEmitter * ); + void syck_emitter_clear( SyckEmitter * ); + void syck_emitter_write( SyckEmitter *, const char *, long ); +-void syck_emitter_escape( SyckEmitter *, char *, long ); ++void syck_emitter_escape( SyckEmitter *, unsigned char *, long ); + void syck_emitter_flush( SyckEmitter *, long ); + void syck_emit( SyckEmitter *, st_data_t ); + void syck_emit_scalar( SyckEmitter *, char *, enum scalar_style, int, int, char, char *, long ); +-- +1.8.1.4 + diff --git a/SPECS/perl-YAML-Syck.spec b/SPECS/perl-YAML-Syck.spec new file mode 100644 index 0000000..6e916a9 --- /dev/null +++ b/SPECS/perl-YAML-Syck.spec @@ -0,0 +1,211 @@ +Name: perl-YAML-Syck +Version: 1.27 +Release: 1%{?dist} +Summary: Fast, lightweight YAML loader and dumper +License: BSD and MIT +Group: Development/Libraries +URL: http://search.cpan.org/dist/YAML-Syck/ +Source0: http://www.cpan.org/authors/id/T/TO/TODDR/YAML-Syck-%{version}.tar.gz +Patch0: 0001-Recognize-all-wide-unicode-characters.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +# Keep bundled inc::Module::Install to break cycle +# perl-Module-Install → perl-YAML-Tiny → perl-YAML-Syck +BuildRequires: perl(Cwd) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) +BuildRequires: perl(lib) +BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(XSLoader) +# Tests +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(IO::File) +BuildRequires: perl(Storable) +BuildRequires: perl(Test::More) +BuildRequires: perl(Tie::Hash) +# Optional tests +BuildRequires: perl(Devel::Leak) +BuildRequires: perl(JSON) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(XSLoader) + +%{?perl_default_filter} + +%description +This module provides a Perl interface to the libsyck data serialization +library. It exports the Dump and Load functions for converting Perl data +structures to YAML strings, and the other way around. + +%prep +%setup -q -n YAML-Syck-%{version} +rm -rf inc/parent inc/PerlIO.pm inc/Test + +# Work around test failures on PPC and ARM (#919806, CPAN RT#83825) +%patch0 -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%doc Changes COMPATIBILITY COPYING README +%{perl_vendorarch}/auto/YAML/ +%{perl_vendorarch}/YAML/ +%{perl_vendorarch}/JSON/ +%{_mandir}/man3/JSON::Syck.3pm* +%{_mandir}/man3/YAML::Syck.3pm* + +%changelog +* Tue May 21 2013 Paul Howarth 1.27-1 +- Update to 1.27 + - Fix for hash randomization in yaml-alias.t on perl 5.18.0 (CPAN RT#84882, + CPAN RT#84466) + +* Mon Mar 11 2013 Paul Howarth 1.25-1 +- Update to 1.25 + - Bump version number and release to fix a MANIFEST mistake in 1.24 + +* Sun Mar 10 2013 Paul Howarth 1.24-2 +- Work around test failures on PPC and ARM (#919806, CPAN RT#83825) + +* Thu Mar 7 2013 Paul Howarth 1.24-1 +- Update to 1.24 + - Implement $JSON::Syck::MaxDepth + - Prevent failure when the same object is seen twice during Dump + - Prevent YAML from being influenced by the previous change + - MinGW64 compatibility (CPAN RT#78363) + +* Wed Feb 27 2013 Paul Howarth 1.23-1 +- Update to 1.23 + - Synchronize JSON::Syck with YAML::Syck version number + - Add DumpInto functions (YAML+Syck), which dump into a provided scalar + instead of a newly-allocated one + - Modify DumpFile functions to output directly to the specified + file/filehandle instead of buffering all output in memory + - Avoid modifying numbers into strings when emitting + - Fix error message typo: s/existant/existent/g + - Fix for non-printable character detection + - Quote if non-printable characters are present + - Make sure that LoadBlessed=0 blocks all blessing + - Start listing primary repo as http://github.com/toddr/YAML-Syck + - README refreshed via perldoc -t +- Require perl(XSLoader) at runtime +- Drop %%defattr, redundant since rpm 4.4 +- Don't need to remove empty directories from the buildroot +- Don't use macros for commands +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Make %%files list more explicit + +* Thu Feb 14 2013 Fedora Release Engineering - 1.20-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 1.20-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Jun 20 2012 Petr Pisar - 1.20-2 +- Perl 5.16 rebuild + +* Wed Jun 20 2012 Petr Pisar - 1.20-1 +- 1.20 bump + +* Sat Jun 16 2012 Petr Pisar - 1.17-5 +- Perl 5.16 rebuild +- Specify all dependencies + +* Fri Jan 13 2012 Fedora Release Engineering - 1.17-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Jul 20 2011 Iain Arnell - 1.17 -3 +- Perl mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 1.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 07 2010 Steven Pritchard 1.17-1 +- Update to 1.17. +- Update Source0 URL. +- BR JSON (for tests). + +* Fri May 07 2010 Marcela Maslanova - 1.07-4 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal - 1.07-3 +- rebuild against perl 5.10.1 + +* Tue Oct 6 2009 Marcela Mašláňová - 1.07-2 +- fix license + +* Sun Sep 27 2009 Chris Weyl 1.07-1 +- auto-update to 1.07 (by cpan-spec-update 0.01) + +* Sun Jul 26 2009 Fedora Release Engineering - 1.05-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 1.05-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Jun 09 2008 Steven Pritchard 1.05-1 +- Update to 1.05. + +* Mon Mar 3 2008 Tom "spot" Callaway 1.04-2 +- rebuild for new perl (again) + +* Wed Feb 20 2008 Steven Pritchard 1.04-1 +- Update to 1.04. + +* Tue Feb 19 2008 Fedora Release Engineering - 1.01-3 +- Autorebuild for GCC 4.3 + +* Fri Feb 8 2008 Tom "spot" Callaway 1.01-2 +- rebuild for new perl + +* Mon Jan 28 2008 Steven Pritchard 1.01-1 +- Update to 1.01. + +* Tue Oct 16 2007 Steven Pritchard 0.98-1 +- Update to 0.98. + +* Tue Sep 18 2007 Steven Pritchard 0.97-1 +- Update to 0.97. + +* Sun Aug 12 2007 Steven Pritchard 0.96-1 +- Update to 0.96. + +* Fri Aug 03 2007 Steven Pritchard 0.95-1 +- Update to 0.95. + +* Fri Jul 13 2007 Steven Pritchard 0.94-1 +- Update to 0.94. + +* Wed Jun 27 2007 Steven Pritchard 0.91-1 +- Update to 0.91. + +* Sat May 19 2007 Steven Pritchard 0.85-1 +- Update to 0.85. + +* Fri May 04 2007 Chris Weyl 0.82-3 +- add perl split BR's + +* Fri May 04 2007 Chris Weyl 0.82-2 +- bump + +* Thu Feb 01 2007 Steven Pritchard 0.82-1 +- Specfile autogenerated by cpanspec 1.69.1. +- Remove explicit build dependency on perl. +- Include JSON module. +- BR Devel::Leak (for tests).