perl-Test-File/perl-Test-File.spec

53 lines
1.2 KiB
RPMSpec
Raw Normal View History

2020-01-13 10:31:03 +08:00
%global debug_package %{nil}
%bcond_with test
Name: perl-Test-File
Version: 1.44.3
2020-08-17 11:14:20 +08:00
Release: 8
2020-01-13 10:31:03 +08:00
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
2020-08-17 11:14:20 +08:00
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
2020-01-13 10:31:03 +08:00
%make_build
%install
%make_install
2020-08-17 11:14:20 +08:00
%{_fixperms} -c %{buildroot}
2020-01-13 10:31:03 +08:00
%check
%if %{with test}
make test
%endif
%files
%doc README.pod Changes
%license LICENSE
2020-08-17 11:14:20 +08:00
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::File.3*
2020-01-13 10:31:03 +08:00
%changelog
2020-08-17 11:14:20 +08:00
* Mon Aug 17 2020 lingsheng <lingsheng@huawei.com> - 1.44.3-8
- Fix build fail
2020-01-13 10:31:03 +08:00
* Mon Jan 06 2020 Jiangping Hu <hujp1985@foxmail.com> - 1.44.3-7
- Package init