Hello community,
here is the log from the commit of package cpanspec for openSUSE:Factory
checked in at Mon Mar 8 18:11:38 CET 2010.
--------
New Changes file:
--- /dev/null 2009-09-30 08:50:26.000000000 +0200
+++ /mounts/work_src_done/STABLE/cpanspec/cpanspec.changes 2010-03-06 00:42:37.000000000 +0100
@@ -0,0 +1,25 @@
+-------------------------------------------------------------------
+Fri Mar 5 23:40:48 UTC 2010 - chris@computersalat.de
+
+- reworked cpanspec-suse patch
+
+-------------------------------------------------------------------
+Wed Feb 10 12:14:34 UTC 2010 - coolo@novell.com
+
+- generate the file list also for Build.PL
+
+-------------------------------------------------------------------
+Wed Feb 10 10:36:36 UTC 2010 - coolo@novell.com
+
+- do not use epoches, suse doesn't use them
+
+-------------------------------------------------------------------
+Tue Feb 9 16:18:35 UTC 2010 - coolo@novell.com
+
+- adapt to suse policies
+
+-------------------------------------------------------------------
+Tue Feb 9 13:39:20 UTC 2010 - coolo@novell.com
+
+- initial package created by cpanspec
+
calling whatdependson for head-i586
New:
----
cpanspec-1.78.tar.gz
cpanspec-suse.patch
cpanspec.changes
cpanspec.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ cpanspec.spec ++++++
#
# spec file for package cpanspec (Version 1.78)
#
# Copyright (c) 2010 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: cpanspec
Version: 1.78
Release: 1
Summary: Generate a spec file for a CPAN module
License: GPL+ or Artistic
Group: Development/Languages/Perl
Url: http://search.cpan.org/dist/cpanspec/
Source0: http://www.cpan.org/modules/by-module/cpanspec/cpanspec-%{version}.tar.gz
Patch0: cpanspec-suse.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(File::Basename)
BuildRequires: perl(FileHandle)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(locale)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Parse::CPAN::Packages)
BuildRequires: perl(POSIX)
BuildRequires: perl(Text::Autoformat)
BuildRequires: perl(YAML)
Requires: perl(Archive::Zip)
Requires: perl(File::Basename)
Requires: perl(FileHandle)
Requires: perl(Getopt::Long)
Recommends: perl(IO::Uncompress::Bunzip2)
Requires: perl(locale)
Requires: perl(LWP::UserAgent)
Requires: perl(Parse::CPAN::Packages)
Requires: perl(POSIX)
Requires: perl(Text::Autoformat)
Requires: perl(YAML)
%description
cpanspec will generate a spec file to build a rpm from a CPAN-style Perl
module distribution.
%prep
%setup -q -n cpanspec-%{version}
%patch0 -p1
%build
%{__perl} Build.PL installdirs=vendor
./Build
%check
./Build test
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Artistic BUGS Changes COPYING TODO
%_bindir/cpanget
%_bindir/cpanspec
%_mandir/man1/cpanspec.1.gz
%changelog
++++++ cpanspec-suse.patch ++++++
diff -ruN cpanspec-1.78-orig/cpanspec cpanspec-1.78/cpanspec
--- cpanspec-1.78-orig/cpanspec 2009-01-16 20:35:55.000000000 +0000
+++ cpanspec-1.78/cpanspec 2010-03-05 23:37:00.285597971 +0000
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl
#
# cpanspec - Generate a spec file for a CPAN module
#
@@ -554,13 +554,6 @@
$packager=$packager || `rpm --eval '\%packager'`;
-chomp $packager;
-
-if (!$packager or $packager eq "\%packager") {
- die "\%packager not defined in ~/.rpmmacros."
- . " Please add or use --packager option.\n";
-}
-
our %corelist;
my $rpm=new FileHandle "rpm -q --provides perl|"
@@ -635,9 +628,9 @@
if ($type eq 'tar') {
my $f=$file;
if ($file=~/\.bz2$/) {
- eval {
- use IO::Uncompress::Bunzip2;
- };
+ #eval {
+ # use IO::Uncompress::Bunzip2;
+ #};
if ($@) {
warn "Failed to load IO::Uncompress::Bunzip2: $@\n";
@@ -947,9 +940,31 @@
}
print $spec <