Hello community,

here is the log from the commit of package perl-Parse-CPAN-Packages for 
openSUSE:Factory
checked in at Wed Apr 6 11:35:22 CEST 2011.



--------
--- perl-Parse-CPAN-Packages/perl-Parse-CPAN-Packages.changes   2010-12-01 
12:48:01.000000000 +0100
+++ 
/mounts/work_src_done/STABLE/perl-Parse-CPAN-Packages/perl-Parse-CPAN-Packages.changes
      2011-04-01 11:36:09.000000000 +0200
@@ -1,0 +2,10 @@
+Fri Apr  1 08:46:22 UTC 2011 - [email protected]
+
+- update to 2.33
+  - updated documentation
+    - explanation on how to use local cpan cache 
+    - spelling and package name fixes
+  - improved memory use a bit by eleminating temp variable
+  - better windows compatibility
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  Parse-CPAN-Packages-2.31.tar.gz

New:
----
  Parse-CPAN-Packages-2.33.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Parse-CPAN-Packages.spec ++++++
--- /var/tmp/diff_new_pack.hBppar/_old  2011-04-06 11:34:39.000000000 +0200
+++ /var/tmp/diff_new_pack.hBppar/_new  2011-04-06 11:34:39.000000000 +0200
@@ -15,39 +15,29 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
-%bcond_with pod
 
 Name:           perl-Parse-CPAN-Packages
+Version:        2.33
+Release:        1
+License:        GPL+ or Artistic
 %define cpan_name Parse-CPAN-Packages
 Summary:        Parse 02packages.details.txt.gz
-Version:        2.31
-Release:        7
-License:        GPL+ or Artistic
-Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Parse-CPAN-Packages/
-Source:         
http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/Parse-CPAN-Packages-2.31.tar.gz
+Group:          Development/Libraries/Perl
+#Source:         
http://www.cpan.org/authors/id/M/MI/MITHALDU/Parse-CPAN-Packages-%{version}.tar.gz
+Source:         %{cpan_name}-%{version}.tar.gz
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%{perl_requires}
 BuildRequires:  perl
 BuildRequires:  perl-macros
-%if %{with pod}
-BuildRequires:  perl(Test::Pod) >= 1.14
-BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
-%endif
-BuildRequires:  perl(Test::More)
-#
-BuildRequires:  perl(Compress::Zlib)
 BuildRequires:  perl(CPAN::DistnameInfo)
 BuildRequires:  perl(Moose)
 BuildRequires:  perl(version)
-#
-Requires:       perl(Compress::Zlib)
 Requires:       perl(CPAN::DistnameInfo)
 Requires:       perl(Moose)
 Requires:       perl(version)
+%{perl_requires}
 
 %description
 The Comprehensive Perl Archive Network (CPAN) is a very useful collection
@@ -56,9 +46,8 @@
 file contains lots of useful information and this module provides a simple
 interface to the data contained within.
 
-Authors:
---------
-    Leon Brocard <[email protected]>
+In a future release the Parse::CPAN::Packages::Package manpage and the
+Parse::CPAN::Packages::Distribution manpage might have more information.
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
@@ -72,18 +61,14 @@
 
 %install
 %perl_make_install
-# do not perl_process_packlist (noarch)
-# remove .packlist file
-%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
-# remove perllocal.pod file
-%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
+%perl_process_packlist
 %perl_gen_filelist
 
 %clean
-%{__rm} -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
+%defattr(644,root,root,755)
 %doc CHANGES README
 
 %changelog

++++++ Parse-CPAN-Packages-2.31.tar.gz -> Parse-CPAN-Packages-2.33.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-CPAN-Packages-2.31/CHANGES 
new/Parse-CPAN-Packages-2.33/CHANGES
--- old/Parse-CPAN-Packages-2.31/CHANGES        2009-04-23 12:56:03.000000000 
+0200
+++ new/Parse-CPAN-Packages-2.33/CHANGES        2010-12-27 10:49:32.000000000 
+0100
@@ -1,5 +1,14 @@
 CHANGES file for Parse::CPAN::Packages
 
+2.33 Sun Dec 27 10:42:59 GMT+2 2010
+  - updated documentation
+    - explanation on how to use local cpan cache ( thanks to Slaven Rezić 
<[email protected]> )
+    - spelling and package name fixes ( Phillip Moore 
<[email protected]> )
+  - improved memory use a bit by eleminating temp variable ( thanks to Chris 
'BinGOs' Williams <[email protected]> )
+
+2.32 Sun Dec 26 14:02:59 GMT+2 2010
+  - better windows compatibility ( thanks to Vincent Pit <[email protected]> )
+
 2.31 Thu Apr 23 11:55:59 BST 2009
   - use BUILDARGS and BUILD instead of having our own constructor
 
@@ -16,7 +25,7 @@
     (patch by Mark Fowler)
 
 2.28 Tue Aug 12 08:02:22 BST 2008
-  - stop version.pm warnings 
+  - stop version.pm warnings
 
 2.27 Sun Dec  2 14:50:14 GMT 2007
   - fix typo in _ensure_latest_distribution (patch by Kenichi Ishigaki)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-CPAN-Packages-2.31/META.yml 
new/Parse-CPAN-Packages-2.33/META.yml
--- old/Parse-CPAN-Packages-2.31/META.yml       2009-04-23 12:56:29.000000000 
+0200
+++ new/Parse-CPAN-Packages-2.33/META.yml       2010-12-27 10:51:28.000000000 
+0100
@@ -1,18 +1,26 @@
 --- #YAML:1.0
