]>
Commit | Line | Data |
---|---|---|
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 | |
8 | Summary: B::Hooks::EndOfScope - Execute code after a scope finished compilation | |
9 | #Summary(pl.UTF-8): | |
10 | Name: perl-B-Hooks-EndOfScope | |
c9c48569 | 11 | Version: 0.08 |
e8f4099f | 12 | Release: 1 |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/B/%{pdir}-%{pnam}-%{version}.tar.gz | |
c9c48569 | 17 | # Source0-md5: c770f55ce0205bcbb5824e4ec28431fd |
e8f4099f | 18 | URL: http://search.cpan.org/dist/B-Hooks-EndOfScope/ |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(Variable::Magic) >= 0.27 | |
23 | BuildRequires: perl-Sub-Exporter | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | This module allows you to execute code when perl finished compiling the | |
30 | surrounding 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 | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} pure_install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes | |
58 | %{perl_vendorlib}/B/Hooks | |
59 | %{_mandir}/man3/* |