3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Params::Validate - validate method/function parameters
9 Summary(pl): Params::Validate - sprawdzanie poprawno¶ci parametrów funkcji/metody
10 Name: perl-Params-Validate
14 License: GPL or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: c0e31f95ac8065c52a3cc18ad7be03f0
19 BuildRequires: perl-Attribute-Handlers
20 BuildRequires: perl-Test-Simple
22 BuildRequires: perl-devel >= 5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The Params::Validate module allows you to validate method or function
28 call parameters to an arbitrary level of specificity. At the simplest
29 level, it is capable of validating the required parameters were given
30 and that no unspecified additional parameters were passed in.
32 It is also capable of determining that a parameter is of a specific
33 type, that it is an object of a certain class hierarchy, that it
34 possesses certain methods, or applying validation callbacks to
38 Modu³ Params::Validate pozwala na sprawdzanie poprawno¶ci parametrów,
39 z jakimi wywo³ana zosta³a funkcja lub metoda, na dowolnym poziomie
40 szczegó³owo¶ci. W najprostrzym przypadku mo¿liwe jest sprawdzenie,
41 czy podane zosta³y parametry wymagane i czy nie podano dodatkowych,
44 Potrafi tak¿e okre¶liæ czy parametr jest konkretnego typu, czy jest
45 obiektem danej hierarchii, czy posiada zadane metody, lub przypisaæ
46 argumentom callbacki (a, i tak wszyscy wiedz±, o co chodzi... ;-> )
50 %setup -q -n %{pdir}-%{pnam}-%{version}
53 %{__perl} Makefile.PL \
56 OPTIMIZE="%{rpmcflags}"
58 %{?with_tests:%{__make} test}
61 rm -rf $RPM_BUILD_ROOT
64 DESTDIR=$RPM_BUILD_ROOT
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %dir %{perl_vendorarch}/auto/Params
73 %dir %{perl_vendorarch}/auto/Params/Validate
74 %{perl_vendorarch}/auto/Params/Validate/*.bs
75 %attr(755,root,root) %{perl_vendorarch}/auto/Params/Validate/*.so
76 %dir %{perl_vendorarch}/Attribute
77 %dir %{perl_vendorarch}/Attribute/Params
78 %{perl_vendorarch}/Attribute/Params/*.pm
79 %dir %{perl_vendorarch}/Params
80 %{perl_vendorarch}/Params/*.pm