]> git.pld-linux.org Git - packages/perl-Class-ParamParser.git/blame - perl-Class-ParamParser.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Class-ParamParser.git] / perl-Class-ParamParser.spec
CommitLineData
1d260850
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
8aee7b8b 4
ffc91849 5%define pdir Class
6%define pnam ParamParser
1d260850 7Summary: Class::ParamParser - complex parameter list parsing
13a5b0e7 8Summary(pl.UTF-8): Class::ParamParser - analizowanie złożonych list parametrów
1d260850
JB
9Name: perl-Class-ParamParser
10Version: 1.041
5a538a25 11Release: 2
1d260850 12# same as perl
a9ffc1fe 13License: GPL v1+ or Artistic
1d260850
JB
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: 06ea167ae52c80629249244f93fbccbd
8aee7b8b 17URL: http://search.cpan.org/dist/Class-ParamParser/
1d260850
JB
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24This Perl 5 object class implements two methods which inherited
25classes can use to tidy up parameter lists for their own methods and
26functions. The two methods differ in that one returns a HASH ref
27containing named parameters and the other returns an ARRAY ref
28containing positional parameters.
29
d798f268
JR
30%description -l pl.UTF-8
31Ta klasa obiektu Perla 5 implementuje dwie metody, z których
32odziedziczone klasy mogą korzystać do oczyszczenia list parametrów dla
33ich własnych metod i funkcji. Metody różnią się tym, że jedna zwraca
34referencję do hasza zawierającego parametry nazwane, a druga zwraca
35referencję do tablicy zawierającej parametry pozycyjne.
1d260850
JB
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
49rm -rf $RPM_BUILD_ROOT
50
51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -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.097725 seconds and 4 git commands to generate.