]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Exception::Class - declare real exception classes in Perl |
8f9cfdc5 | 9 | Summary(pl.UTF-8): Exception::Class - deklarowanie prawdziwych klas wyjątków w Perlu |
6ad44a3f | 10 | Name: perl-Exception-Class |
f10404ea | 11 | Version: 1.37 |
408c6a38 | 12 | Release: 1 |
e25941ef | 13 | License: Artistic 2.0 |
06e1785d | 14 | Group: Development/Languages/Perl |
e25941ef | 15 | Source0: http://www.cpan.org/modules/by-module/Exception/DROLSKY/%{pdir}-%{pnam}-%{version}.tar.gz |
f10404ea | 16 | # Source0-md5: 9953d120112d971f1deafdba9dc15aa7 |
cfea646c | 17 | URL: http://search.cpan.org/dist/Exception-Class/ |
30c84d1d | 18 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.31 |
2391b7a2 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
bd07019e | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
d7f44e8a | 21 | %if %{with tests} |
5d24b40b | 22 | BuildRequires: perl-Class-Data-Inheritable >= 0.02 |
30c84d1d JB |
23 | BuildRequires: perl-Devel-StackTrace >= 1.20 |
24 | BuildRequires: perl-Test-Simple >= 0.88 | |
c3a5617b | 25 | %endif |
06e1785d | 26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
075eeeff JB |
29 | %define _noautoreq perl($isa) |
30 | ||
06e1785d | 31 | %description |
32 | Exception::Class allows you to declare exceptions in your modules | |
33 | in a manner similar to how exceptions are declared in Java. | |
34 | ||
56cff228 JR |
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. | |
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 | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
2391b7a2 JB |
52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
06e1785d | 54 | |
55 | %clean | |
56 | rm -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* |