diff --git a/perl-Error.changes b/perl-Error.changes index 82afde7..daf3c70 100644 --- a/perl-Error.changes +++ b/perl-Error.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Nov 24 19:16:59 UTC 2010 - chris@computersalat.de + +- recreated by cpanspec 1.78 + o fix deps +- noarch pkg +- added bcond_with pod + ------------------------------------------------------------------- Wed Jan 13 16:38:05 CET 2010 - anicka@suse.cz diff --git a/perl-Error.spec b/perl-Error.spec index 7020243..c853d0c 100644 --- a/perl-Error.spec +++ b/perl-Error.spec @@ -1,5 +1,5 @@ # -# spec file for package perl-Error (Version 0.17016 ) +# spec file for package perl-Error (Version 0.17016) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -17,57 +17,67 @@ # norootforbuild +%bcond_with pod Name: perl-Error -Summary: Object oriented style error/exception handling -Version: 0.17016 +%define cpan_name Error +Summary: Error/exception handling in an OO-ish way +Version: 0.17016 Release: 1 -Requires: perl = %{perl_version} -BuildRequires: perl-Test-Pod-Coverage -AutoReqProv: on +License: GPL+ or Artistic Group: Development/Libraries/Perl -License: Artistic -Url: http://www.cpan.org/modules/by-module/Error/ -Source: Error-%{version}.tar.bz2 +Url: http://search.cpan.org/dist/Error/ +#Source: http://www.cpan.org/authors/id/S/SH/SHLOMIF/Error-0.17016.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl(Module::Build) +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +%if %{with pod} +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +%endif +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(warnings) +Requires: perl = %{perl_version} +Requires: perl(Scalar::Util) +Requires: perl(warnings) %description -This package two interfaces. Firstly Error provides a procedural -interface to exception handling. Secondly Error is a base class for -errors/exceptions that can either be thrown (for subsequent catch) or -simply be recorded. - +The 'Error' package provides two interfaces. Firstly 'Error' provides a +procedural interface to exception handling. Secondly 'Error' is a base +class for errors/exceptions that can either be thrown, for subsequent +catch, or can simply be recorded. +Errors in the class 'Error' should not be thrown directly, but the user +should throw errors from a sub-class of 'Error'. Authors: -------- Graham Barr %prep -%setup -q -n Error-%{version} +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL -make %{?_smp_mflags} +%{__perl} Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} %check -make test +./Build test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor -%perl_process_packlist +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%perl_gen_filelist %clean -[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT +%{__rm} -rf $RPM_BUILD_ROOT -%files -%defattr(-, root, root) -%doc ChangeLog examples MANIFEST README -%{_mandir}/man?/* -%{perl_vendorlib}/Error.pm -%dir %{perl_vendorlib}/Error -%{perl_vendorlib}/Error/Simple.pm -%{perl_vendorarch}/auto/Error -/var/adm/perl-modules/* +%files -f %{name}.files +%defattr(-,root,root,-) +%doc ChangeLog examples README %changelog