3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Exception::Class - declare real exception classes in Perl
9 Summary(pl.UTF-8): Exception::Class - deklarowanie prawdziwych klas wyjątków w Perlu
10 Name: perl-Exception-Class
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Exception/DROLSKY/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 9953d120112d971f1deafdba9dc15aa7
17 URL: http://search.cpan.org/dist/Exception-Class/
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.31
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Class-Data-Inheritable >= 0.02
23 BuildRequires: perl-Devel-StackTrace >= 1.20
24 BuildRequires: perl-Test-Simple >= 0.88
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _noautoreq perl($isa)
32 Exception::Class allows you to declare exceptions in your modules
33 in a manner similar to how exceptions are declared in Java.
35 %description -l pl.UTF-8
36 Exception::Class pozwala na deklarowanie w modułach wyjątków
37 w sposób podobny do stosowanego w Javie.
40 %setup -q -n %{pdir}-%{pnam}-%{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 %dir %{perl_vendorlib}/Exception
62 %{perl_vendorlib}/Exception/Class.pm
63 %{perl_vendorlib}/Exception/Class
64 %{_mandir}/man3/Exception::Class*.3pm*