]>
Commit | Line | Data |
---|---|---|
d7e804e8 | 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 Keywords | |
8 | Summary: B::Keywords - Lists of reserved barewords and symbol names | |
9 | #Summary(pl.UTF-8): | |
10 | Name: perl-B-Keywords | |
11 | Version: 1.06 | |
12 | Release: 1 | |
13 | License: GPL v2 or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-authors/id/J/JJ/JJORE/B-Keywords-1.06.tar.gz | |
16 | # Source0-md5: 24f311df8a5f0174cc465e1949082db3 | |
17 | URL: http://search.cpan.org/dist/B-Keywords/ | |
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 | B::Keywords supplies seven arrays of keywords: @Scalars, @Arrays, | |
25 | @Hashes, @Filehandles, @Symbols, @Functions, and @Barewords. The @Symbols | |
26 | array includes the contents of each of @Scalars, @Arrays, @Hashes, and | |
27 | @Filehandles. Similarly, @Barewords adds a few non-function keywords | |
28 | and operators to the @Functions array. | |
29 | ||
30 | # %description -l pl.UTF-8 | |
31 | # TODO | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
39 | %{__make} | |
40 | ||
41 | %{?with_tests:%{__make} test} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc Changes README | |
55 | %{perl_vendorlib}/B/*.pm | |
56 | %{_mandir}/man3/* |