]>
Commit | Line | Data |
---|---|---|
f4e7ceb2 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Test | |
6 | %define pnam CheckDeps | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: Test::CheckDeps - Check for presence of dependencies | |
9 | Name: perl-Test-CheckDeps | |
10 | Version: 0.004 | |
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/Test/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: bc18052363141e62a3b062a4479e8ece | |
17 | URL: http://search.cpan.org/dist/Test-CheckDeps/ | |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-CPAN-Meta-Check | |
51539528 | 22 | BuildConflicts: perl-Version-Requirements |
f4e7ceb2 JR |
23 | %endif |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This module adds a test that assures all dependencies have been | |
29 | installed properly. If requested, it can bail out all testing on | |
30 | error. | |
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 INSTALL README | |
54 | %{perl_vendorlib}/Test/*.pm | |
55 | %{_mandir}/man3/* |