]> git.pld-linux.org Git - packages/perl-Log-Trace.git/blob - perl-Log-Trace.spec
e3ea7b2b61a199a41cff069f32fee69a6f1f29cf
[packages/perl-Log-Trace.git] / perl-Log-Trace.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Log
7 %define pnam    Trace
8 Summary:        Log::Trace - provides a unified approach to tracing
9 Summary(pl.UTF-8):      Log::Trace - dostarcza jednolite podejście do śledzenia
10 Name:           perl-Log-Trace
11 Version:        1.070
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://search.cpan.org/CPAN/authors/id/B/BB/BBC/Log-Trace-%{version}.tar.gz
17 # Source0-md5:  773aefa7539b1857edb3e225cfbc4a22
18 URL:            http://search.cpan.org/dist/Log-Trace/
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 A module to provide a unified approach to tracing. A script can use
26 Log::Trace qw( < mode > ) to set the behaviour of the TRACE function.
27
28 By default, the trace functions are exported to the calling package
29 only. You can export the trace functions to other packages with the
30 Deep option. See "OPTIONS" for more information.
31
32 All exports are in uppercase (to minimise collisions with "real"
33 functions).
34
35 # %description -l pl.UTF-8
36 # TODO
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} pure_install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %{perl_vendorlib}/Log/*.pm
61 %{perl_vendorlib}/Log/Trace
62 %{_mandir}/man3/*
This page took 0.030712 seconds and 2 git commands to generate.