source: spec/trunk/SPECS/perl-Error.spec@ 1566

Last change on this file since 1566 was 1083, checked in by dmik, 8 years ago

spec: perl-Error: Release version 0.17024-1.

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1# Based on http://pkgs.fedoraproject.org/cgit/rpms/perl-Error.git/tree/perl-Error.spec?id=7314bd991225612bc2db6cd4770568ea1ff3d283
2
3Name: perl-Error
4Epoch: 1
5Version: 0.17024
6Release: 1%{?dist}
7Summary: Error/exception handling in an OO-ish way
8License: (GPL+ or Artistic) and MIT
9Group: Development/Libraries
10URL: http://search.cpan.org/dist/Error/
11Vendor: bww bitwise works GmbH
12Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/Error-%{version}.tar.gz
13
14BuildArch: noarch
15BuildRequires: perl-generators
16BuildRequires: perl(File::Spec)
17BuildRequires: perl(lib)
18BuildRequires: perl(Module::Build)
19# Run-requires:
20BuildRequires: perl(Carp)
21BuildRequires: perl(Exporter)
22BuildRequires: perl(Scalar::Util)
23BuildRequires: perl(strict)
24BuildRequires: perl(warnings)
25# TODO No Test::Pod on OS/2 yet.
26%if 0
27# Tests:
28BuildRequires: perl(base)
29BuildRequires: perl(Test::More)
30# Optional tests:
31%if !%{defined perl_bootstrap}
32BuildRequires: perl(Test::Pod) >= 1.14
33BuildRequires: perl(Test::Pod::Coverage) >= 1.04
34%endif
35%endif
36Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
37Requires: perl(Carp)
38
39# Avoid provides/requires from examples
40%global __provides_exclude_from ^%{_docdir}
41%global __requires_exclude_from ^%{_docdir}
42
43%description
44The Error package provides two interfaces. Firstly Error provides a
45procedural interface to exception handling. Secondly Error is a base class
46for errors/exceptions that can either be thrown, for subsequent catch, or
47can simply be recorded.
48
49%prep
50%setup -q -n Error-%{version}
51
52%build
53perl Build.PL --installdirs=vendor
54./Build
55
56%install
57rm -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
68rm -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.
Note: See TracBrowser for help on using the repository browser.