Hello community, here is the log from the commit of package perl-CPAN-DistnameInfo for openSUSE:Factory checked in at Wed Mar 16 10:48:00 CET 2011.
-------- --- perl-CPAN-DistnameInfo/perl-CPAN-DistnameInfo.changes 2010-11-30 20:24:48.000000000 +0100 +++ /mounts/work_src_done/STABLE/perl-CPAN-DistnameInfo/perl-CPAN-DistnameInfo.changes 2011-03-15 09:45:09.000000000 +0100 @@ -1,0 +2,8 @@ +Tue Mar 15 08:44:20 UTC 2011 - co...@novell.com + +- update to 0.12: + * Grok dist names ending with something numeric + containing underscores [Florian Ragwitz] + * Remove potential -withoutworldwriteables suffix [Vincent Pit] + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- CPAN-DistnameInfo-0.10.tar.gz New: ---- CPAN-DistnameInfo-0.12.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-CPAN-DistnameInfo.spec ++++++ --- /var/tmp/diff_new_pack.DaC64L/_old 2011-03-16 10:46:25.000000000 +0100 +++ /var/tmp/diff_new_pack.DaC64L/_new 2011-03-16 10:46:25.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package perl-CPAN-DistnameInfo (Version 0.10) +# spec file for package perl-CPAN-DistnameInfo # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,31 +15,81 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: perl-CPAN-DistnameInfo +Version: 0.12 +Release: 1 +License: GPL+ or Artistic %define cpan_name CPAN-DistnameInfo Summary: Extract distribution name and version from a distribution filename -Version: 0.10 -Release: 2 -License: GPL+ or Artistic -Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/CPAN-DistnameInfo/ -Source: http://www.cpan.org/modules/by-module/CPAN/CPAN-DistnameInfo-%{version}.tar.gz -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} +Group: Development/Libraries/Perl +#Source: http://www.cpan.org/authors/id/G/GB/GBARR/CPAN-DistnameInfo-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.gz BuildRequires: perl BuildRequires: perl-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%{perl_requires} %description -Many online services that are centered around CPAN attempt to -associate multiple uploads by extracting a distribution name from the -filename of the upload. For most distributions this is easy as they -have used ExtUtils::MakeMaker or Module::Build to create the -distribution, which results in a uniform name. But sadly not all -uploads are created in this way. +Many online services that are centered around CPAN attempt to associate +multiple uploads by extracting a distribution name from the filename of the +upload. For most distributions this is easy as they have used +ExtUtils::MakeMaker or Module::Build to create the distribution, which +results in a uniform name. But sadly not all uploads are created in this +way. + +'CPAN::DistnameInfo' uses heuristics that have been learnt by the +http://search.cpan.org/ manpage to extract the distribution name and +version from filenames and also report if the version is to be treated as a +developer release + +The constructor takes a single pathname, returning an object with the +following methods + +* cpanid + + If the path given looked like a CPAN authors directory path, then this + will be the the CPAN id of the author. + +* dist + + The name of the distribution + +* distvname + + The file name with any suffix and leading directory names removed + +* filename + + If the path given looked like a CPAN authors directory path, then this + will be the path to the file relative to the detected CPAN author + directory. Otherwise it is the path that was passed in. + +* maturity + + The maturity of the distribution. This will be either 'released' or + 'developer' + +* extension + + The extension of the distribution, often used to denote the archive type + (e.g. 'tar.gz') + +* pathname + + The pathname that was passed to the constructor when creating the object. + +* properties + + This will return a list of key-value pairs, suitable for assigning to a + hash, for the known properties. + +* version + + The extracted version %prep %setup -q -n %{cpan_name}-%{version} @@ -53,18 +103,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,-) -%doc Changes README SIGNATURE +%defattr(644,root,root,755) +%doc Changes README %changelog ++++++ CPAN-DistnameInfo-0.10.tar.gz -> CPAN-DistnameInfo-0.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-DistnameInfo-0.10/Changes new/CPAN-DistnameInfo-0.12/Changes --- old/CPAN-DistnameInfo-0.10/Changes 2010-03-27 21:05:16.000000000 +0100 +++ new/CPAN-DistnameInfo-0.12/Changes 2011-03-12 00:37:06.000000000 +0100 @@ -1,3 +1,11 @@ +0.12 -- Fri Mar 11 17:36:55 CST 2011 + + * Grok dist names ending with something numeric containing underscores [Florian Ragwitz] + +0.11 -- Tue Dec 14 08:52:15 CST 2010 + + * Remove potential -withoutworldwriteables suffix [Vincent Pit] + 0.10 -- Sat Mar 27 15:04:54 CDT 2010 * Support -TRAIL in distribution version to indicate developer release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-DistnameInfo-0.10/META.yml new/CPAN-DistnameInfo-0.12/META.yml --- old/CPAN-DistnameInfo-0.10/META.yml 2010-03-27 21:07:09.000000000 +0100 +++ new/CPAN-DistnameInfo-0.12/META.yml 2011-03-12 00:38:20.000000000 +0100 @@ -1,6 +1,6 @@ --- #YAML:1.0 name: CPAN-DistnameInfo -version: 0.10 +version: 0.12 abstract: Extract distribution name and version from a distribution filename author: - Graham Barr <gb...@cpan.org> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-DistnameInfo-0.10/SIGNATURE new/CPAN-DistnameInfo-0.12/SIGNATURE --- old/CPAN-DistnameInfo-0.10/SIGNATURE 2010-03-27 21:07:13.000000000 +0100 +++ new/CPAN-DistnameInfo-0.12/SIGNATURE 2011-03-12 00:38:23.000000000 +0100 @@ -1,5 +1,5 @@ This file contains message digests of all files listed in MANIFEST, -signed via the Module::Signature module, version 0.55. +signed via the Module::Signature module, version 0.64. To verify the content in this distribution, first make sure you have Module::Signature installed, then type: @@ -14,18 +14,18 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -SHA1 3c5cd7b6aecbfca27add19bde5e71b53c0687a41 Changes +SHA1 d75638f01f6bfab2fbdfd701842e3bf49be256f4 Changes SHA1 49d042e197b5c18b654acd4bd9c1d22d7014d174 MANIFEST -SHA1 b8e100338e7e6bb1834ac8d49b088ec0657c394d META.yml +SHA1 33e232f9b9f97f8877f5de337c562f2c976c5c30 META.yml SHA1 da8ac89bf8cf1d7b58fdc28503b380d94cebf6a3 Makefile.PL SHA1 75225b292ce4d6d6bb0212fa8f249aaa8ee41ae8 README -SHA1 53baf9e53d4195a53046d16977390e785752d718 lib/CPAN/DistnameInfo.pm -SHA1 ddc339a19d1ded18dc0f6d958904348a8141e2be t/ext.t -SHA1 8d17d389f6a2200376ca8ad2bb23196ac2f7597d t/path.t +SHA1 3a53c8c9043d82cfee930482d05eb18a08af4192 lib/CPAN/DistnameInfo.pm +SHA1 199d53d9e7a540c4702f161d933764dddedbc42c t/ext.t +SHA1 00af0a1012e1af4536120eab70958e51218c3b72 t/path.t -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.10 (Darwin) +Version: GnuPG v1.4.11 (Darwin) -iEYEARECAAYFAkuuZW4ACgkQR0BL4gbYw3SZkQCeIS4RS3kDHQK+T9Gbu+QZrA+U -CmYAniuJS5fCaqW+th+K46j6hqL/9Xpe -=DnWV +iEUEARECAAYFAk16smwACgkQR0BL4gbYw3QoYgCdH1lrCdfLnoF4qqbYEAKoG1v9 +zHQAmJTWKilUZqrWBMeVi165Zzp+rYc= +=krP1 -----END PGP SIGNATURE----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-DistnameInfo-0.10/lib/CPAN/DistnameInfo.pm new/CPAN-DistnameInfo-0.12/lib/CPAN/DistnameInfo.pm --- old/CPAN-DistnameInfo-0.10/lib/CPAN/DistnameInfo.pm 2010-03-27 21:03:34.000000000 +0100 +++ new/CPAN-DistnameInfo-0.12/lib/CPAN/DistnameInfo.pm 2011-03-12 00:36:27.000000000 +0100 @@ -1,7 +1,7 @@ package CPAN::DistnameInfo; -$VERSION = "0.10"; +$VERSION = "0.12"; use strict; sub distname_info { @@ -21,6 +21,9 @@ $dist =~ s/-undef\z//; } + # Remove potential -withoutworldwriteables suffix + $version =~ s/-withoutworldwriteables$//; + if ($version =~ /^(-[Vv].*)-(\d.*)/) { # Catch names like Unicode-Collate-Standard-V3_1_1-0.1 @@ -29,6 +32,14 @@ $version = $2; } + if ($version =~ /(.+_.*)-(\d.*)/) { + # Catch names like Task-Deprecations5_14-1.00.tar.gz where the 5_14 is + # part of the distname. However, names like libao-perl_0.03-1.tar.gz + # should still have 0.03-1 as their version. + $dist .= $1; + $version = $2; + } + # Normalize the Dist.pm-1.23 convention which CGI.pm and # a few others use. $dist =~ s{\.pm$}{}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-DistnameInfo-0.10/t/ext.t new/CPAN-DistnameInfo-0.12/t/ext.t --- old/CPAN-DistnameInfo-0.10/t/ext.t 2009-05-06 16:17:01.000000000 +0200 +++ new/CPAN-DistnameInfo-0.12/t/ext.t 2011-03-12 00:35:03.000000000 +0100 @@ -1,5 +1,5 @@ -use Test::More tests => 559; +use Test::More tests => 560; use Data::Dumper; use CPAN::DistnameInfo; @@ -574,3 +574,4 @@ Net-Vypress-Chat-0.72.1.tar.bz2 Net-Vypress-Chat 0.72.1 Gopher-Server-0.1.1.tar.bz2 Gopher-Server 0.1.1 HTML-Template-Dumper-0.1.tar.bz2 HTML-Template-Dumper 0.1 +Task-Deprecations5_14-1.00.tar.gz Task-Deprecations5_14 1.00 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-DistnameInfo-0.10/t/path.t new/CPAN-DistnameInfo-0.12/t/path.t --- old/CPAN-DistnameInfo-0.10/t/path.t 2010-03-27 21:03:18.000000000 +0100 +++ new/CPAN-DistnameInfo-0.12/t/path.t 2010-12-14 21:37:53.000000000 +0100 @@ -1,5 +1,5 @@ -use Test::More tests => 260; +use Test::More tests => 269; use Data::Dumper; use CPAN::DistnameInfo; @@ -280,3 +280,12 @@ version 2.100860-TRIAL cpanid RJBS extension tar.gz + +CPAN/authors/id/M/MI/MINGYILIU/Bio-ASN1-EntrezGene-1.10-withoutworldwriteables.tar.gz + filename Bio-ASN1-EntrezGene-1.10-withoutworldwriteables.tar.gz + dist Bio-ASN1-EntrezGene + maturity released + distvname Bio-ASN1-EntrezGene-1.10-withoutworldwriteables + version 1.10 + cpanid MINGYILIU + extension tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org