]> git.pld-linux.org Git - SPECS.git/blob - perl-Devel-Carp.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Devel-Carp.spec
1 %define         pdir    Devel
2 %define         pnam    Carp
3 Summary:        Devel::Carp - miscleanous error handling functions
4 Summary(pl.UTF-8):      Devel::Carp - różne funkcje do obsługi błędów
5 Name:           perl-Devel-Carp
6 Version:        0.04
7 Release:        14
8 License:        unknown
9 Group:          Development/Languages/Perl
10 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
11 # Source0-md5:  e5377daa28ee1981dcbc2a074bf7a6ef
12 URL:            http://search.cpan.org/dist/Devel-Carp/
13 BuildRequires:  perl-devel >= 1:5.8.0
14 BuildRequires:  rpm-perlprov >= 4.1-13
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _noautoprov     'perl(Carp)'
19
20 %description
21 The Carp routines are useful in your own modules because they act like
22 die() or warn(), but report where the error was in the code they were
23 called from. Thus if you have a routine Foo() that has a carp() in it,
24 then the carp() will report the error as occurring where Foo() was
25 called, not where carp() was called.
26
27 %description -l pl.UTF-8
28 Funkcje Carp są przydatne we własnych modułach, ponieważ zachowują się
29 jak die() i warn(), ale zgłaszają, że błąd wystąpił w kodzie, z
30 którego zostały wywołane. W ten sposób, jeśli jest funkcja Foo(),
31 która zawiera carp(), to carp() zgłosi błąd jako występujący w
32 miejscu, z którego została wywołana funkcja Foo(), a nie carp().
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36
37 %build
38 %{__perl} Makefile.PL \
39         INSTALLDIRS=vendor
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc ChangeLog README
54 %{perl_vendorlib}/Devel/Carp.pm
55 %{_mandir}/man3/*
This page took 0.175018 seconds and 3 git commands to generate.