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