]> git.pld-linux.org Git - packages/perl-PPIx-Utilities.git/blob - perl-PPIx-Utilities.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-PPIx-Utilities.git] / perl-PPIx-Utilities.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    PPIx
6 %define         pnam    Utilities
7 Summary:        PPIx::Utilities - extensions to PPI
8 Summary(pl.UTF-8):      PPIx::Utilities - rozszerzenia do PPI
9 Name:           perl-PPIx-Utilities
10 Version:        1.001000
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-authors/id/E/EL/ELLIOTJS/PPIx-Utilities-%{version}.tar.gz
16 # Source0-md5:  4dc113960205173cf114ae3bdaa37f61
17 URL:            http://search.cpan.org/dist/PPIx-Utilities/
18 BuildRequires:  perl-Module-Build
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-Exception-Class
23 BuildRequires:  perl-PPI >= 1.208
24 BuildRequires:  perl-Readonly
25 BuildRequires:  perl-Task-Weaken
26 BuildRequires:  perl-Test-Deep
27 %endif
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 This is a collection of functions for dealing with PPI objects, many
33 of which originated in Perl::Critic. They are organized into modules
34 by the kind of PPI class they relate to, by replacing the "PPI" at the
35 front of the module name with "PPIx::Utilities", e.g. functionality
36 related to PPI::Nodes is in PPIx::Utilities::Node.
37
38 %description -l pl.UTF-8
39 Ten pakiet to zestaw funkcji operujących na obiektach PPI, z których
40 wiele pochodzi z modułu Perl::Critic. Funkcje są zorganizowane w
41 moduły według klas PPI, do których się odnoszą, z początkiem "PPI"
42 zastąpionym przez "PPIx::Utilities", np. funkcje związane z PPI::Nodes
43 znajdują się w PPIx::Utilities::Node.
44
45 %prep
46 %setup -q -n %{pdir}-%{pnam}-%{version}
47
48 %build
49 %{__perl} Build.PL \
50         destdir=$RPM_BUILD_ROOT \
51         installdirs=vendor
52 ./Build
53
54 %{?with_tests:./Build test}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 ./Build install
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/Utilities.pm
68 %{perl_vendorlib}/PPIx/Utilities
69 %{_mandir}/man3/PPIx::Utilities*.3pm*
This page took 0.125336 seconds and 4 git commands to generate.