]> git.pld-linux.org Git - packages/perl-Test-File.git/blame - perl-Test-File.spec
- macros for perl autodeps
[packages/perl-Test-File.git] / perl-Test-File.spec
CommitLineData
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
7Summary: Test::File - test file attributes
8Summary(pl.UTF-8): Test::File - testowanie atrybutów plików
9Name: perl-Test-File
10Version: 1.443
11Release: 1
12# "same as perl itself, under the Atristic License 2.0"
13License: Artistic v2.0
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: ec8c6f6e940b454e110aaaa663fc761c
17Patch0: %{name}-foreign-tests.patch
18URL: https://metacpan.org/release/Test-File
19BuildRequires: perl-ExtUtils-MakeMaker >= 6.64
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
4aa8745a 22BuildRequires: rpmbuild(macros) >= 1.745
cbbbc714
JB
23%if %{with tests}
24BuildRequires: perl(Test::Builder) >= 1.001006
25BuildRequires: perl-Test-Builder-Tester >= 1.04
26BuildRequires: perl-Test-Simple >= 0.95
27BuildRequires: perl-Test-utf8
28%endif
29Requires: perl(Test::Builder) >= 1.001006
30BuildArch: noarch
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34This modules provides a collection of test utilities for file
35attributes.
36
37%description -l pl.UTF-8
38Ten 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
52rm -rf $RPM_BUILD_ROOT
53
54%{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
56
57install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59
60%clean
61rm -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}
This page took 0.193642 seconds and 4 git commands to generate.