]> git.pld-linux.org Git - packages/perl-MooseX-Types-Common.git/blame - perl-MooseX-Types-Common.spec
use generic url
[packages/perl-MooseX-Types-Common.git] / perl-MooseX-Types-Common.spec
CommitLineData
959fddc2 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
d6bcb85e 4
959fddc2 5%define pdir MooseX
6%define pnam Types-Common
7%include /usr/lib/rpm/macros.perl
8Summary: MooseX::Types::Common - A library of commonly used type constraints
959fddc2 9Name: perl-MooseX-Types-Common
10Version: 0.001004
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/MooseX/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: 7e6ac09fc14143362a8b1d1e66cd9543
d6bcb85e 17URL: http://search.cpan.org/dist/MooseX-Types-Common/
959fddc2 18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-Moose >= 0.39
22BuildRequires: perl-MooseX-Types >= 0.04
23BuildRequires: perl-Test-Fatal
24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
d6bcb85e
ER
29A set of commonly-used type constraints that do not ship with Moose by
30default.
959fddc2 31
32%prep
33%setup -q -n %{pdir}-%{pnam}-%{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}/MooseX/Types/*.pm
55%{perl_vendorlib}/MooseX/Types/Common
56%{_mandir}/man3/*
This page took 0.057537 seconds and 4 git commands to generate.