3 %bcond_without tests # do not perform "make test"
5 Summary: Error - error/exception handling in an OO-ish way
6 Summary(pl.UTF-8): Error - obiektowa obsługa błędów/wyjątków
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 #Source0: http://www.cpan.org/modules/by-module/Error/Error-%{version}.tar.gz
14 Source0: http://www.cpan.org/modules/by-module/Error/SHLOMIF/Error-%{version}.tar.gz
15 # Source0-md5: ec3522c60a43a368f19c0f89e2205cb1
16 URL: http://search.cpan.org/dist/Error/
17 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: perl-Test-Pod >= 1.14
20 BuildRequires: perl-Test-Pod-Coverage >= 1.04
21 BuildRequires: perl-Scalar-List-Utils
23 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The Error Perl module provides two interfaces. Firstly Error provides
29 a procedural interface to exception handling. Secondly Error is a base
30 class for errors/exceptions that can either be thrown, for subsequent
31 catch, or can simply be recorded.
33 %description -l pl.UTF-8
34 Moduł Perla Error udostępnia dwa interfejsy. Po pierwsze, interfejs
35 proceduralny do obsługi wyjątków. Po drugie, klasę bazową dla
36 błędów/wyjątków, które mogą być albo przerzucone dla późniejszego
37 przejęcia, albo po prostu zarejestrowane.
40 %setup -q -n Error-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/Error.pm
62 %dir %{perl_vendorlib}/Error
63 %{perl_vendorlib}/Error/Simple.pm
64 %{_mandir}/man3/Error*.3pm*