1 | Name: perl-Test-Requires |
---|
2 | Summary: Checks to see if a given module can be loaded |
---|
3 | Version: 0.06 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | License: GPL+ or Artistic |
---|
6 | Group: Development/Libraries |
---|
7 | Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-%{version}.tar.gz |
---|
8 | URL: http://search.cpan.org/dist/Test-Requires |
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
10 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
11 | BuildArch: noarch |
---|
12 | |
---|
13 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 |
---|
14 | BuildRequires: perl(Filter::Util::Call) |
---|
15 | BuildRequires: perl(Test::More) >= 0.61 |
---|
16 | |
---|
17 | Requires: perl(Test::Builder::Module) |
---|
18 | |
---|
19 | %{?perl_default_filter} |
---|
20 | %{?perl_default_subpackage_tests} |
---|
21 | |
---|
22 | %description |
---|
23 | Test::Requires checks to see if the module can be loaded; if this fails |
---|
24 | rather than failing tests this *skips all tests*. |
---|
25 | |
---|
26 | %prep |
---|
27 | %setup -q -n Test-Requires-%{version} |
---|
28 | |
---|
29 | %build |
---|
30 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
31 | make %{?_smp_mflags} |
---|
32 | |
---|
33 | %install |
---|
34 | rm -rf %{buildroot} |
---|
35 | |
---|
36 | make pure_install DESTDIR=%{buildroot} |
---|
37 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
38 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
39 | |
---|
40 | %{_fixperms} %{buildroot}/* |
---|
41 | |
---|
42 | %check |
---|
43 | # note the "skipped" warnings indicate success :) |
---|
44 | make test |
---|
45 | |
---|
46 | |
---|
47 | %clean |
---|
48 | rm -rf %{buildroot} |
---|
49 | |
---|
50 | %files |
---|
51 | %defattr(-,root,root,-) |
---|
52 | %doc Changes README |
---|
53 | %{perl_vendorlib}/* |
---|
54 | %{_mandir}/man3/*.3* |
---|
55 | |
---|
56 | %changelog |
---|
57 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.06-1 |
---|
58 | - initial build for Vine Linux |
---|
59 | |
---|
60 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3 |
---|
61 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
62 | |
---|
63 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-2 |
---|
64 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
65 | |
---|
66 | * Tue Oct 05 2010 Iain Arnell <iarnell@gmail.com> 0.06-1 |
---|
67 | - update to latest upstream version |
---|
68 | |
---|
69 | * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-2 |
---|
70 | - Mass rebuild with perl-5.12.0 |
---|
71 | |
---|
72 | * Sat Mar 20 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1 |
---|
73 | - specfile by Fedora::App::MaintainerTools 0.006 |
---|
74 | |
---|
75 | |
---|