perl-Text-Diff/perl-Text-Diff.spec
2019-12-25 16:03:37 +08:00

63 lines
1.5 KiB
RPMSpec

Name: perl-Text-Diff
Version: 1.45
Release: 7
Summary: Perform diffs on files and record sets
License: (GPL+ or Artistic) and (GPLv2+ or Artistic) and MIT
URL: https://metacpan.org/release/Text-Diff
Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/Text-Diff-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
Requires: perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2))
Requires: perl(Algorithm::Diff) >= 1.19
# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Algorithm::Diff\\)$
%description
Text::Diff provides a basic set of services akin to the GNU diff utility.
%prep
%setup -q -n Text-Diff-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
%check
make test
%files
%defattr(-,root,root)
%license LICENSE
%{perl_vendorlib}/*
%package_help
%files help
%doc Changes README
%{_mandir}/man3/*
%changelog
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.45-7
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:change mod of files
* Mon Sep 23 2019 shenyangyang<shenyangyang4@huawei.com> - 1.45-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise requires of perl
* Fri Aug 30 2019 hexiaowen <hexiaowen@huawei.com> - 1.45-5
- Package init