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.0 +0100
+++
/mounts/work_src_done/STABLE/perl-CPAN-DistnameInfo/perl-CPAN-DistnameInfo.changes
2011-03-15 09:45:09.0 +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.0 +0100
+++ /var/tmp/diff_new_pack.DaC64L/_new 2011-03-16 10:46:25.0 +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} -r