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