[1083] | 1 | # Based on http://pkgs.fedoraproject.org/cgit/rpms/perl-Error.git/tree/perl-Error.spec?id=7314bd991225612bc2db6cd4770568ea1ff3d283
|
---|
| 2 |
|
---|
| 3 | Name: perl-Error
|
---|
| 4 | Epoch: 1
|
---|
| 5 | Version: 0.17024
|
---|
| 6 | Release: 1%{?dist}
|
---|
| 7 | Summary: Error/exception handling in an OO-ish way
|
---|
| 8 | License: (GPL+ or Artistic) and MIT
|
---|
| 9 | Group: Development/Libraries
|
---|
| 10 | URL: http://search.cpan.org/dist/Error/
|
---|
| 11 | Vendor: bww bitwise works GmbH
|
---|
| 12 | Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/Error-%{version}.tar.gz
|
---|
| 13 |
|
---|
| 14 | BuildArch: noarch
|
---|
| 15 | BuildRequires: perl-generators
|
---|
| 16 | BuildRequires: perl(File::Spec)
|
---|
| 17 | BuildRequires: perl(lib)
|
---|
| 18 | BuildRequires: perl(Module::Build)
|
---|
| 19 | # Run-requires:
|
---|
| 20 | BuildRequires: perl(Carp)
|
---|
| 21 | BuildRequires: perl(Exporter)
|
---|
| 22 | BuildRequires: perl(Scalar::Util)
|
---|
| 23 | BuildRequires: perl(strict)
|
---|
| 24 | BuildRequires: perl(warnings)
|
---|
| 25 | # TODO No Test::Pod on OS/2 yet.
|
---|
| 26 | %if 0
|
---|
| 27 | # Tests:
|
---|
| 28 | BuildRequires: perl(base)
|
---|
| 29 | BuildRequires: perl(Test::More)
|
---|
| 30 | # Optional tests:
|
---|
| 31 | %if !%{defined perl_bootstrap}
|
---|
| 32 | BuildRequires: perl(Test::Pod) >= 1.14
|
---|
| 33 | BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
---|
| 34 | %endif
|
---|
| 35 | %endif
|
---|
| 36 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
| 37 | Requires: perl(Carp)
|
---|
| 38 |
|
---|
| 39 | # Avoid provides/requires from examples
|
---|
| 40 | %global __provides_exclude_from ^%{_docdir}
|
---|
| 41 | %global __requires_exclude_from ^%{_docdir}
|
---|
| 42 |
|
---|
| 43 | %description
|
---|
| 44 | The Error package provides two interfaces. Firstly Error provides a
|
---|
| 45 | procedural interface to exception handling. Secondly Error is a base class
|
---|
| 46 | for errors/exceptions that can either be thrown, for subsequent catch, or
|
---|
| 47 | can simply be recorded.
|
---|
| 48 |
|
---|
| 49 | %prep
|
---|
| 50 | %setup -q -n Error-%{version}
|
---|
| 51 |
|
---|
| 52 | %build
|
---|
| 53 | perl Build.PL --installdirs=vendor
|
---|
| 54 | ./Build
|
---|
| 55 |
|
---|
| 56 | %install
|
---|
| 57 | rm -rf $RPM_BUILD_ROOT
|
---|
| 58 | ./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
|
---|
| 59 | %{_fixperms} $RPM_BUILD_ROOT
|
---|
| 60 |
|
---|
| 61 | %check
|
---|
| 62 | # TODO No Test::Pod on OS/2 yet.
|
---|
| 63 | %if 0
|
---|
| 64 | ./Build test
|
---|
| 65 | %endif
|
---|
| 66 |
|
---|
| 67 | %clean
|
---|
| 68 | rm -rf $RPM_BUILD_ROOT
|
---|
| 69 |
|
---|
| 70 | %files
|
---|
| 71 | %if 0%{?_licensedir:1}
|
---|
| 72 | %license LICENSE
|
---|
| 73 | %else
|
---|
| 74 | %doc LICENSE
|
---|
| 75 | %endif
|
---|
| 76 | # GPL+ or Artistic
|
---|
| 77 | %doc ChangeLog README examples/
|
---|
| 78 | %{perl_vendorlib}/Error.pm
|
---|
| 79 | %{_mandir}/man3/Error.3*
|
---|
| 80 | # MIT
|
---|
| 81 | %{perl_vendorlib}/Error/
|
---|
| 82 | %{_mandir}/man3/Error.Simple.3*
|
---|
| 83 |
|
---|
| 84 | %changelog
|
---|
| 85 | * Thu Apr 6 2017 Dmitriy Kuminov <coding@dmik.org> 1:0.17024-1
|
---|
| 86 | - Initial release.
|
---|