]> git.pld-linux.org Git - packages/perl-Carp-Assert-More.git/blob - perl-Carp-Assert-More.spec
- up to 1.20
[packages/perl-Carp-Assert-More.git] / perl-Carp-Assert-More.spec
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
9 Name:           perl-Carp-Assert-More
10 Version:        1.20
11 Release:        1
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
16 # Source0-md5:  e056db5883a4ec7cdd62443046aa7e0a
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)
52 %doc Changes README.md
53 %dir %{perl_vendorlib}/Carp/Assert
54 %{perl_vendorlib}/Carp/Assert/More.pm
55 %{_mandir}/man3/*
This page took 0.0462630000000001 seconds and 3 git commands to generate.