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.UTF-8): Params::Validate - sprawdzanie poprawności parametrów funkcji/metody
10 Name: perl-Params-Validate
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-authors/id/D/DR/DROLSKY/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: b53ff2b9595623aaa4f98d8b31a5a1c2
18 URL: http://search.cpan.org/dist/Params-Validate/
20 BuildRequires: perl-Attribute-Handlers
21 BuildRequires: perl-Test-Simple
22 BuildRequires: perl-Test-Taint
24 BuildRequires: perl-devel >= 1:5.8.0
25 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 The Params::Validate module allows you to validate method or function
30 call parameters to an arbitrary level of specificity. At the simplest
31 level, it is capable of validating the required parameters were given
32 and that no unspecified additional parameters were passed in.
34 It is also capable of determining that a parameter is of a specific
35 type, that it is an object of a certain class hierarchy, that it
36 possesses certain methods, or applying validation callbacks to
39 %description -l pl.UTF-8
40 Moduł Params::Validate pozwala na sprawdzanie poprawności parametrów,
41 z jakimi wywołana została funkcja lub metoda, na dowolnym poziomie
42 szczegółowości. W najprostszym przypadku możliwe jest sprawdzenie,
43 czy podane zostały parametry wymagane i czy nie podano dodatkowych,
46 Potrafi także określić czy parametr jest konkretnego typu, czy jest
47 obiektem danej hierarchii, czy posiada zadane metody, lub przypisać
48 argumentom callbacki (a, i tak wszyscy wiedzą, o co chodzi... ;-> )
52 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL \
59 OPTIMIZE="%{rpmcflags}"
61 %{?with_tests:%{__make} test}
64 rm -rf $RPM_BUILD_ROOT
67 DESTDIR=$RPM_BUILD_ROOT
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %dir %{perl_vendorarch}/auto/Params
76 %dir %{perl_vendorarch}/auto/Params/Validate
77 %{perl_vendorarch}/auto/Params/Validate/*.bs
78 %attr(755,root,root) %{perl_vendorarch}/auto/Params/Validate/*.so
79 %dir %{perl_vendorarch}/Attribute
80 %dir %{perl_vendorarch}/Attribute/Params
81 %{perl_vendorarch}/Attribute/Params/*.pm
82 %dir %{perl_vendorarch}/Params
83 %{perl_vendorarch}/Params/*.pm