]> git.pld-linux.org Git - packages/perl-Hook-LexWrap.git/blob - perl-Hook-LexWrap.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Hook-LexWrap.git] / perl-Hook-LexWrap.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Hook
6 %define         pnam    LexWrap
7 Summary:        Hook::LexWrap - lexically scoped subroutine wrappers
8 Summary(pl.UTF-8):      Hook::LexWrap - obudowanie procedur z zakresem leksykalnym
9 Name:           perl-Hook-LexWrap
10 Version:        0.24
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Hook/CHORNY/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  3c08c1f388c529c532f71422d33913d1
17 URL:            http://search.cpan.org/dist/Hook-LexWrap/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Hook::LexWrap allows you to install a pre- or post-wrapper (or both)
25 around an existing subroutine. Unlike other modules that provide this
26 capacity (e.g. Hook::PreAndPost and Hook::WrapSub), Hook::LexWrap
27 implements wrappers in such a way that the standard caller function
28 works correctly within the wrapped subroutine.
29
30 %description -l pl.UTF-8
31 Hook::LexWrap pozwala na instalowanie obudowań (wrapperów) przed lub
32 po (albo jedno i drugie) istniejącej procedurze. W przeciwieństwie do
33 innych modułów udostępniających te możliwości (np. Hook::PreAndPost
34 czy Hook::WrapSub) Hook::LexWrap implementuje obudowania w taki
35 sposób, że standardowa funkcja wywołująca działa poprawnie wewnątrz
36 obudowanej procedury.
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} 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
60 %{perl_vendorlib}/Hook/LexWrap.pm
61 %{_mandir}/man3/Hook::LexWrap.3pm*
This page took 0.064492 seconds and 4 git commands to generate.