]>
Commit | Line | Data |
---|---|---|
6ca96b6d AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Params | |
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 | |
10 | Version: 0.13 | |
11 | Release: 1 | |
12 | License: artistic_2 | |
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 | |
19 | %if %{with tests} | |
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 | |
28 | %endif | |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | This is very alpha. The module name could change. Everything could | |
34 | change. You have been warned. | |
35 | ||
36 | Create a customized, optimized, non-lobotomized, uncompromised, and thoroughly | |
37 | specialized parameter checking subroutine. | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} Makefile.PL \ | |
44 | INSTALLDIRS=vendor | |
45 | %{__make} | |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} pure_install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
56 | cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc Changes INSTALL | |
a9378c44 AM |
64 | %{perl_vendorlib}/Params/ValidationCompiler.pm |
65 | %{perl_vendorlib}/Params/ValidationCompiler | |
66 | %{_mandir}/man3/Params::ValidationCompiler*.3pm* | |
6ca96b6d | 67 | %{_examplesdir}/%{name}-%{version} |