]> git.pld-linux.org Git - packages/perl-Carp-Assert-More.git/blame - perl-Carp-Assert-More.spec
- up to 1.20
[packages/perl-Carp-Assert-More.git] / perl-Carp-Assert-More.spec
CommitLineData
0cd62679
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir Carp
7%define pnam Assert-More
8Summary: Carp::Assert::More - convenience wrappers around Carp::Assert
e37b0e99 9Name: perl-Carp-Assert-More
3512c2b8
AM
10Version: 1.20
11Release: 1
0cd62679
AM
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/%{pdir}-%{pnam}-%{version}.tar.gz
3512c2b8 16# Source0-md5: e056db5883a4ec7cdd62443046aa7e0a
0cd62679
AM
17URL: http://search.cpan.org/dist/Carp-Assert-More/
18BuildRequires: perl-devel >= 1:5.8.0
19%if %{with tests}
20BuildRequires: perl-Pod-Tests >= 0.18
21BuildRequires: perl-Test-Simple >= 0.40
22%endif
23BuildRequires: rpm-perlprov >= 4.1-13
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28Carp::Assert::More is a set of wrappers around the Carp::Assert
29functions to make the habit of writing assertions even easier.
30
31%prep
32%setup -q -n %{pdir}-%{pnam}-%{version}
33
34%build
35%{__perl} Makefile.PL \
36 INSTALLDIRS=vendor
37%{__make}
38
39%{?with_tests:%{__make} test}
40
41%install
42rm -rf $RPM_BUILD_ROOT
43
44%{__make} install \
45 DESTDIR=$RPM_BUILD_ROOT
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files
51%defattr(644,root,root,755)
3512c2b8 52%doc Changes README.md
a8cc0552 53%dir %{perl_vendorlib}/Carp/Assert
0cd62679
AM
54%{perl_vendorlib}/Carp/Assert/More.pm
55%{_mandir}/man3/*
This page took 0.14747 seconds and 4 git commands to generate.