From f64427eae227056ec145207cd86b044fd51c3618f3bb1558b891717d4c7718b4 Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Wed, 24 Aug 2011 20:00:56 +0000 Subject: [PATCH] fix build for CentOS OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Business-ISBN?expand=0&rev=17 --- perl-Business-ISBN.changes | 10 ++++++++++ perl-Business-ISBN.spec | 19 ++++++------------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/perl-Business-ISBN.changes b/perl-Business-ISBN.changes index d653a61..3c2e493 100644 --- a/perl-Business-ISBN.changes +++ b/perl-Business-ISBN.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Aug 24 19:59:29 UTC 2011 - chris@computersalat.de + +- fix build for CentOS + * Unknown tag: Recommends: +- cleanup spec + * header + * remove Author from desc + * macros + ------------------------------------------------------------------- Wed Dec 1 13:30:49 UTC 2010 - coolo@novell.com diff --git a/perl-Business-ISBN.spec b/perl-Business-ISBN.spec index 07ca056..6f86da8 100644 --- a/perl-Business-ISBN.spec +++ b/perl-Business-ISBN.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-Business-ISBN (Version 2.05) +# spec file for package perl-Business-ISBN # -# 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,7 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild %bcond_with pod %bcond_with opt @@ -24,7 +23,7 @@ Name: perl-Business-ISBN %define cpan_name Business-ISBN Summary: Work with International Standard Book Numbers Version: 2.05 -Release: 9 +Release: 10 License: GPL+ or Artistic Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Business-ISBN/ @@ -48,17 +47,15 @@ BuildRequires: perl(Test::More) ## but not used #BuildRequires: perl(URI) Requires: perl(Business::ISBN::Data) >= 20081208 +%if 0%{?suse_version} > 1010 Recommends: perl(GD::Barcode::EAN13) Recommends: perl(LWP::Simple) +%endif %description This modules handles International Standard Book Numbers, including ISBN-10 and ISBN-13. -Authors: --------- - Brian d Foy - %prep %setup -q -n %{cpan_name}-%{version} @@ -71,11 +68,7 @@ Authors: %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