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