3 %bcond_without tests # do not perform "make test"
6 %define pnam C3-Adopt-NEXT
7 Summary: Class::C3::Adopt::NEXT - make NEXT suck less
9 Name: perl-Class-C3-Adopt-NEXT
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
16 # Source0-md5: 4b4a59b5004ab7e715315e3131773e04
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
21 BuildRequires: perl-List-MoreUtils
22 BuildRequires: perl-MRO-Compat
23 BuildRequires: perl-Test-Exception
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
35 # %description -l pl.UTF-8
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Class/C3/Adopt