]>
Commit | Line | Data |
---|---|---|
bf14aae0 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
fba32925 | 4 | |
bf14aae0 ER |
5 | %define pdir Class |
6 | %define pnam Std | |
fba32925 | 7 | %include /usr/lib/rpm/macros.perl |
bf14aae0 ER |
8 | Summary: Class::Std - Support for creating standard "inside-out" classes |
9 | Name: perl-Class-Std | |
10 | Version: 0.0.9 | |
11 | Release: 1 | |
12 | License: GPL | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
15 | # Source0-md5: 376e009ce786d7f1887b212d6582e63f | |
fba32925 | 16 | URL: http://search.cpan.org/dist/Class-Std/ |
bf14aae0 ER |
17 | BuildRequires: perl-modules >= 1:5.8.8 |
18 | BuildRequires: perl-version >= 0.44 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This module provides tools that help to implement the "inside out | |
25 | object" class structure in a convenient and standard way. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
29 | ||
30 | %build | |
31 | %{__perl} Makefile.PL \ | |
32 | INSTALLDIRS=vendor | |
33 | %{__make} | |
34 | ||
35 | %{?with_tests:%{__make} test} | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %{__make} install \ | |
41 | DESTDIR=$RPM_BUILD_ROOT | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc Changes README | |
49 | %{perl_vendorlib}/Class/*.pm | |
50 | %{_mandir}/man3/* |