]>
Commit | Line | Data |
---|---|---|
4c0ab0a0 AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir MooX | |
4c0ab0a0 AM |
6 | Summary: MooX - Using Moo and MooX:: packages the most lazy way |
7 | Name: perl-MooX | |
8 | Version: 0.101 | |
9 | Release: 1 | |
10 | # same as perl | |
11 | License: GPL v1+ or Artistic | |
12 | Group: Development/Languages/Perl | |
13 | Source0: http://www.cpan.org/modules/by-module/MooX/%{pdir}-%{version}.tar.gz | |
14 | # Source0-md5: c35d73fc38aceb7edec1b5560abe4e2d | |
15 | URL: http://search.cpan.org/dist/MooX/ | |
16 | BuildRequires: perl-devel >= 1:5.8.0 | |
17 | BuildRequires: rpm-perlprov >= 4.1-13 | |
18 | %if %{with tests} | |
19 | BuildRequires: perl-Data-OptList >= 0.107 | |
20 | BuildRequires: perl-Import-Into >= 1.000003 | |
21 | BuildRequires: perl-Module-Runtime >= 0.013 | |
22 | BuildRequires: perl-Moo >= 0.091004 | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Using Moo and MooX:: packages the most lazy way | |
29 | ||
30 | =encoding utf8 | |
31 | ||
32 | %prep | |
33 | %setup -q -n %{pdir}-%{version} | |
34 | ||
35 | %build | |
36 | %{__perl} Makefile.PL \ | |
37 | INSTALLDIRS=vendor | |
38 | %{__make} | |
39 | ||
40 | %{?with_tests:%{__make} test} | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} pure_install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc Changes README | |
54 | %{perl_vendorlib}//*.pm | |
55 | %{perl_vendorlib}/MooX/ | |
56 | %{_mandir}/man3/* |