]> git.pld-linux.org Git - packages/perl-Test-CheckDeps.git/blame - perl-Test-CheckDeps.spec
- BC perl-Version-Requirements
[packages/perl-Test-CheckDeps.git] / perl-Test-CheckDeps.spec
CommitLineData
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
8Summary: Test::CheckDeps - Check for presence of dependencies
9Name: perl-Test-CheckDeps
10Version: 0.004
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: bc18052363141e62a3b062a4479e8ece
17URL: http://search.cpan.org/dist/Test-CheckDeps/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-CPAN-Meta-Check
51539528 22BuildConflicts: perl-Version-Requirements
f4e7ceb2
JR
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This module adds a test that assures all dependencies have been
29installed properly. If requested, it can bail out all testing on
30error.
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 INSTALL README
54%{perl_vendorlib}/Test/*.pm
55%{_mandir}/man3/*
This page took 0.054873 seconds and 4 git commands to generate.