]> git.pld-linux.org Git - packages/perl-Carp-Assert.git/blame - perl-Carp-Assert.spec
- release 2
[packages/perl-Carp-Assert.git] / perl-Carp-Assert.spec
CommitLineData
a3ceceb1
JB
1#
2# Conditional build:
8e2b59a0 3%bcond_without tests # do not perform "make test"
a3ceceb1 4#
912b4272 5%include /usr/lib/rpm/macros.perl
7b0b5bd1 6%define pdir Carp
7%define pnam Assert
74829406 8Summary: Carp::Assert - executable comments
31516366 9Summary(pl.UTF-8): Carp::Assert - wykonywalne komentarze
f22a4859 10Name: perl-Carp-Assert
093027a1 11Version: 0.20
d84715d4 12Release: 2
705f0314 13# same as perl
14License: GPL v1+ or Artistic
f22a4859 15Group: Development/Languages/Perl
48c04bdf 16Source0: http://www.cpan.org/modules/by-module/Carp/%{pdir}-%{pnam}-%{version}.tar.gz
093027a1 17# Source0-md5: 9dafe361b9e5e93e8e3e70e015f6b191
48c04bdf 18URL: http://search.cpan.org/dist/Carp-Assert/
f9288c6e 19BuildRequires: perl-devel >= 1:5.8.0
47af7088 20%if %{with tests}
fa4b2522 21BuildRequires: perl-Pod-Tests >= 0.18
47af7088 22BuildRequires: perl-Test-Simple >= 0.40
23%endif
56244cc2 24BuildRequires: rpm-perlprov >= 4.1-13
cb3716f1 25BuildArch: noarch
4c785108 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
f22a4859 27
28%description
a3ceceb1
JB
29Carp::Assert is intended for a purpose like the ANSI C library
30assert.h. An assertion is used to prevent the impossible from being
31asked of your code, or at least tell you when it does.
32
3d90fc61
JR
33%description -l pl.UTF-8
34Moduł Carp::Assert służy do tego, co assert.h z ANSI C. Używa się
35zapewnień (assertion), aby wykluczyć występowanie rzeczy niemożliwych,
36albo przynajmniej wiedzieć, gdzie się zdarzają.
507a5af3 37
f22a4859 38%prep
912b4272 39%setup -q -n %{pdir}-%{pnam}-%{version}
f22a4859 40
41%build
56244cc2 42%{__perl} Makefile.PL \
f5986a4f 43 INSTALLDIRS=vendor
b5dca369 44%{__make}
f22a4859 45
8e2b59a0 46%{?with_tests:%{__make} test}
a3ceceb1 47
f22a4859 48%install
49rm -rf $RPM_BUILD_ROOT
f22a4859 50
7157e77d 51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
f22a4859 53
f22a4859 54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
507a5af3 59%doc Changes README
d6e47c4e 60%{perl_vendorlib}/Carp/Assert.pm
f22a4859 61%{_mandir}/man3/*
This page took 0.084453 seconds and 4 git commands to generate.