]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Carp::Assert - executable comments |
31516366 | 9 | Summary(pl.UTF-8): Carp::Assert - wykonywalne komentarze |
f22a4859 | 10 | Name: perl-Carp-Assert |
093027a1 | 11 | Version: 0.20 |
d84715d4 | 12 | Release: 2 |
705f0314 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
f22a4859 | 15 | Group: Development/Languages/Perl |
48c04bdf | 16 | Source0: http://www.cpan.org/modules/by-module/Carp/%{pdir}-%{pnam}-%{version}.tar.gz |
093027a1 | 17 | # Source0-md5: 9dafe361b9e5e93e8e3e70e015f6b191 |
48c04bdf | 18 | URL: http://search.cpan.org/dist/Carp-Assert/ |
f9288c6e | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
47af7088 | 20 | %if %{with tests} |
fa4b2522 | 21 | BuildRequires: perl-Pod-Tests >= 0.18 |
47af7088 | 22 | BuildRequires: perl-Test-Simple >= 0.40 |
23 | %endif | |
56244cc2 | 24 | BuildRequires: rpm-perlprov >= 4.1-13 |
cb3716f1 | 25 | BuildArch: noarch |
4c785108 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f22a4859 | 27 | |
28 | %description | |
a3ceceb1 JB |
29 | Carp::Assert is intended for a purpose like the ANSI C library |
30 | assert.h. An assertion is used to prevent the impossible from being | |
31 | asked of your code, or at least tell you when it does. | |
32 | ||
3d90fc61 JR |
33 | %description -l pl.UTF-8 |
34 | Moduł Carp::Assert służy do tego, co assert.h z ANSI C. Używa się | |
35 | zapewnień (assertion), aby wykluczyć występowanie rzeczy niemożliwych, | |
36 | albo 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 |
49 | rm -rf $RPM_BUILD_ROOT | |
f22a4859 | 50 | |
7157e77d | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
f22a4859 | 53 | |
f22a4859 | 54 | %clean |
55 | rm -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/* |