]> git.pld-linux.org Git - packages/perl-Mouse.git/blame - perl-Mouse.spec
- version 0.28
[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
72d12dc8 8#Summary(pl.UTF-8):
f1b70b02 9Name: perl-Mouse
713b9530 10Version: 0.28
f1b70b02 11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
713b9530 15Source0: http://search.cpan.org/CPAN/authors/id/S/SU/SUNNAVY/%{pdir}-%{version}.tar.gz
16# Source0-md5: 44131d442479efe442abc713248249ae
f1b70b02 17URL: http://search.cpan.org/dist/Mouse/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
72d12dc8 21BuildRequires: perl-ExtUtils-MakeMaker >= 6.42
22BuildRequires: perl-Test-Exception >= 0.21
23BuildRequires: perl-Test-Simple >= 0.8
f1b70b02 24%endif
25BuildArch: noarch
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
39# %description -l pl.UTF-8
f1b70b02 40
41%prep
42%setup -q -n %{pdir}-%{version}
43
44%build
45%{__perl} Makefile.PL \
46 INSTALLDIRS=vendor
47%{__make}
48
49%{?with_tests:%{__make} test}
50
51%install
52rm -rf $RPM_BUILD_ROOT
2bb7624b 53install -d $RPM_BUILD_ROOT%{perl_vendorlib}/MouseX
f1b70b02 54
55%{__make} pure_install \
56 DESTDIR=$RPM_BUILD_ROOT
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc Changes
64%{perl_vendorlib}/*.pm
65%{perl_vendorlib}/Mouse/
66%{perl_vendorlib}/MouseX/
67%{perl_vendorlib}/Squirrel/
68%{_mandir}/man3/*
This page took 0.113753 seconds and 4 git commands to generate.