commit cpanspec for openSUSE:Factory
Hello community,
here is the log from the commit of package cpanspec for openSUSE:Factory
checked in at Thu Nov 18 17:43:08 CET 2010.
--------
New Changes file:
--- /dev/null 2010-07-09 01:59:37.000000000 +0200
+++ cpanspec/cpanspec.changes 2010-11-18 11:27:29.000000000 +0100
@@ -0,0 +1,87 @@
+-------------------------------------------------------------------
+Thu Nov 18 10:26:58 UTC 2010 - chris@computersalat.de
+
+- removed suse-version patch
+
+-------------------------------------------------------------------
+Thu Nov 11 23:33:51 UTC 2010 - chris@computersalat.de
+
+- added doc-ignore patch
+
+-------------------------------------------------------------------
+Thu Oct 21 20:23:56 UTC 2010 - chris@computersalat.de
+
+- stick on version 1.78
+ o removed .02suse from version (Summary is telling the whole truth)
+ o disabled suse-version patch
+
+-------------------------------------------------------------------
+Thu Aug 26 18:11:43 UTC 2010 - jw@novell.com
+
+- bumped version number to 1.78.2suse
+ Second patch release, specific to SUSE.
+ Not sure if this still works for fedora.
+
+- recognize .bz2 files too.
+ And made tar, ZIP, gz, bz2 suffix case insensitive.
+
+- call 'osc vc' with specfile basename, to avoid errors
+ when current dir has two.
+
+-------------------------------------------------------------------
+Mon Aug 9 08:24:37 UTC 2010 - chris@computersalat.de
+
+- reworked patch
+ o added parallel build for Build.PL build flags=...
+
+-------------------------------------------------------------------
+Thu Jul 15 08:48:14 UTC 2010 - chris@computersalat.de
+
+- fix noarch stuff
+
+-------------------------------------------------------------------
+Tue Jul 13 11:55:20 UTC 2010 - chris@computersalat.de
+
+- added cpan_name
+- fixed Module::Build if usebuildpl
+
+-------------------------------------------------------------------
+Thu Jun 3 20:34:08 UTC 2010 - chris@computersalat.de
+
+- reworked patch
+ o if usebuildpl > BuildReq perl(Module::Build)
+- fix Url
+
+-------------------------------------------------------------------
+Sun Apr 4 15:27:30 UTC 2010 - chris@computersalat.de
+
+- reworked patch
+ o if we "Require perl = perl_version" then
+ we should have "BuildRequires perl" every time, cause changing
+ perl version will then initiate a rebuild
+
+-------------------------------------------------------------------
+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
doc-ignore.patch
osc-vc-spec.patch
suffix-match.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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: 2
%define tar_version 1.78
Summary: Generate a SUSE spec file for a CPAN module
License: GPL+ or Artistic
Group: Development/Languages/Perl
Url: http://sourceforge.net/projects/cpanspec/
Source0: http://www.cpan.org/modules/by-module/cpanspec/cpanspec-%{tar_version}.tar.gz
Patch0: cpanspec-suse.patch
Patch2: suffix-match.patch
Patch3: osc-vc-spec.patch
Patch4: doc-ignore.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 SUSE spec file to build a rpm from a CPAN-style Perl
module distribution.
%prep
%setup -q -n cpanspec-%{tar_version}
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -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 ++++++
---
cpanspec | 151 +++++++++++++++++++++++++++++++++++----------------------------
1 file changed, 84 insertions(+), 67 deletions(-)
Index: cpanspec-1.78/cpanspec
===================================================================
--- cpanspec-1.78.orig/cpanspec
+++ cpanspec-1.78/cpanspec
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl
#
# cpanspec - Generate a spec file for a CPAN module
#
@@ -554,13 +554,6 @@ my $prefix=$noprefix ? "" : "perl-";
$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 @@ for my $file (@args) {
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,36 +940,64 @@ for my $file (@args) {
}
print $spec <
participants (1)
-
root@hilbert.suse.de