]>
Commit | Line | Data |
---|---|---|
2a55126d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir PPIx | |
6 | %define pnam Regexp | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: PPIx::Regexp - represent a regular expression of some sort | |
9 | Summary(pl.UTF-8): PPIx::Regexp - reprezentacja pewnego rodzaju wyrażenia regularnego | |
10 | Name: perl-PPIx-Regexp | |
da4b3b62 | 11 | Version: 0.025 |
2a55126d JB |
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-authors/id/W/WY/WYANT/PPIx-Regexp-%{version}.tar.gz | |
da4b3b62 | 17 | # Source0-md5: ae7ea4f2996598a046e73055fc54dcac |
2a55126d JB |
18 | URL: http://search.cpan.org/dist/PPIx-Regexp/ |
19 | BuildRequires: perl-Module-Build | |
20 | BuildRequires: perl-devel >= 1:5.8.0 | |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
22 | %if %{with tests} | |
23 | BuildRequires: perl-List-MoreUtils | |
24 | BuildRequires: perl-PPI >= 1.117 | |
25 | BuildRequires: perl-Task-Weaken | |
26 | BuildRequires: perl-Test-Simple >= 0.40 | |
27 | %endif | |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | This package parses regular expressions as they appear in Perl | |
33 | scripts, generating a structure similar to the structure generated by | |
34 | PPI when it parses a Perl script, and navigable in much the same way. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Ten pakiet analizuje wyrażenia regularne w takiej postaci, w jakiej | |
38 | występują w skryptach perlowych, tworząc strukturę podobną do | |
39 | struktury generowanej przez PPI przy analizie skryptu perlowego i | |
40 | dającą się przeglądać w bardzo podobny sposób. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Build.PL \ | |
47 | destdir=$RPM_BUILD_ROOT \ | |
48 | installdirs=vendor | |
49 | ./Build | |
50 | ||
51 | %{?with_tests:./Build test} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | ./Build install | |
57 | ||
58 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
59 | cp -a eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc Changes README | |
67 | %{perl_vendorlib}/PPIx/Regexp.pm | |
68 | %{perl_vendorlib}/PPIx/Regexp | |
69 | %{_mandir}/man3/PPIx::Regexp*.3pm* | |
70 | %{_examplesdir}/%{name}-%{version} |