]> git.pld-linux.org Git - packages/perl-Error.git/blob - perl-Error.spec
a03eb504482a4bfa0bd535857a466b27988477e6
[packages/perl-Error.git] / perl-Error.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        Error - error/exception handling in an OO-ish way
7 Summary(pl.UTF-8):      Error - obiektowa obsługa błędów/wyjątków
8 Name:           perl-Error
9 Version:        0.17024
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
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
16 # Source0-md5:  7e3676a7fb14f65f568f12d4b40a2a72
17 URL:            http://search.cpan.org/dist/Error/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 %if %{with tests}
20 BuildRequires:  perl-Test-Pod >= 1.14
21 BuildRequires:  perl-Test-Pod-Coverage >= 1.04
22 BuildRequires:  perl-Scalar-List-Utils
23 %endif
24 BuildRequires:  rpm-perlprov >= 4.1-13
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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.
33
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.
39
40 %prep
41 %setup -q -n Error-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc ChangeLog README
62 %{perl_vendorlib}/Error.pm
63 %dir %{perl_vendorlib}/Error
64 %{perl_vendorlib}/Error/Simple.pm
65 %{_mandir}/man3/Error*.3pm*
This page took 0.078375 seconds and 2 git commands to generate.