r18953 - in /branches/upstream/libcompress-raw-zlib-perl/current: Changes META.yml README Zlib.xs lib/Compress/Raw/Zlib.pm pod/FAQ.pod t/000prereq.t t/compress/CompTestUtils.pm
roberto at users.alioth.debian.org
roberto at users.alioth.debian.org
Mon Apr 21 12:46:11 UTC 2008
Author: roberto
Date: Mon Apr 21 12:46:10 2008
New Revision: 18953
URL: http://svn.debian.org/wsvn/?sc=1&rev=18953
Log:
[svn-upgrade] Integrating new upstream version, libcompress-raw-zlib-perl (2.009)
Modified:
branches/upstream/libcompress-raw-zlib-perl/current/Changes
branches/upstream/libcompress-raw-zlib-perl/current/META.yml
branches/upstream/libcompress-raw-zlib-perl/current/README
branches/upstream/libcompress-raw-zlib-perl/current/Zlib.xs
branches/upstream/libcompress-raw-zlib-perl/current/lib/Compress/Raw/Zlib.pm
branches/upstream/libcompress-raw-zlib-perl/current/pod/FAQ.pod
branches/upstream/libcompress-raw-zlib-perl/current/t/000prereq.t
branches/upstream/libcompress-raw-zlib-perl/current/t/compress/CompTestUtils.pm
Modified: branches/upstream/libcompress-raw-zlib-perl/current/Changes
URL: http://svn.debian.org/wsvn/branches/upstream/libcompress-raw-zlib-perl/current/Changes?rev=18953&op=diff
==============================================================================
--- branches/upstream/libcompress-raw-zlib-perl/current/Changes (original)
+++ branches/upstream/libcompress-raw-zlib-perl/current/Changes Mon Apr 21 12:46:10 2008
@@ -1,5 +1,9 @@
CHANGES
-------
+
+ 2.009 20 April 2008
+
+ * No Changes
2.008 2 November 2007
Modified: branches/upstream/libcompress-raw-zlib-perl/current/META.yml
URL: http://svn.debian.org/wsvn/branches/upstream/libcompress-raw-zlib-perl/current/META.yml?rev=18953&op=diff
==============================================================================
--- branches/upstream/libcompress-raw-zlib-perl/current/META.yml (original)
+++ branches/upstream/libcompress-raw-zlib-perl/current/META.yml Mon Apr 21 12:46:10 2008
@@ -1,13 +1,13 @@
--- #YAML:1.0
name: Compress-Raw-Zlib
-version: 2.008
+version: 2.009
abstract: Low-Level Interface to zlib compression library
license: perl
-generated_by: ExtUtils::MakeMaker version 6.36
+author:
+ - Paul Marquess <pmqs at cpan.org>
+generated_by: ExtUtils::MakeMaker version 6.44
distribution_type: module
requires:
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
-author:
- - Paul Marquess <pmqs at cpan.org>
+ url: http://module-build.sourceforge.net/META-spec-v1.3.html
+ version: 1.3
Modified: branches/upstream/libcompress-raw-zlib-perl/current/README
URL: http://svn.debian.org/wsvn/branches/upstream/libcompress-raw-zlib-perl/current/README?rev=18953&op=diff
==============================================================================
--- branches/upstream/libcompress-raw-zlib-perl/current/README (original)
+++ branches/upstream/libcompress-raw-zlib-perl/current/README Mon Apr 21 12:46:10 2008
@@ -1,15 +1,13 @@
Compress-Raw-Zlib
- Version 2.008
-
- 2nd November 2007
-
-
- Copyright (c) 2005-2007 Paul Marquess. All rights reserved.
+ Version 2.009
+
+ 20th April 2008
+
+ Copyright (c) 2005-2008 Paul Marquess. All rights reserved.
This program is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.
-
The directory zlib-src contains a subset of the
source files copied directly from zlib version 1.2.3.
@@ -18,17 +16,10 @@
Full source for the zlib library is available at
http://www.zlib.org
-
-
DESCRIPTION
-----------
-
This module provides a Perl interface to the zlib compression library.
-
-
-
-
PREREQUISITES
-------------
@@ -36,12 +27,9 @@
Before you can build Compress-Raw-Zlib you need to have the following
installed on your system:
-
* A C compiler
* Perl 5.004 or better.
-
-
By default, Compress-Raw-Zlib will build its own private copy of the
zlib library. If you want to use a different version of
@@ -49,8 +37,6 @@
"Controlling the version of zlib used by Compress-Raw-Zlib"
later in this document.
-
-
BUILDING THE MODULE
-------------------
@@ -61,17 +47,12 @@
make
make test
-
-
INSTALLATION
------------
To install Compress-Raw-Zlib, run the command below:
make install
-
-
-
Controlling the version of zlib used by Compress-Raw-Zlib
----------------------------------------------------------
@@ -92,7 +73,6 @@
Note that if you intend to use either Option 2 or 3, you need to have
zlib version 1.0.5 or better.
-
The contents of the file config.in are used to control which of the
three options is actually used. This file is read during the
@@ -100,8 +80,6 @@
step of the build, so remember to make any required changes to config.in
before building this module.
-
-
Option 1
--------
@@ -169,10 +147,9 @@
------------------------
Every gzip stream stores a byte in its header to identify the Operating
-System that was used to create the gzip stream. When you build
-Compress-Raw-Zlib it will attempt to determine the value that is correct for
-your Operating System. This will then be used by IO::Gzip as the default
-value for the OS byte in all gzip headers it creates.
+System that was used to create the gzip stream. When you build Compress-Raw-Zlib it will attempt to determine the value that is correct for
+your Operating System. This will then be used by IO::Compress::Gzip as the
+default value for the OS byte in all gzip headers it creates.
The variable GZIP_OS_CODE in the config.in file controls the setting of
this value when building Compress-Raw-Zlib. If GZIP_OS_CODE is set to
@@ -197,16 +174,8 @@
detected is incorrect, please take a few moments to contact the author of
this module.
-
-
TROUBLESHOOTING
---------------
-
-
-
-
-
-
Solaris build fails with "language optional software package not installed"
---------------------------------------------------------------------------
@@ -245,9 +214,6 @@
If that doesn't work for you, it's time to make changes to the Makefile
by hand. Good luck!
-
-
-
Solaris build fails with "gcc: unrecognized option `-KPIC'"
-----------------------------------------------------------
@@ -284,10 +250,6 @@
I've had a report that when building Compress-Raw-Zlib under HP-UX that it
is necessary to have first built the zlib library with the -fpic
option.
-
-
-
-
Linux Notes
-----------
@@ -307,9 +269,6 @@
for zlib. Check for an RPM that start with "zlib-devel" in your Linux
distribution.
-
-
-
Win32 Notes
-----------
@@ -320,12 +279,8 @@
C:\> ppm verify -upgrade Compress-Zlib
-
If you are not running Activestate Perl and you don't have access
to a C compiler, you will not be able to build and install this module.
-
-
-
Win32 & Cygwin Notes
--------------------
@@ -337,7 +292,6 @@
The workaround is to install Compress-Raw-Zlib manually using the
instructions given at the start of this file.
-
FEEDBACK
--------
@@ -372,8 +326,7 @@
If you haven't installed Compress-Raw-Zlib then search Compress::Raw::Zlib.pm
for a line like this:
- $VERSION = "2.008" ;
-
+ $VERSION = "2.009" ;
c. The version of zlib you have used.
If you have successfully installed Compress-Raw-Zlib, this one-liner
@@ -381,9 +334,7 @@
perl -MCompress::Raw::Zlib -e "print q[zlib ver ]. Compress::Raw::Zlib::ZLIB_VERSION.qq[\n]"
-
If not, look at the beginning of the file zlib.h.
-
2. If you are having problems building Compress-Raw-Zlib, send me a
complete log of what happened. Start by unpacking the Compress-Raw-Zlib
@@ -394,5 +345,4 @@
make
make test TEST_VERBOSE=1
-
Paul Marquess <pmqs at cpan.org>
Modified: branches/upstream/libcompress-raw-zlib-perl/current/Zlib.xs
URL: http://svn.debian.org/wsvn/branches/upstream/libcompress-raw-zlib-perl/current/Zlib.xs?rev=18953&op=diff
==============================================================================
--- branches/upstream/libcompress-raw-zlib-perl/current/Zlib.xs (original)
+++ branches/upstream/libcompress-raw-zlib-perl/current/Zlib.xs Mon Apr 21 12:46:10 2008
@@ -228,7 +228,8 @@
#define adlerInitial adler32(0L, Z_NULL, 0)
#define crcInitial crc32(0L, Z_NULL, 0)
-static const char * const my_z_errmsg[] = {
+//static const char * const my_z_errmsg[] = {
+static const char my_z_errmsg[][32] = {
"need dictionary", /* Z_NEED_DICT 2 */
"stream end", /* Z_STREAM_END 1 */
"", /* Z_OK 0 */
@@ -510,7 +511,7 @@
static SV*
#ifdef CAN_PROTOTYPE
-deRef(SV * sv, char * string)
+deRef(SV * sv, const char * string)
#else
deRef(sv, string)
SV * sv ;
@@ -542,7 +543,7 @@
static SV*
#ifdef CAN_PROTOTYPE
-deRef_l(SV * sv, char * string)
+deRef_l(SV * sv, const char * string)
#else
deRef_l(sv, string)
SV * sv ;
Modified: branches/upstream/libcompress-raw-zlib-perl/current/lib/Compress/Raw/Zlib.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libcompress-raw-zlib-perl/current/lib/Compress/Raw/Zlib.pm?rev=18953&op=diff
==============================================================================
--- branches/upstream/libcompress-raw-zlib-perl/current/lib/Compress/Raw/Zlib.pm (original)
+++ branches/upstream/libcompress-raw-zlib-perl/current/lib/Compress/Raw/Zlib.pm Mon Apr 21 12:46:10 2008
@@ -13,7 +13,7 @@
use bytes ;
our ($VERSION, $XS_VERSION, @ISA, @EXPORT, $AUTOLOAD);
-$VERSION = '2.008';
+$VERSION = '2.009';
$XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
@@ -568,15 +568,12 @@
compression library (see L</AUTHOR> for details about where to get
I<zlib>).
-
-
=head1 Compress::Raw::Zlib::Deflate
This section defines an interface that allows in-memory compression using
the I<deflate> interface provided by zlib.
Here is a definition of the interface available:
-
=head2 B<($d, $status) = new Compress::Raw::Zlib::Deflate( [OPT] ) >
@@ -678,14 +675,12 @@
This option defaults to false.
-
=item B<-ADLER32>
If set to true, an adler32 checksum of the uncompressed data will be
calculated. Use the C<$d-E<gt>adler32> method to retrieve this value.
This option defaults to false.
-
=back
@@ -695,7 +690,6 @@
my $d = new Compress::Raw::Zlib::Deflate ( -Bufsize => 300,
-Level => Z_BEST_SPEED ) ;
-
=head2 B<$status = $d-E<gt>deflate($input, $output)>
@@ -751,7 +745,6 @@
The list of the valid options is shown below. Options not specified
will remain unchanged.
-
=over 5
=item B<-Level>
@@ -772,7 +765,6 @@
reallocated to increase the size, it will grow in increments of
C<Bufsize>.
-
=back
=head2 B<$status = $d-E<gt>deflateTune($good_length, $max_lazy, $nice_length, $max_chain)>
@@ -815,7 +807,6 @@
Returns the deflation strategy currently used. Valid values are
C<Z_DEFAULT_STRATEGY>, C<Z_FILTERED> and C<Z_HUFFMAN_ONLY>.
-
=head2 B<$d-E<gt>get_Level()>
Returns the compression level being used.
@@ -825,7 +816,6 @@
Returns the buffer size used to carry out the compression.
=head2 Example
-
Here is a trivial example of using C<deflate>. It simply reads standard
input, deflates it and writes it to standard output.
@@ -865,7 +855,6 @@
Here is a definition of the interface:
-
=head2 B< ($i, $status) = new Compress::Raw::Zlib::Inflate( [OPT] ) >
Initialises an inflation object.
@@ -927,7 +916,6 @@
output buffer by the C<$i-E<gt>inflate> method.
This option defaults to false.
-
=item B<-CRC32>
@@ -1048,7 +1036,6 @@
data streams. They must have been added explicitly when the data stream
was created by calling C<Compress::Deflate::flush> with C<Z_FULL_FLUSH>.
-
=head2 B<$i-E<gt>dict_adler()>
Returns the adler32 value for the dictionary.
@@ -1143,12 +1130,10 @@
http://www.cpan.org/modules/by-module/Archive/Archive-Zip-*.tar.gz
-
=head1 CONSTANTS
All the I<zlib> constants are automatically imported when you make use
of I<Compress::Raw::Zlib>.
-
=head1 SEE ALSO
@@ -1159,7 +1144,6 @@
L<File::GlobMapper|File::GlobMapper>, L<Archive::Zip|Archive::Zip>,
L<Archive::Tar|Archive::Tar>,
L<IO::Zlib|IO::Zlib>
-
For RFC 1950, 1951 and 1952 see
F<http://www.faqs.org/rfcs/rfc1950.html>,
@@ -1174,25 +1158,18 @@
The primary site for gzip is F<http://www.gzip.org>.
-
-
-
=head1 AUTHOR
This module was written by Paul Marquess, F<pmqs at cpan.org>.
-
-
=head1 MODIFICATION HISTORY
See the Changes file.
=head1 COPYRIGHT AND LICENSE
-Copyright (c) 2005-2007 Paul Marquess. All rights reserved.
+Copyright (c) 2005-2008 Paul Marquess. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
-
-
Modified: branches/upstream/libcompress-raw-zlib-perl/current/pod/FAQ.pod
URL: http://svn.debian.org/wsvn/branches/upstream/libcompress-raw-zlib-perl/current/pod/FAQ.pod?rev=18953&op=diff
==============================================================================
--- branches/upstream/libcompress-raw-zlib-perl/current/pod/FAQ.pod (original)
+++ branches/upstream/libcompress-raw-zlib-perl/current/pod/FAQ.pod Mon Apr 21 12:46:10 2008
@@ -7,14 +7,9 @@
Common questions answered.
-
-
-
=head2 Compatibility with Unix compress/uncompress.
-
This module is not compatible with Unix C<compress>.
-
If you have the C<uncompress> program available, you can use this to read
compressed files
@@ -42,13 +37,11 @@
=head2 Accessing .tar.Z files
-
See previous FAQ item.
If the C<Archive::Tar> module is installed and either the C<uncompress> or
C<gunzip> programs are available, you can use one of these workarounds to
read C<.tar.Z> files.
-
Firstly with C<uncompress>
@@ -84,38 +77,20 @@
$tar->write($fh);
$fh->close ;
-
=head2 Accessing Zip Files
-
This module does not support reading/writing zip files.
-Limited support for reading/writing zip files is included with the
+Support for reading/writing zip files is included with the
C<IO::Compress::Zip> and C<IO::Uncompress::Unzip> modules.
-
-A full interface for manipulating zip files is available with the
-C<Archive::Zip> module. You can find it on CPAN at
+The primary focus of the C<IO::Compress::Zip> and C<IO::Uncompress::Unzip>
+modules is to provide an C<IO::File> compatible streaming read/write
+interface to zip files/buffers. They are not fully flegged archivers. If
+you are looking for an archiver check out the C<Archive::Zip> module. You
+can find it on CPAN at
http://www.cpan.org/modules/by-module/Archive/Archive-Zip-*.tar.gz
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
=head2 Zlib Library Version Support
@@ -138,13 +113,7 @@
option with C<IO::Compress::Gzip>, C<IO::Compress::Deflate> and
C<IO::Compress::RawDeflate>.
-
-
=back
-
-
-
-
=head1 SEE ALSO
@@ -156,15 +125,9 @@
L<Archive::Tar|Archive::Tar>,
L<IO::Zlib|IO::Zlib>
-
-
-
-
=head1 AUTHOR
This module was written by Paul Marquess, F<pmqs at cpan.org>.
-
-
=head1 MODIFICATION HISTORY
@@ -172,7 +135,7 @@
=head1 COPYRIGHT AND LICENSE
-Copyright (c) 2005-2007 Paul Marquess. All rights reserved.
+Copyright (c) 2005-2008 Paul Marquess. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
Modified: branches/upstream/libcompress-raw-zlib-perl/current/t/000prereq.t
URL: http://svn.debian.org/wsvn/branches/upstream/libcompress-raw-zlib-perl/current/t/000prereq.t?rev=18953&op=diff
==============================================================================
--- branches/upstream/libcompress-raw-zlib-perl/current/t/000prereq.t (original)
+++ branches/upstream/libcompress-raw-zlib-perl/current/t/000prereq.t Mon Apr 21 12:46:10 2008
@@ -19,7 +19,7 @@
if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
- my $VERSION = '2.008';
+ my $VERSION = '2.009';
my @NAMES = qw(
);
Modified: branches/upstream/libcompress-raw-zlib-perl/current/t/compress/CompTestUtils.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libcompress-raw-zlib-perl/current/t/compress/CompTestUtils.pm?rev=18953&op=diff
==============================================================================
--- branches/upstream/libcompress-raw-zlib-perl/current/t/compress/CompTestUtils.pm (original)
+++ branches/upstream/libcompress-raw-zlib-perl/current/t/compress/CompTestUtils.pm Mon Apr 21 12:46:10 2008
@@ -201,6 +201,14 @@
{
my ($filename, $uue) = @_ ;
return readFile($filename) eq unpack("u", $uue) ;
+}
+
+sub isRawFormat
+{
+ my $class = shift;
+ my %raw = map { $_ => 1 } qw( RawDeflate );
+
+ return defined $raw{$class};
}
sub uncompressBuffer
@@ -222,6 +230,8 @@
'IO::Compress::Lzop::lzop' => 'IO::Uncompress::UnLzop',
'IO::Compress::Lzf' => 'IO::Uncompress::UnLzf' ,
'IO::Compress::Lzf::lzf' => 'IO::Uncompress::UnLzf',
+ 'IO::Compress::PPMd' => 'IO::Uncompress::UnPPMd' ,
+ 'IO::Compress::PPMd::ppmd' => 'IO::Uncompress::UnPPMd',
'IO::Compress::DummyComp' => 'IO::Uncompress::DummyUncomp',
'IO::Compress::DummyComp::dummycomp' => 'IO::Uncompress::DummyUncomp',
);
@@ -265,6 +275,10 @@
'IO::Compress::Lzf::lzf' => \$IO::Compress::Lzf::LzfError,
'IO::Uncompress::UnLzf' => \$IO::Uncompress::UnLzf::UnLzfError,
'IO::Uncompress::UnLzf::unlzf' => \$IO::Uncompress::UnLzf::UnLzfError,
+ 'IO::Compress::PPMd' => \$IO::Compress::PPMd::PPMdError,
+ 'IO::Compress::PPMd::ppmd' => \$IO::Compress::PPMd::PPMdError,
+ 'IO::Uncompress::UnPPMd' => \$IO::Uncompress::UnPPMd::UnPPMdError,
+ 'IO::Uncompress::UnPPMd::unppmd' => \$IO::Uncompress::UnPPMd::UnPPMdError,
'IO::Compress::DummyComp' => \$IO::Compress::DummyComp::DummyCompError,
'IO::Compress::DummyComp::dummycomp'=> \$IO::Compress::DummyComp::DummyCompError,
@@ -293,6 +307,8 @@
'IO::Uncompress::UnLzop' => 'IO::Uncompress::UnLzop::unlzop',
'IO::Compress::Lzf' => 'IO::Compress::Lzf::lzf',
'IO::Uncompress::UnLzf' => 'IO::Uncompress::UnLzf::unlzf',
+ 'IO::Compress::PPMd' => 'IO::Compress::PPMd::ppmd',
+ 'IO::Uncompress::UnPPMd' => 'IO::Uncompress::UnPPMd::unppmd',
'IO::Compress::DummyComp' => 'IO::Compress::DummyComp::dummyuncomp',
'IO::Uncompress::DummyUncomp' => 'IO::Uncompress::DummyUncomp::dummyuncomp',
);
@@ -319,6 +335,8 @@
'IO::Compress::Lzop' => 'IO::Uncompress::UnLzop',
'IO::Compress::Lzf::lzf' => 'IO::Uncompress::UnLzf::unlzf',
'IO::Compress::Lzf' => 'IO::Uncompress::UnLzf',
+ 'IO::Compress::PPMd::ppmd' => 'IO::Uncompress::UnPPMd::unppmd',
+ 'IO::Compress::PPMd' => 'IO::Uncompress::UnPPMd',
'IO::Compress::DummyComp::dummycomp' => 'IO::Uncompress::DummyUncomp::dummyuncomp',
'IO::Compress::DummyComp' => 'IO::Uncompress::DummyUncomp',
);
@@ -372,6 +390,8 @@
'IO::Uncompress::UnLzop::unlzop' => 'IO::Compress::Lzop',
'IO::Uncompress::UnLzp' => 'IO::Compress::Lzf',
'IO::Uncompress::UnLzf::unlzf' => 'IO::Compress::Lzf',
+ 'IO::Uncompress::UnPPMd' => 'IO::Compress::PPMd',
+ 'IO::Uncompress::UnPPMd::unppmd' => 'IO::Compress::PPMd',
'IO::Uncompress::AnyInflate' => 'IO::Compress::Gzip',
'IO::Uncompress::AnyInflate::anyinflate' => 'IO::Compress::Gzip',
'IO::Uncompress::AnyUncompress' => 'IO::Compress::Gzip',
More information about the Pkg-perl-cvs-commits
mailing list