# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Exception %define pnam Class Summary: Exception::Class - declare real exception classes in Perl Summary(pl.UTF-8): Exception::Class - deklarowanie prawdziwych klas wyjątków w Perlu Name: perl-Exception-Class Version: 1.45 Release: 1 License: Artistic 2.0 Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Exception/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 1e564d20b374a99fdf660ba3f36b0098 URL: https://metacpan.org/dist/Exception-Class BuildRequires: perl-ExtUtils-MakeMaker >= 6.31 BuildRequires: perl-devel >= 1:5.8.1 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: rpmbuild(macros) >= 1.745 %if %{with tests} BuildRequires: perl-Class-Data-Inheritable >= 0.02 BuildRequires: perl-Devel-StackTrace >= 2.00 BuildRequires: perl-Test-Simple >= 0.96 %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreq perl($isa) %description Exception::Class allows you to declare exceptions in your modules in a manner similar to how exceptions are declared in Java. %description -l pl.UTF-8 Exception::Class pozwala na deklarowanie w modułach wyjątków w sposób podobny do stosowanego w Javie. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes LICENSE %dir %{perl_vendorlib}/Exception %{perl_vendorlib}/Exception/Class.pm %{perl_vendorlib}/Exception/Class %{_mandir}/man3/Exception::Class*.3pm*