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