-name:                Parse-CPAN-Packages
-version:             2.31
-abstract:            Parse 02packages.details.txt.gz
-license:             perl
-author:              
+name:               Parse-CPAN-Packages
+version:            2.33
+abstract:           Parse 02packages.details.txt.gz
+author:
     - Leon Brocard <[email protected]>
-generated_by:        ExtUtils::MakeMaker version 6.44
-distribution_type:   module
-requires:     
-    Compress::Zlib:                0
-    CPAN::DistnameInfo:            0
-    Moose:                         0
-    Test::More:                    0
-    version:                       0
+license:            perl
+distribution_type:  module
+configure_requires:
+    ExtUtils::MakeMaker:  0
+build_requires:
+    ExtUtils::MakeMaker:  0
+requires:
+    Compress::Zlib:      0
+    CPAN::DistnameInfo:  0
+    Moose:               0
+    Test::More:          0
+    version:             0
+no_index:
+    directory:
+        - t
+        - inc
+generated_by:       ExtUtils::MakeMaker version 6.55_02
 meta-spec:
-    url:     http://module-build.sourceforge.net/META-spec-v1.3.html
-    version: 1.3
+    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
+    version:  1.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-CPAN-Packages-2.31/lib/Parse/CPAN/Packages.pm 
new/Parse-CPAN-Packages-2.33/lib/Parse/CPAN/Packages.pm
--- old/Parse-CPAN-Packages-2.31/lib/Parse/CPAN/Packages.pm     2009-04-23 
12:56:07.000000000 +0200
+++ new/Parse-CPAN-Packages-2.33/lib/Parse/CPAN/Packages.pm     2010-12-27 
10:50:41.000000000 +0100
@@ -5,7 +5,7 @@
 use Parse::CPAN::Packages::Distribution;
 use Parse::CPAN::Packages::Package;
 use version;
-our $VERSION = '2.31';
+our $VERSION = '2.33';
 
 has 'filename'    => ( is => 'rw', isa => 'Str' );
 has 'details'     => ( is => 'rw', isa => 'HashRef', default => sub { {} } );
@@ -39,6 +39,7 @@
         return $filename;
     } elsif ( $filename =~ /\.gz/ ) {
         open( IN, $filename ) || die "Failed to read $filename: $!";
+               binmode *IN;
         my $data = join '', <IN>;
         close(IN);
         return Compress::Zlib::memGunzip($data);
@@ -46,8 +47,10 @@
         return Compress::Zlib::memGunzip($filename);
     } else {
         open( IN, $filename ) || die "Failed to read $filename: $!";
-        return join '', <IN>;
+        binmode *IN;
+        my $data = join '', <IN>;
         close(IN);
+               return $data;
     }
 }
 
@@ -61,10 +64,9 @@
 
 sub parse {
     my ( $self, $filename ) = @_;
-    my $details = $self->_slurp_details($filename);
 
     # read the preamble
-    my @details = split "\n", $details;
+    my @details = split "\n", $self->_slurp_details($filename);
     while (@details) {
         local $_ = shift @details;
         last if /^\s*$/;
@@ -309,12 +311,21 @@
    my $data = get("http://www.cpan.org/modules/02packages.details.txt.gz";);
    my $p = Parse::CPAN::Packages->new($data);
 
+If you have a configured L<CPAN>, then there's usually already a
+cached file available:
+
+   use CPAN;
+   $CPAN::Be_Silent = 1;
+   CPAN::HandleConfig->load;
+   my $file = $CPAN::Config->{keep_source_where} . 
"/modules/02packages.details.txt.gz";
+   my $p = Parse::CPAN::Packages->new($file);
+
 =item package($packagename)
 
 Returns a C<Parse::CPAN::Packages::Package> that represents the
 named package.
 
-  my $p = Parse::CPAN::Distribution->new($gzfilename);
+  my $p = Parse::CPAN::Packages->new($gzfilename);
   my $package = $p->package("Acme::Colour");
 
 =item packages()
@@ -324,20 +335,20 @@
 
 =item package_count()
 
-Returns the numebr of packages stored.
+Returns the number of packages stored.
 
 =item distribution($filename)
 
-Returns a B<Parse::CPAN::Distribution> that represents the
-filename passed:
+Returns a B<Parse::CPAN::Packages::Distribution> object that
+represents the filename passed:
 
-  my $p = Parse::CPAN::Distribution->new($gzfilename);
+  my $p = Parse::CPAN::Packages->new($gzfilename);
   my $dist = $p->distribution('L/LB/LBROCARD/Acme-Colour-1.00.tar.gz');
 
 =item distributions()
 
-Returns a list of B<Parse::CPAN::Distribution> objects representing
-all the known distributions.
+Returns a list of B<Parse::CPAN::Packages::Distribution> objects
+representing all the known distributions.
 
 =item distribution_count()
 
@@ -345,18 +356,19 @@
 
 =item latest_distribution($distname)
 
-Returns the C<Parse::CPAN::Distribution> that represents the latest
-distribution for the named disribution passed, that is to say it
-returns the distribution that has the highest version number (as
-determined by version.pm or number comparison if that fails):
+Returns the C<Parse::CPAN::Packages::Distribution> object that
+represents the latest distribution for the named disribution passed,
+that is to say it returns the distribution that has the highest
+version number (as determined by version.pm or number comparison if
+that fails):
 
-  my $p = Parse::CPAN::Distribution->new($gzfilename);
+  my $p = Parse::CPAN::Packages->new($gzfilename);
   my $dist = $p->distribution('Acme-Color');
 
 =item latest_distrbutions()
 
-Returns a list of B<Parse::CPAN::Distribution> objects representing
-all the latest distributions.
+Returns a list of B<Parse::CPAN::Packages::Distribution> objects
+representing all the latest distributions.
 
 =item latest_distribution_count()
 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to