]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Devel | |
7 | %define pnam StackTrace | |
8 | Summary: Devel::StackTrace - stack trace and stack trace frame objects | |
9 | Summary(pl.UTF-8): Devel::StackTrace - śledzenie stosu i ramek obiektów | |
10 | Name: perl-Devel-StackTrace | |
11 | Version: 1.30 | |
12 | Release: 1 | |
13 | License: Artistic 2.0 | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Devel/DROLSKY/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: e318d2cb00c5bcba41c93f1e7280ab05 | |
17 | URL: http://search.cpan.org/dist/Devel-StackTrace/ | |
18 | %{?with_tests:BuildRequires: perl-Test-Simple >= 0.46} | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | The Devel::StackTrace module contains two classes, Devel::StackTrace | |
26 | and Devel::StackTraceFrame. The goal of this object is to encapsulate | |
27 | the information that can found through using the caller() function, as | |
28 | well as providing a simple interface to this data. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Moduł Devel::StackTrace zawiera dwie klasy: Devel::StackTrace i | |
32 | Devel::StackTraceFrame. Zadaniem tego obiektu jest obudowanie | |
33 | znalezionej przy użyciu funkcji caller() informacji, oraz | |
34 | udostępnienie prostego interfejsu do tych danych. | |
35 | ||
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | ||
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes LICENSE README | |
59 | %{perl_vendorlib}/Devel/StackTrace.pm | |
60 | %{perl_vendorlib}/Devel/StackTrace | |
61 | %{_mandir}/man3/Devel::StackTrace*.3pm* |