]>
Commit | Line | Data |
---|---|---|
cbbbc714 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Test | |
6 | %define pnam File | |
cbbbc714 JB |
7 | Summary: Test::File - test file attributes |
8 | Summary(pl.UTF-8): Test::File - testowanie atrybutów plików | |
9 | Name: perl-Test-File | |
10 | Version: 1.443 | |
11 | Release: 1 | |
12 | # "same as perl itself, under the Atristic License 2.0" | |
13 | License: Artistic v2.0 | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: ec8c6f6e940b454e110aaaa663fc761c | |
17 | Patch0: %{name}-foreign-tests.patch | |
18 | URL: https://metacpan.org/release/Test-File | |
19 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.64 | |
20 | BuildRequires: perl-devel >= 1:5.8.0 | |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
4aa8745a | 22 | BuildRequires: rpmbuild(macros) >= 1.745 |
cbbbc714 JB |
23 | %if %{with tests} |
24 | BuildRequires: perl(Test::Builder) >= 1.001006 | |
25 | BuildRequires: perl-Test-Builder-Tester >= 1.04 | |
26 | BuildRequires: perl-Test-Simple >= 0.95 | |
27 | BuildRequires: perl-Test-utf8 | |
28 | %endif | |
29 | Requires: perl(Test::Builder) >= 1.001006 | |
30 | BuildArch: noarch | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | This modules provides a collection of test utilities for file | |
35 | attributes. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Ten moduł udostępnia zestaw narzędzi testowych dla atrybutów plików. | |
39 | ||
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | %patch0 -p1 | |
43 | ||
44 | %build | |
45 | %{__perl} Makefile.PL \ | |
46 | INSTALLDIRS=vendor | |
47 | %{__make} | |
48 | ||
49 | %{?with_tests:%{__make} test} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} pure_install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
58 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc Changes | |
66 | %{perl_vendorlib}/Test/File.pm | |
67 | %{_mandir}/man3/Test::File.3pm* | |
68 | %{_examplesdir}/%{name}-%{version} |