3 %bcond_without tests # do not perform "make test"
6 %define pnam ValidationCompiler
7 %include /usr/lib/rpm/macros.perl
8 Summary: Params::ValidationCompiler - Build an optimized subroutine parameter validator once, use it forever
9 Name: perl-Params-ValidationCompiler
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Params/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: e654da776110d5e821c43b2f30f03d68
16 URL: http://search.cpan.org/dist/Params-ValidationCompiler/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Eval-Closure
21 BuildRequires: perl-Exception-Class
22 BuildRequires: perl(Test2::Bundle::Extended)
23 BuildRequires: perl(Test2::Plugin::NoWarnings)
24 BuildRequires: perl(Test2::Require::Module)
25 BuildRequires: perl(Test::Without::Module)
26 BuildRequires: perl-Specio >= 0.14
27 BuildRequires: perl-Test-Simple >= 1.302015
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This is very alpha. The module name could change. Everything could
34 change. You have been warned.
36 Create a customized, optimized, non-lobotomized, uncompromised, and thoroughly
37 specialized parameter checking subroutine.
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 #%{perl_vendorlib}/Params/*.pm
65 #%{perl_vendorlib}/Params/ValidationCompiler
67 %{_examplesdir}/%{name}-%{version}