]> git.pld-linux.org Git - packages/perl-B-Hooks-EndOfScope.git/blame - perl-B-Hooks-EndOfScope.spec
- updated to 0.08
[packages/perl-B-Hooks-EndOfScope.git] / perl-B-Hooks-EndOfScope.spec
CommitLineData
e8f4099f 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir B
7%define pnam Hooks-EndOfScope
8Summary: B::Hooks::EndOfScope - Execute code after a scope finished compilation
9#Summary(pl.UTF-8):
10Name: perl-B-Hooks-EndOfScope
c9c48569 11Version: 0.08
e8f4099f 12Release: 1
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/B/%{pdir}-%{pnam}-%{version}.tar.gz
c9c48569 17# Source0-md5: c770f55ce0205bcbb5824e4ec28431fd
e8f4099f 18URL: http://search.cpan.org/dist/B-Hooks-EndOfScope/
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl(Variable::Magic) >= 0.27
23BuildRequires: perl-Sub-Exporter
24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29This module allows you to execute code when perl finished compiling the
30surrounding scope.
31
32# %description -l pl.UTF-8
33# TODO
34
35%prep
36%setup -q -n %{pdir}-%{pnam}-%{version}
37
38%build
39%{__perl} Makefile.PL \
40 --skipdeps \
41 INSTALLDIRS=vendor
42%{__make}
43
44%{?with_tests:%{__make} test}
45
46%install
47rm -rf $RPM_BUILD_ROOT
48
49%{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc Changes
58%{perl_vendorlib}/B/Hooks
59%{_mandir}/man3/*
This page took 0.134564 seconds and 4 git commands to generate.