SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Archive-Zip-SimpleZip rpm build for : openSUSE Tumbleweed. For other distributions click perl-Archive-Zip-SimpleZip.

Name : perl-Archive-Zip-SimpleZip
Version : 1.000 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 1.18 Date : 2024-08-05 19:53:17
Group : Unspecified Source RPM : perl-Archive-Zip-SimpleZip-1.000-1.18.src.rpm
Size : 0.12 MB
Packager : (none)
Summary : Read and Write Zip Archives
Description :
Archive::Zip::SimpleZip is a module that allows the creation of Zip
archives. For reading Zip archives, there is a companion module, called
Archive::Zip::SimpleUnzip, that can read Zip archives.

The module allows Zip archives to be written to a named file, a filehandle
or stored in-memory.

There are a small number methods available in Archive::Zip::SimpleZip, and
quite a few options, but for the most part all you need to know is how to
create a Zip archive and how to add a file to it.

Below is an example of how this module is used to add the two files
\"file1.txt\" and \"file2.txt\" to the zip file called \"my1.zip\".

use Archive::Zip::SimpleZip qw($SimpleZipError) ;

my $z = new Archive::Zip::SimpleZip \"my1.zip\"
or die \"Cannot create zip file: $SimpleZipError\
\" ;

$z->add(\"/some/file1.txt\");
$z->add(\"/some/file2.txt\");

$z->close();

The data written to a zip archive doesn\'t need to come from the filesystem.
You can also write string data directly to the zip archive using the
\'addString\' method, like this

use Archive::Zip::SimpleZip qw($SimpleZipError) ;

my $z = new Archive::Zip::SimpleZip \"my2.zip\"
or die \"Cannot create zip file: $SimpleZipError\
\" ;

$z->addString($myData, Name => \"file2.txt\");

$z->close();

Alternatively you can use the \'openMember\' option to get a filehandle that
allows you to write directly to the zip archive member using standard Perl
file output functions, like \'print\'.

use Archive::Zip::SimpleZip qw($SimpleZipError) ;

my $z = new Archive::Zip::SimpleZip \"my3.zip\"
or die \"Cannot create zip file: $SimpleZipError\
\" ;

my $fh = $z->openMember(Name => \"file3.txt\");

$fh->print(\"some data\");


print $fh \"more data\" ;

$fh->close() ;


$z->close();

You can also \"drop\" a filehandle into a zip archive.

use Archive::Zip::SimpleZip qw($SimpleZipError) ;

my $z = new Archive::Zip::SimpleZip \"my4.zip\"
or die \"Cannot create zip file: $SimpleZipError\
\" ;

my $fh = $z->addFileHandle(FH, Name => \"file3.txt\");

$z->close();

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Archive-Zip-SimpleZip-1.000-1.18.noarch.rpm
     

Provides :
perl(Archive::Zip::SimpleUnzip)
perl(Archive::Zip::SimpleUnzip::Handle)
perl(Archive::Zip::SimpleUnzip::Member)
perl(Archive::Zip::SimpleZip)
perl(Archive::Zip::SimpleZip::Handle)
perl(Archive::Zip::StreamedUnzip)
perl(Archive::Zip::StreamedUnzip::Handle)
perl(Archive::Zip::StreamedUnzip::Member)
perl-Archive-Zip-SimpleZip

Requires :
perl(:MODULE_COMPAT_5.40.0)
perl(IO::Compress::Base) >= 2.201
perl(IO::Compress::Bzip2) >= 2.201
perl(IO::Compress::RawDeflate) >= 2.201
perl(IO::Compress::Zip) >= 2.201
perl(IO::Uncompress::Base) >= 2.201
perl(IO::Uncompress::RawInflate) >= 2.201
perl(IO::Uncompress::Unzip) >= 2.201
perl(Perl::OSType)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/Archive
/usr/lib/perl5/vendor_perl/5.40.0/Archive/Zip
/usr/lib/perl5/vendor_perl/5.40.0/Archive/Zip/SimpleUnzip.pm
/usr/lib/perl5/vendor_perl/5.40.0/Archive/Zip/SimpleZip.pm
/usr/lib/perl5/vendor_perl/5.40.0/Archive/Zip/StreamedUnzip.pm
/usr/share/doc/packages/perl-Archive-Zip-SimpleZip
/usr/share/doc/packages/perl-Archive-Zip-SimpleZip/Changes
/usr/share/doc/packages/perl-Archive-Zip-SimpleZip/README
/usr/share/man/man3/Archive::Zip::SimpleUnzip.3pm.gz
/usr/share/man/man3/Archive::Zip::SimpleZip.3pm.gz
/usr/share/man/man3/Archive::Zip::StreamedUnzip.3pm.gz

 
ICM