forked from pool/perl-Error
Accepting request 53912 from devel:languages:perl
Accepted submit request 53912 from user computersalat OBS-URL: https://build.opensuse.org/request/show/53912 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Error?expand=0&rev=9
This commit is contained in:
@@ -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
|
Wed Jan 13 16:38:05 CET 2010 - anicka@suse.cz
|
||||||
|
|
||||||
|
@@ -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.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@@ -17,57 +17,67 @@
|
|||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
|
%bcond_with pod
|
||||||
|
|
||||||
Name: perl-Error
|
Name: perl-Error
|
||||||
Summary: Object oriented style error/exception handling
|
%define cpan_name Error
|
||||||
|
Summary: Error/exception handling in an OO-ish way
|
||||||
Version: 0.17016
|
Version: 0.17016
|
||||||
Release: 1
|
Release: 1
|
||||||
Requires: perl = %{perl_version}
|
License: GPL+ or Artistic
|
||||||
BuildRequires: perl-Test-Pod-Coverage
|
|
||||||
AutoReqProv: on
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
License: Artistic
|
Url: http://search.cpan.org/dist/Error/
|
||||||
Url: http://www.cpan.org/modules/by-module/Error/
|
#Source: http://www.cpan.org/authors/id/S/SH/SHLOMIF/Error-0.17016.tar.gz
|
||||||
Source: Error-%{version}.tar.bz2
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
%description
|
||||||
This package two interfaces. Firstly Error provides a procedural
|
The 'Error' package provides two interfaces. Firstly 'Error' provides a
|
||||||
interface to exception handling. Secondly Error is a base class for
|
procedural interface to exception handling. Secondly 'Error' is a base
|
||||||
errors/exceptions that can either be thrown (for subsequent catch) or
|
class for errors/exceptions that can either be thrown, for subsequent
|
||||||
simply be recorded.
|
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:
|
Authors:
|
||||||
--------
|
--------
|
||||||
Graham Barr <gbarr@pobox.com>
|
Graham Barr <gbarr@pobox.com>
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Error-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
%{__perl} Build.PL installdirs=vendor
|
||||||
make %{?_smp_mflags}
|
./Build build flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
||||||
%perl_process_packlist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files -f %{name}.files
|
||||||
%defattr(-, root, root)
|
%defattr(-,root,root,-)
|
||||||
%doc ChangeLog examples MANIFEST README
|
%doc ChangeLog examples README
|
||||||
%{_mandir}/man?/*
|
|
||||||
%{perl_vendorlib}/Error.pm
|
|
||||||
%dir %{perl_vendorlib}/Error
|
|
||||||
%{perl_vendorlib}/Error/Simple.pm
|
|
||||||
%{perl_vendorarch}/auto/Error
|
|
||||||
/var/adm/perl-modules/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user