]>
Commit | Line | Data |
---|---|---|
20c1ddc6 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
de54d147 | 5 | %include /usr/lib/rpm/macros.perl |
7045e36c | 6 | Summary: Error - error/exception handling in an OO-ish way |
2892394a | 7 | Summary(pl.UTF-8): Error - obiektowa obsługa błędów/wyjątków |
54991751 | 8 | Name: perl-Error |
26a15e83 | 9 | Version: 0.17028 |
2bc201aa | 10 | Release: 1 |
7045e36c | 11 | # same as perl |
c1783a55 | 12 | License: GPL v1+ or Artistic |
54991751 | 13 | Group: Development/Languages/Perl |
2bc201aa JB |
14 | #Source0: http://www.cpan.org/modules/by-module/Error/Error-%{version}.tar.gz |
15 | Source0: http://www.cpan.org/modules/by-module/Error/SHLOMIF/Error-%{version}.tar.gz | |
26a15e83 | 16 | # Source0-md5: ec3522c60a43a368f19c0f89e2205cb1 |
c1783a55 | 17 | URL: http://search.cpan.org/dist/Error/ |
fbe68f12 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
3ec1dc3f KK |
19 | %if %{with tests} |
20 | BuildRequires: perl-Test-Pod >= 1.14 | |
21 | BuildRequires: perl-Test-Pod-Coverage >= 1.04 | |
8add2c83 | 22 | BuildRequires: perl-Scalar-List-Utils |
3ec1dc3f | 23 | %endif |
59923c60 | 24 | BuildRequires: rpm-perlprov >= 4.1-13 |
19033c29 | 25 | BuildArch: noarch |
fb5e37ce | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54991751 | 27 | |
28 | %description | |
7045e36c | 29 | The Error Perl module provides two interfaces. Firstly Error provides |
30 | a procedural interface to exception handling. Secondly Error is a base | |
31 | class for errors/exceptions that can either be thrown, for subsequent | |
32 | catch, or can simply be recorded. | |
54991751 | 33 | |
4a72ec29 JR |
34 | %description -l pl.UTF-8 |
35 | Moduł Perla Error udostępnia dwa interfejsy. Po pierwsze, interfejs | |
36 | proceduralny do obsługi wyjątków. Po drugie, klasę bazową dla | |
37 | błędów/wyjątków, które mogą być albo przerzucone dla późniejszego | |
38 | przejęcia, albo po prostu zarejestrowane. | |
7045e36c | 39 | |
54991751 | 40 | %prep |
41 | %setup -q -n Error-%{version} | |
42 | ||
43 | %build | |
59923c60 | 44 | %{__perl} Makefile.PL \ |
8d6fb5bb | 45 | INSTALLDIRS=vendor |
29a56fe8 | 46 | %{__make} |
54991751 | 47 | |
20c1ddc6 | 48 | %{?with_tests:%{__make} test} |
49 | ||
54991751 | 50 | %install |
51 | rm -rf $RPM_BUILD_ROOT | |
54991751 | 52 | |
20c1ddc6 | 53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
54991751 | 55 | |
54991751 | 56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
0d0e9993 | 61 | %doc ChangeLog README |
59923c60 | 62 | %{perl_vendorlib}/Error.pm |
ea4e8301 | 63 | %dir %{perl_vendorlib}/Error |
64 | %{perl_vendorlib}/Error/Simple.pm | |
2bc201aa | 65 | %{_mandir}/man3/Error*.3pm* |