3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: Mouse - Moose minus the antlers
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://search.cpan.org/CPAN/authors/id/S/SY/SYOHEX/%{pdir}-v%{version}.tar.gz
15 # Source0-md5: 2183f5bc16c7d37df5cf1dacf8ef88a1
16 URL: http://search.cpan.org/dist/Mouse/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-Module-Build-XSUtil
21 BuildRequires: perl-ExtUtils-MakeMaker >= 6.42
22 BuildRequires: perl-Test-Exception >= 0.21
23 BuildRequires: perl-Test-Simple >= 0.8
24 BuildRequires: perl-Test-LeakTrace
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Moose is wonderful. Use Moose instead of Mouse.
31 Unfortunately, it's a little slow. Though significant progress has
32 been made over the years, the compile time penalty is a non-starter
33 for some applications.
35 Mouse aims to alleviate this by providing a subset of Moose's
36 functionality, faster. In particular, L<Moose/has> is missing only a
37 few expert-level features.
40 %setup -q -n %{pdir}-v%{version}
44 destdir=$RPM_BUILD_ROOT \
50 %{?with_tests:./Build test}
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/MouseX
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/MouseX/
65 %{perl_vendorarch}/*.pm
66 %{perl_vendorarch}/Mouse/
67 %{perl_vendorarch}/Squirrel/
68 %{perl_vendorarch}/Test/*.pm
69 %dir %{perl_vendorarch}/auto/%{pdir}
70 %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/*.so