3 %bcond_without tests # do not perform "make test"
6 %define pnam Assert-More
7 Summary: Carp::Assert::More - convenience wrappers around Carp::Assert
8 Name: perl-Carp-Assert-More
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: e056db5883a4ec7cdd62443046aa7e0a
16 URL: http://search.cpan.org/dist/Carp-Assert-More/
17 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: perl-Pod-Tests >= 0.18
20 BuildRequires: perl-Test-Simple >= 0.40
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Carp::Assert::More is a set of wrappers around the Carp::Assert
28 functions to make the habit of writing assertions even easier.
31 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %{__perl} Makefile.PL \
38 %{?with_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
51 %doc Changes README.md
52 %dir %{perl_vendorlib}/Carp/Assert
53 %{perl_vendorlib}/Carp/Assert/More.pm