3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Class-TryCatch
8 Summary: Exception::Class::TryCatch - syntactic try/catch sugar for use with Exception::Class
9 Summary(pl.UTF-8): Exception::Class::TryCatch - składniowe try/catch do używania z Exception::Class
10 Name: perl-Exception-Class-TryCatch
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: d9943ce5e251437312a11001b9531f43
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Exception-Class >= 1.20
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Exception::Class::TryCatch - syntactic try/catch sugar for use with
28 %description -l pl.UTF-8
29 Exception::Class::TryCatch - składniowe try/catch do używania z
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc README Changes LICENSE
54 %{perl_vendorlib}/Exception