]> git.pld-linux.org Git - packages/perl-Class-ParamParser.git/blob - perl-Class-ParamParser.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Class-ParamParser.git] / perl-Class-ParamParser.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Class
6 %define         pnam    ParamParser
7 Summary:        Class::ParamParser - complex parameter list parsing
8 Summary(pl.UTF-8):      Class::ParamParser - analizowanie złożonych list parametrów
9 Name:           perl-Class-ParamParser
10 Version:        1.041
11 Release:        2
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  06ea167ae52c80629249244f93fbccbd
17 URL:            http://search.cpan.org/dist/Class-ParamParser/
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 This Perl 5 object class implements two methods which inherited
25 classes can use to tidy up parameter lists for their own methods and
26 functions. The two methods differ in that one returns a HASH ref
27 containing named parameters and the other returns an ARRAY ref
28 containing positional parameters.
29
30 %description -l pl.UTF-8
31 Ta klasa obiektu Perla 5 implementuje dwie metody, z których
32 odziedziczone klasy mogą korzystać do oczyszczenia list parametrów dla
33 ich własnych metod i funkcji. Metody różnią się tym, że jedna zwraca
34 referencję do hasza zawierającego parametry nazwane, a druga zwraca
35 referencję do tablicy zawierającej parametry pozycyjne.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor
43
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 ChangeLog ReadMe
60 %{perl_vendorlib}/Class/ParamParser.pm
61 %{_mandir}/man3/*
This page took 0.103194 seconds and 3 git commands to generate.