]> git.pld-linux.org Git - packages/perl-PadWalker.git/blob - perl-PadWalker.spec
c170350d57c015c195fb8ba9b1e5dca501c1f781
[packages/perl-PadWalker.git] / perl-PadWalker.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    PadWalker
7 Summary:        PadWalker - play with other peoples' lexical variables
8 Summary(pl.UTF-8):      PadWalker - igranie z cudzymi zmiennymi leksykalnymi
9 Name:           perl-PadWalker
10 Version:        1.99
11 Release:        2
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-authors/id/R/RO/ROBIN/%{pdir}-%{version}.tar.gz
16 # Source0-md5:  76025e0bb1366ef41bd851c31b7e9a42
17 URL:            http://search.cpan.org/dist/PadWalker/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 PadWalker is a Perl module which allows you to inspect (and even
24 change!) lexical variables in any subroutine which called you. It will
25 only show those variables which are in scope at the point of the call.
26
27 %description -l pl.UTF-8
28 PadWalker jest modułem Perla umożliwiającym przeglądanie (a nawet
29 modyfikacje!) zmiennych leksykalnych w dowolnej wywołanej funkcji.
30 Pokazuje on tylko te zmienne, których zasięg obejmuje miejsce
31 wywołania.
32
33 %prep
34 %setup -q -n %{pdir}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make} \
40         CC="%{__cc}" \
41         OPTIMIZE="%{rpmcflags}"
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc Changes README
57 %{perl_vendorarch}/*.pm
58 %dir %{perl_vendorarch}/auto/%{pdir}
59 %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/*.so
60 %{_mandir}/man3/*
This page took 0.043642 seconds and 2 git commands to generate.