perl-Test-File/perl-Test-File.spec
2020-08-17 11:14:20 +08:00

53 lines
1.2 KiB
RPMSpec

%global debug_package %{nil}
%bcond_with test
Name: perl-Test-File
Version: 1.44.3
Release: 8
Summary: A Perl module which provides test functions to check file attributes and data
License: Artistic License 2.0 or GPL+
URL: https://metacpan.org/release/Test-File
Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Test-File-1.443.tar.gz
BuildArch: noarch
BuildRequires: make
%if %{with test}
BuildRequires: perl-Test-utf8
%endif
Provides: perl(Test::File) = 1.443
%description
The perl-Test-File package contains the Test::File perl module, which
provides convenience test functions to check file attributes and data
in a Test::More fashion.
%prep
%autosetup -n Test-File-1.443 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build
%install
%make_install
%{_fixperms} -c %{buildroot}
%check
%if %{with test}
make test
%endif
%files
%doc README.pod Changes
%license LICENSE
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::File.3*
%changelog
* Mon Aug 17 2020 lingsheng <lingsheng@huawei.com> - 1.44.3-8
- Fix build fail
* Mon Jan 06 2020 Jiangping Hu <hujp1985@foxmail.com> - 1.44.3-7
- Package init