Package init
This commit is contained in:
commit
f439d6a9cc
BIN
Text-Diff-1.45.tar.gz
Normal file
BIN
Text-Diff-1.45.tar.gz
Normal file
Binary file not shown.
55
perl-Text-Diff.spec
Normal file
55
perl-Text-Diff.spec
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
Name: perl-Text-Diff
|
||||||
|
Version: 1.45
|
||||||
|
Release: 6
|
||||||
|
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}
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%license LICENSE
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
%files help
|
||||||
|
%doc Changes README
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Sep 23 2019 shenyangyang<shenyangyang4@huawei.com> - 1.45-2
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:revise requires of perl
|
||||||
|
|
||||||
|
* Fri Aug 30 2019 hexiaowen <hexiaowen@huawei.com> - 1.45-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user