3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Class::Mix - dynamic class mixing
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 7d6c4e70dea13678d845898a4a1565c0
17 BuildRequires: perl-Params-Classify
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The mix_class function provided by this module dynamically generates
25 `anonymous' classes with specified inheritance.
28 %setup -q -n %{pdir}-%{pnam}-%{version}
31 %{__perl} Makefile.PL \
36 %{?with_tests:%{__make} test}
39 rm -rf $RPM_BUILD_ROOT
42 DESTDIR=$RPM_BUILD_ROOT
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %{perl_vendorlib}/Class/Mix.pm