]>
Commit | Line | Data |
---|---|---|
c9709d23 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
c9709d23 | 5 | %define pdir Class |
6 | %define pnam C3-Adopt-NEXT | |
7 | Summary: Class::C3::Adopt::NEXT - make NEXT suck less | |
8 | #Summary(pl.UTF-8): | |
9 | Name: perl-Class-C3-Adopt-NEXT | |
ef3817ec | 10 | Version: 0.13 |
c9709d23 | 11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz | |
ef3817ec | 16 | # Source0-md5: 4b4a59b5004ab7e715315e3131773e04 |
c9709d23 | 17 | URL: http://search.cpan.org/dist/Class-C3-Adopt-NEXT/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-List-MoreUtils | |
22 | BuildRequires: perl-MRO-Compat | |
23 | BuildRequires: perl-Test-Exception | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
ef3817ec | 29 | This module is intended as a drop-in replacement for NEXT, supporting |
30 | the same interface, but using Class::C3 to do the hard work. You can | |
31 | then write new code without NEXT, and migrate individual source files | |
32 | to use Class::C3 or method modifiers as appropriate, at whatever pace | |
33 | you're comfortable with. | |
c9709d23 | 34 | |
35 | # %description -l pl.UTF-8 | |
36 | # TODO | |
37 | ||
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} pure_install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes | |
005adad2 | 60 | %{perl_vendorlib}/Class/C3/Adopt |
c9709d23 | 61 | %{_mandir}/man3/* |