]>
Commit | Line | Data |
---|---|---|
9dcb70c5 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Test | |
6 | %define pnam Requires | |
9dcb70c5 JB |
7 | Summary: Test::Requires - checks to see if the module can be loaded |
8 | Summary(pl.UTF-8): Test::Requires - sprawdzanie, czy moduł może być załadowany | |
9 | Name: perl-Test-Requires | |
e1dfe4fb | 10 | Version: 0.10 |
9dcb70c5 JB |
11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
e1dfe4fb JB |
15 | Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: 0d5da779609d0c8fa6f796b45ff8c6f3 | |
d28f7091 | 17 | URL: https://metacpan.org/release/Test-Requires |
e1dfe4fb | 18 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.64 |
9dcb70c5 JB |
19 | %{?with_tests:BuildRequires: perl-Test-Simple >= 0.61} |
20 | BuildRequires: perl-devel >= 1:5.8.0 | |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
d28f7091 | 22 | BuildRequires: rpmbuild(macros) >= 1.745 |
9dcb70c5 JB |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Test::Requires checks to see if the module can be loaded. | |
28 | ||
29 | If this fails rather than failing tests this skips all tests. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Test::Requires sprawdza, czy moduł może być załadowany. | |
33 | ||
34 | Jeśli to nie powiedzie się, to zamiast niepowodzeń przy uruchamianiu | |
35 | testów pomijane są wszystkie testy. | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} pure_install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes | |
59 | %{perl_vendorlib}/Test/Requires.pm | |
60 | %{_mandir}/man3/Test::Requires.3pm* |