]>
Commit | Line | Data |
---|---|---|
76c18aac | 1 | # |
2 | # Conditional build: | |
bf45f463 | 3 | %bcond_without tests # do not perform "make test" |
d567f8f0 | 4 | |
294018d2 | 5 | %define pdir Test |
6 | %define pnam ManyParams | |
d567f8f0 | 7 | %include /usr/lib/rpm/macros.perl |
76c18aac | 8 | Summary: Test::ManyParams - module to test many params as one test |
053e6b9e | 9 | Summary(pl.UTF-8): Test::ManyParams - moduł do testowania wielu parametrów podczas jednego testu |
76c18aac | 10 | Name: perl-Test-ManyParams |
3b4267af | 11 | Version: 0.10 |
c95d78e8 | 12 | Release: 3 |
2f49c52d | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
76c18aac | 15 | Group: Development/Languages/Perl |
be79b3fa | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
3b4267af | 17 | # Source0-md5: ba8534916c50206985beda77720c671b |
d567f8f0 | 18 | URL: http://search.cpan.org/dist/Test-ManyParams/ |
c0dd1cbd | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
d567f8f0 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
bf45f463 | 21 | %if %{with tests} |
daa4a75d | 22 | BuildRequires: perl-Readonly |
16bb09b2 JB |
23 | BuildRequires: perl-Set-CrossProduct |
24 | BuildRequires: perl-Test-Builder-Tester | |
3b4267af | 25 | BuildRequires: perl-Test-Differences |
76c18aac | 26 | BuildRequires: perl-Test-Exception |
27 | BuildRequires: perl-Test-Simple | |
76c18aac | 28 | %endif |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
16bb09b2 JB |
33 | This module helps to tests many parameters at once. In general, it |
34 | calls the given subroutine with every combination of the given | |
35 | parameter values. The combinations are created with building a cross | |
36 | product. | |
76c18aac | 37 | |
742c2f47 JR |
38 | %description -l pl.UTF-8 |
39 | Ten moduł jest pomocny przy testowania wielu parametrów naraz. | |
40 | Ogólnie, wywołuje on podaną funkcję we wszystkich kombinacjach | |
41 | podanych wartości parametrów. Kombinacje są tworzone poprzez iloczyn | |
42 | kartezjański. | |
76c18aac | 43 | |
44 | %prep | |
45 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
46 | ||
47 | %build | |
9c8992ce | 48 | %{__perl} Makefile.PL \ |
8a9de3be | 49 | INSTALLDIRS=vendor |
76c18aac | 50 | %{__make} |
16bb09b2 | 51 | |
bf45f463 | 52 | %{?with_tests:%{__make} test} |
76c18aac | 53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
bf45f463 | 57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT | |
76c18aac | 59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
9c8992ce | 65 | %{perl_vendorlib}/%{pdir}/*.pm |
76c18aac | 66 | %{_mandir}/man3/* |