]>
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 | |
10ab1493 | 9 | Summary(pl.UTF-8): B::Keywords - lista zarezerwowanych słów kluczowych i nazw symboli |
d7e804e8 | 10 | Name: perl-B-Keywords |
b86e7286 | 11 | Version: 1.15 |
d7e804e8 | 12 | Release: 1 |
13 | License: GPL v2 or Artistic | |
14 | Group: Development/Languages/Perl | |
b86e7286 JB |
15 | Source0: http://www.cpan.org/modules/by-module/B/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: ec1d4909cc76294fa3a3e279d170e778 | |
d7e804e8 | 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, | |
10ab1493 JB |
25 | @Hashes, @Filehandles, @Symbols, @Functions, and @Barewords. The |
26 | @Symbols array includes the contents of each of @Scalars, @Arrays, | |
27 | @Hashes, and @Filehandles. Similarly, @Barewords adds a few | |
28 | non-function keywords and operators to the @Functions array. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | B::Keywords udostępnia siedem tablic słów kluczowych: @Scalars, | |
32 | @Arrays, @Hashes, @Filehandles, @Symbols, @Functions i @Barewords. | |
33 | Tablica @Symbols obejmuje zawartość każdej z tablic @Scalars, | |
34 | @Arrays, @Hashes i @Filehandles. Podobnie @Barewords dodaje do | |
35 | tablicy @Functions kilka słów kluczowych nie będących funkcjami oraz | |
36 | operatorów. | |
d7e804e8 | 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 README | |
f0b69800 JB |
60 | %{perl_vendorlib}/B/Keywords.pm |
61 | %{_mandir}/man3/B::Keywords.3pm* |