perl-Algorithm-Diff/perl-Algorithm-Diff.spec

74 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:11:37 -04:00
%global perl_package_name Algorithm-Diff
Name: perl-%{perl_package_name}
2021-01-27 11:43:13 +08:00
Version: 1.201
2022-10-25 11:35:13 +08:00
Release: 2
Epoch: 1
2019-09-30 11:11:37 -04:00
Summary: Compute `intelligent' differences between two files / lists
License: GPL+ or Artistic
URL: https://metacpan.org/pod/Algorithm::Diff
Source0: https://cpan.metacpan.org/authors/id/T/TY/TYEMQ/%{perl_package_name}-%{version}.tar.gz
BuildArch: noarch
2022-10-25 11:35:13 +08:00
BuildRequires: gcc make
2019-09-30 11:11:37 -04:00
BuildRequires: perl-interpreter perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Carp) perl(Exporter) perl(integer)
BuildRequires: perl(strict) perl(vars)
BuildRequires: perl(Data::Dumper) perl(lib) perl(Test)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp)
%description
This is a module for computing the difference between two files, two strings,
or any other two lists of things. It uses an intelligent algorithm similar to
(or identical to) the one used by the Unix "diff" program. It is guaranteed to
find the *smallest possible* set of differences.
%package_help
%prep
2022-10-25 11:35:13 +08:00
%autosetup -n %{perl_package_name}-%{version} -p0 -p1
2019-09-30 11:11:37 -04:00
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=${RPM_BUILD_ROOT}
find $RPM_BUILD_ROOT -type f -name .packlist -delete
%{_fixperms} -c $RPM_BUILD_ROOT
%check
make test
%files
%defattr(-,root,root)
2021-01-27 11:43:13 +08:00
%doc Changes README
2019-09-30 11:11:37 -04:00
%{perl_vendorlib}/Algorithm
%files help
%{_mandir}/man3/*
%changelog
2022-10-25 11:35:13 +08:00
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 1:1.201-2
- DESC: delete -S git from autosetup, and delete BuildRequires git
2021-01-27 11:43:13 +08:00
* Wed Jan 27 2021 liudabo <liudabo1@huawei.com> - 1.201-1
- upgrade version to 1.201
2022-06-15 14:48:53 +08:00
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.1903-14
2020-01-11 17:25:02 +08:00
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: remove unnecessary files
2019-09-30 11:11:37 -04:00
* Thu Sep 26 2019 shenyangyang<shenyangyang4@huawei.com> - 1.1903-13
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise help package
* Fri Aug 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1903-12
- Package Init