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

61 lines
1.7 KiB
RPMSpec
Raw Normal View History

2022-11-02 14:29:13 +08:00
Name: perl-Test-File-Contents
Version: 0.242
2022-11-02 14:29:13 +08:00
Release: 1
Summary: Test routines for examining the contents of files
License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-File-Contents
Source0: https://www.cpan.org/modules/by-module/Test/Test-File-Contents-%{version}.tar.gz
2022-11-02 14:29:13 +08:00
BuildArch: noarch
# Build
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(Module::Build)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::Builder) >= 0.70
BuildRequires: perl(Text::Diff) >= 0.35
# Tests only
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::Builder::Tester::Color)
BuildRequires: perl(Test::More)
BuildRequires: perl(utf8)
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(Test::Builder) >= 0.70
Requires: perl(Text::Diff) >= 0.35
%description
Test routines for examining the contents of files.
%prep
%setup -q -n Test-File-Contents-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
2022-11-02 14:29:13 +08:00
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
2022-11-02 14:29:13 +08:00
%check
make test
2022-11-02 14:29:13 +08:00
%files
%doc Changes README
%{perl_vendorlib}/*
2022-11-02 14:29:13 +08:00
%{_mandir}/man3/*
%changelog
* Mon Feb 05 2024 woody2918 <wudi1@uniontech.com> 0.242-1
- update version to 0.242
- Corrected test dependencies
- Packaging fix to stop installing boilerplate.pl
2022-11-02 14:29:13 +08:00
* Wed Nov 02 2022 wangziliang <wangziliang@kylinos.cn> - 0.23-1
- Package init