]> git.pld-linux.org Git - packages/perl-Exception-Class.git/blame - perl-Exception-Class.spec
- up to 1.37
[packages/perl-Exception-Class.git] / perl-Exception-Class.spec
CommitLineData
2391b7a2 1#
c3a5617b 2# Conditional build:
f6e65c4d 3%bcond_without tests # do not perform "make test"
2391b7a2 4#
06e1785d 5%include /usr/lib/rpm/macros.perl
6cacb57d 6%define pdir Exception
7%define pnam Class
858c2b19 8Summary: Exception::Class - declare real exception classes in Perl
8f9cfdc5 9Summary(pl.UTF-8): Exception::Class - deklarowanie prawdziwych klas wyjątków w Perlu
6ad44a3f 10Name: perl-Exception-Class
f10404ea 11Version: 1.37
408c6a38 12Release: 1
e25941ef 13License: Artistic 2.0
06e1785d 14Group: Development/Languages/Perl
e25941ef 15Source0: http://www.cpan.org/modules/by-module/Exception/DROLSKY/%{pdir}-%{pnam}-%{version}.tar.gz
f10404ea 16# Source0-md5: 9953d120112d971f1deafdba9dc15aa7
cfea646c 17URL: http://search.cpan.org/dist/Exception-Class/
30c84d1d 18BuildRequires: perl-ExtUtils-MakeMaker >= 6.31
2391b7a2 19BuildRequires: perl-devel >= 1:5.8.0
bd07019e 20BuildRequires: rpm-perlprov >= 4.1-13
d7f44e8a 21%if %{with tests}
5d24b40b 22BuildRequires: perl-Class-Data-Inheritable >= 0.02
30c84d1d
JB
23BuildRequires: perl-Devel-StackTrace >= 1.20
24BuildRequires: perl-Test-Simple >= 0.88
c3a5617b 25%endif
06e1785d 26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
075eeeff
JB
29%define _noautoreq perl($isa)
30
06e1785d 31%description
32Exception::Class allows you to declare exceptions in your modules
33in a manner similar to how exceptions are declared in Java.
34
56cff228
JR
35%description -l pl.UTF-8
36Exception::Class pozwala na deklarowanie w modułach wyjątków
37w sposób podobny do stosowanego w Javie.
06e1785d 38
06e1785d 39%prep
40%setup -q -n %{pdir}-%{pnam}-%{version}
41
42%build
bd07019e 43%{__perl} Makefile.PL \
2aaf9f43 44 INSTALLDIRS=vendor
06e1785d 45%{__make}
c3a5617b 46
d7f44e8a 47%{?with_tests:%{__make} test}
06e1785d 48
49%install
50rm -rf $RPM_BUILD_ROOT
51
2391b7a2
JB
52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
06e1785d 54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
508d7607 60%doc Changes LICENSE
e25941ef
JB
61%dir %{perl_vendorlib}/Exception
62%{perl_vendorlib}/Exception/Class.pm
63%{perl_vendorlib}/Exception/Class
64%{_mandir}/man3/Exception::Class*.3pm*
This page took 0.147111 seconds and 4 git commands to generate.