]> git.pld-linux.org Git - packages/perl-MooX.git/blame - perl-MooX.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-MooX.git] / perl-MooX.spec
CommitLineData
4c0ab0a0
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir MooX
4c0ab0a0
AM
6Summary: MooX - Using Moo and MooX:: packages the most lazy way
7Name: perl-MooX
8Version: 0.101
9Release: 1
10# same as perl
11License: GPL v1+ or Artistic
12Group: Development/Languages/Perl
13Source0: http://www.cpan.org/modules/by-module/MooX/%{pdir}-%{version}.tar.gz
14# Source0-md5: c35d73fc38aceb7edec1b5560abe4e2d
15URL: http://search.cpan.org/dist/MooX/
16BuildRequires: perl-devel >= 1:5.8.0
17BuildRequires: rpm-perlprov >= 4.1-13
18%if %{with tests}
19BuildRequires: perl-Data-OptList >= 0.107
20BuildRequires: perl-Import-Into >= 1.000003
21BuildRequires: perl-Module-Runtime >= 0.013
22BuildRequires: perl-Moo >= 0.091004
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28Using 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
43rm -rf $RPM_BUILD_ROOT
44
45%{__make} pure_install \
46 DESTDIR=$RPM_BUILD_ROOT
47
48%clean
49rm -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/*
This page took 0.144735 seconds and 4 git commands to generate.