]>
Commit | Line | Data |
---|---|---|
0cd62679 AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
0cd62679 AM |
5 | %define pdir Carp |
6 | %define pnam Assert-More | |
7 | Summary: Carp::Assert::More - convenience wrappers around Carp::Assert | |
e37b0e99 | 8 | Name: perl-Carp-Assert-More |
3512c2b8 AM |
9 | Version: 1.20 |
10 | Release: 1 | |
0cd62679 AM |
11 | # same as perl |
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 | |
3512c2b8 | 15 | # Source0-md5: e056db5883a4ec7cdd62443046aa7e0a |
0cd62679 AM |
16 | URL: http://search.cpan.org/dist/Carp-Assert-More/ |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | %if %{with tests} | |
19 | BuildRequires: perl-Pod-Tests >= 0.18 | |
20 | BuildRequires: perl-Test-Simple >= 0.40 | |
21 | %endif | |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Carp::Assert::More is a set of wrappers around the Carp::Assert | |
28 | functions to make the habit of writing assertions even easier. | |
29 | ||
30 | %prep | |
31 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
32 | ||
33 | %build | |
34 | %{__perl} Makefile.PL \ | |
35 | INSTALLDIRS=vendor | |
36 | %{__make} | |
37 | ||
38 | %{?with_tests:%{__make} test} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %{__make} install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
3512c2b8 | 51 | %doc Changes README.md |
a8cc0552 | 52 | %dir %{perl_vendorlib}/Carp/Assert |
0cd62679 AM |
53 | %{perl_vendorlib}/Carp/Assert/More.pm |
54 | %{_mandir}/man3/* |