]>
Commit | Line | Data |
---|---|---|
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 | |
8 | Summary: MooseX::Types::Common - A library of commonly used type constraints | |
959fddc2 | 9 | Name: perl-MooseX-Types-Common |
10 | Version: 0.001004 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/MooseX/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 7e6ac09fc14143362a8b1d1e66cd9543 | |
d6bcb85e | 17 | URL: http://search.cpan.org/dist/MooseX-Types-Common/ |
959fddc2 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Moose >= 0.39 | |
22 | BuildRequires: perl-MooseX-Types >= 0.04 | |
23 | BuildRequires: perl-Test-Fatal | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
d6bcb85e ER |
29 | A set of commonly-used type constraints that do not ship with Moose by |
30 | default. | |
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 | |
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}/MooseX/Types/*.pm | |
55 | %{perl_vendorlib}/MooseX/Types/Common | |
56 | %{_mandir}/man3/* |