]> git.pld-linux.org Git - packages/perl-Carp-Assert-More.git/blame - 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
CommitLineData
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
7Summary: Carp::Assert::More - convenience wrappers around Carp::Assert
e37b0e99 8Name: perl-Carp-Assert-More
3512c2b8
AM
9Version: 1.20
10Release: 1
0cd62679
AM
11# same as perl
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
14Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/%{pdir}-%{pnam}-%{version}.tar.gz
3512c2b8 15# Source0-md5: e056db5883a4ec7cdd62443046aa7e0a
0cd62679
AM
16URL: http://search.cpan.org/dist/Carp-Assert-More/
17BuildRequires: perl-devel >= 1:5.8.0
18%if %{with tests}
19BuildRequires: perl-Pod-Tests >= 0.18
20BuildRequires: perl-Test-Simple >= 0.40
21%endif
22BuildRequires: rpm-perlprov >= 4.1-13
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27Carp::Assert::More is a set of wrappers around the Carp::Assert
28functions 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
41rm -rf $RPM_BUILD_ROOT
42
43%{__make} install \
44 DESTDIR=$RPM_BUILD_ROOT
45
46%clean
47rm -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/*
This page took 0.118099 seconds and 4 git commands to generate.