]>
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 | |
b6d21c30 | 9 | Summary(pl.UTF-8): Params::ValidationCompiler - tworzenie zoptymalizowanego walidatora parametrów raz do wielokrotnego użycia |
6ca96b6d | 10 | Name: perl-Params-ValidationCompiler |
b6d21c30 | 11 | Version: 0.19 |
6ca96b6d | 12 | Release: 1 |
b6d21c30 | 13 | License: Artistic v2.0 |
6ca96b6d AM |
14 | Group: Development/Languages/Perl |
15 | Source0: http://www.cpan.org/modules/by-module/Params/%{pdir}-%{pnam}-%{version}.tar.gz | |
b6d21c30 | 16 | # Source0-md5: cf7ec9a1899013ed1b4f80ee1817478d |
6ca96b6d AM |
17 | URL: http://search.cpan.org/dist/Params-ValidationCompiler/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Eval-Closure | |
22 | BuildRequires: perl-Exception-Class | |
b6d21c30 | 23 | BuildRequires: perl-Scalar-List-Utils >= 1.29 |
6ca96b6d AM |
24 | BuildRequires: perl-Specio >= 0.14 |
25 | BuildRequires: perl-Test-Simple >= 1.302015 | |
b6d21c30 JB |
26 | BuildRequires: perl-Test-Without-Module |
27 | BuildRequires: perl-Test2-Plugin-NoWarnings | |
28 | BuildRequires: perl-Test2-Suite | |
6ca96b6d AM |
29 | %endif |
30 | BuildArch: noarch | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | This is very alpha. The module name could change. Everything could | |
35 | change. You have been warned. | |
36 | ||
b6d21c30 JB |
37 | Create a customized, optimized, non-lobotomized, uncompromised, and |
38 | thoroughly specialized parameter checking subroutine. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Ten moduł jest w głębokim stanie alfa - nazwa może się zmienić; | |
42 | wszystko może się zmienić. To ostrzeżenie. | |
43 | ||
44 | Tworzenie dostosowanych, zoptymalizowanych, bezkompromisowych i | |
45 | szczegółowo wyspecjalizowanych procedur sprawdzających parametry. | |
6ca96b6d AM |
46 | |
47 | %prep | |
48 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
49 | ||
50 | %build | |
51 | %{__perl} Makefile.PL \ | |
52 | INSTALLDIRS=vendor | |
53 | %{__make} | |
54 | ||
55 | %{?with_tests:%{__make} test} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} pure_install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
64 | cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
b6d21c30 | 71 | %doc Changes |
a9378c44 AM |
72 | %{perl_vendorlib}/Params/ValidationCompiler.pm |
73 | %{perl_vendorlib}/Params/ValidationCompiler | |
74 | %{_mandir}/man3/Params::ValidationCompiler*.3pm* | |
6ca96b6d | 75 | %{_examplesdir}/%{name}-%{version} |