]>
Commit | Line | Data |
---|---|---|
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 | |
8 | Summary: Carp::Assert::More - convenience wrappers around Carp::Assert | |
e37b0e99 | 9 | Name: perl-Carp-Assert-More |
3512c2b8 AM |
10 | Version: 1.20 |
11 | Release: 1 | |
0cd62679 AM |
12 | # same as perl |
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 | |
3512c2b8 | 16 | # Source0-md5: e056db5883a4ec7cdd62443046aa7e0a |
0cd62679 AM |
17 | URL: http://search.cpan.org/dist/Carp-Assert-More/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | %if %{with tests} | |
20 | BuildRequires: perl-Pod-Tests >= 0.18 | |
21 | BuildRequires: perl-Test-Simple >= 0.40 | |
22 | %endif | |
23 | BuildRequires: rpm-perlprov >= 4.1-13 | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Carp::Assert::More is a set of wrappers around the Carp::Assert | |
29 | functions 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 | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %clean | |
48 | rm -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/* |