]>
Commit | Line | Data |
---|---|---|
0df939d9 | 1 | # |
2 | # Conditional build: | |
769760ba | 3 | %bcond_without tests # do not perform "make test" |
4 | # | |
6e19069b | 5 | %include /usr/lib/rpm/macros.perl |
0359c5dc | 6 | %define pdir Class |
7 | %define pnam ISA | |
6e19069b | 8 | Summary: Class::ISA Perl module - report the search path for a class's ISA tree |
9ba47c58 | 9 | Summary(pl.UTF-8): Moduł Perla Class::ISA - zwrócenie ścieżki przeszukiwania dla drzewa klasy ISA |
6e19069b | 10 | Name: perl-Class-ISA |
c068e2c0 AG |
11 | Version: 0.33 |
12 | Release: 1 | |
4114e99e | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
6e19069b | 15 | Group: Development/Languages/Perl |
cccb2195 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
c068e2c0 | 17 | # Source0-md5: 562a04a5391ab28e8fe101bb4874d0e3 |
e30a603a | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
db7e536d | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
6e19069b | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This library, Class::ISA, provides functions that return a list (in | |
25 | order) of names of classes Perl would search to find a method, with | |
26 | no duplicates. | |
27 | ||
9ba47c58 JR |
28 | %description -l pl.UTF-8 |
29 | Biblioteka Class::ISA udostępnia funkcje zwracające (uporządkowaną) | |
30 | listę nazw klas, które Perl powinien przeszukać w celu znalezienia | |
31 | zadanej metody (bez duplikatów). | |
6e19069b | 32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
e30a603a | 37 | %{__perl} Makefile.PL \ |
0758dae8 | 38 | INSTALLDIRS=vendor |
6e19069b | 39 | %{__make} |
40 | ||
769760ba | 41 | %{?with_tests:%{__make} test} |
0df939d9 | 42 | |
6e19069b | 43 | %install |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
a64a82ee | 46 | %{__make} install \ |
47 | DESTDIR=$RPM_BUILD_ROOT | |
6e19069b | 48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc ChangeLog | |
e30a603a | 55 | %{perl_vendorlib}/Class/ISA.pm |
6e19069b | 56 | %{_mandir}/man3/* |