]> git.pld-linux.org Git - packages/perl-Carp-Assert-More.git/blob - perl-Carp-Assert-More.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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 %define         pdir    Carp
6 %define         pnam    Assert-More
7 Summary:        Carp::Assert::More - convenience wrappers around Carp::Assert
8 Name:           perl-Carp-Assert-More
9 Version:        1.20
10 Release:        1
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
15 # Source0-md5:  e056db5883a4ec7cdd62443046aa7e0a
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)
51 %doc Changes README.md
52 %dir %{perl_vendorlib}/Carp/Assert
53 %{perl_vendorlib}/Carp/Assert/More.pm
54 %{_mandir}/man3/*
This page took 0.190544 seconds and 3 git commands to generate.