]> git.pld-linux.org Git - packages/perl-Mouse.git/blame - perl-Mouse.spec
- release 3 (by relup.sh)
[packages/perl-Mouse.git] / perl-Mouse.spec
CommitLineData
f1b70b02 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Mouse
7Summary: Mouse - Moose minus the antlers
f1b70b02 8Name: perl-Mouse
4761ea88 9Version: 2.3.0
acaac562 10Release: 3
f1b70b02 11# same as perl
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
86c78209 14Source0: http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/%{pdir}-%{version}.tar.gz
4761ea88 15# Source0-md5: aae2b55f280f773a92fa16c6bdcc358d
f1b70b02 16URL: http://search.cpan.org/dist/Mouse/
17BuildRequires: perl-devel >= 1:5.8.0
18BuildRequires: rpm-perlprov >= 4.1-13
4761ea88 19BuildRequires: perl-Module-Build-XSUtil
f1b70b02 20%if %{with tests}
72d12dc8 21BuildRequires: perl-ExtUtils-MakeMaker >= 6.42
22BuildRequires: perl-Test-Exception >= 0.21
23BuildRequires: perl-Test-Simple >= 0.8
4761ea88 24BuildRequires: perl-Test-LeakTrace
f1b70b02 25%endif
f1b70b02 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
72d12dc8 29Moose is wonderful. Use Moose instead of Mouse.
f1b70b02 30
31Unfortunately, it's a little slow. Though significant progress has
32been made over the years, the compile time penalty is a non-starter
33for some applications.
34
35Mouse aims to alleviate this by providing a subset of Moose's
72d12dc8 36functionality, faster. In particular, L<Moose/has> is missing only a
37few expert-level features.
f1b70b02 38
f1b70b02 39%prep
40%setup -q -n %{pdir}-%{version}
41
42%build
4761ea88
JR
43%{__perl} Build.PL \
44 destdir=$RPM_BUILD_ROOT \
45 installdirs=vendor
46
47./Build \
48 CFLAGS="%{rpmcflags}"
f1b70b02 49
4761ea88 50%{?with_tests:./Build test}
f1b70b02 51
52%install
53rm -rf $RPM_BUILD_ROOT
2bb7624b 54install -d $RPM_BUILD_ROOT%{perl_vendorlib}/MouseX
f1b70b02 55
4761ea88 56./Build install
f1b70b02 57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc Changes
f1b70b02 64%{perl_vendorlib}/MouseX/
c45974d8 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
f1b70b02 71%{_mandir}/man3/*
This page took 0.080215 seconds and 4 git commands to generate.