]>
Commit | Line | Data |
---|---|---|
8e6dab94 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4d739207 | 4 | |
8e6dab94 ER |
5 | %define pdir Log |
6 | %define pnam TraceMessages | |
4d739207 | 7 | %include /usr/lib/rpm/macros.perl |
8e6dab94 | 8 | Summary: Log::TraceMessages - Perl extension for trace messages used in debugging |
1815da54 | 9 | Summary(pl.UTF-8): Log::TraceMessages - rozszerzenie Perla do śledzenia komunikatów |
8e6dab94 ER |
10 | Name: perl-Log-TraceMessages |
11 | Version: 1.4 | |
1785431d | 12 | Release: 2 |
8e6dab94 ER |
13 | # same as perl (REMOVE THIS LINE IF NOT TRUE) |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 77687c9858a476628f0299cf4f29c727 | |
4d739207 | 18 | URL: http://search.cpan.org/dist/Log-TraceMessages/ |
1d8a2089 | 19 | BuildRequires: perl-HTML-FromText |
62113bed | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
8e6dab94 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
8e6dab94 ER |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | This module is a slightly better way to put trace statements into your | |
27 | code than just calling print(). It provides an easy way to turn trace | |
28 | on and off for particular sections of code without having to comment | |
29 | out bits of source. | |
30 | ||
4f860a34 JR |
31 | %description -l pl.UTF-8 |
32 | Ten moduł to nieco lepszy sposób umieszczania instrukcji do śledzenia | |
33 | we własnym kodzie niż zwykłe wywoływanie print(). Udostępnia on łatwy | |
34 | sposób włączania i wyłączania śledzenia dla różnych sekcji kodu bez | |
35 | potrzeby zamiany na komentarze kawałków kodu źródłowego. | |
62113bed | 36 | |
8e6dab94 ER |
37 | %prep |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} pure_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 README | |
59 | %{perl_vendorlib}/Log/*.pm | |
60 | %dir %{perl_vendorlib}/auto/Log | |
61 | %dir %{perl_vendorlib}/auto/Log/TraceMessages | |
62 | %{perl_vendorlib}/auto/Log/TraceMessages/autosplit.ix | |
63 | %{_mandir}/man3/* |