Package init
This commit is contained in:
commit
f3d4cfbe70
12
Algorithm-Diff-1.1903-provides.patch
Normal file
12
Algorithm-Diff-1.1903-provides.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- lib/Algorithm/DiffOld.pm
|
||||
+++ lib/Algorithm/DiffOld.pm
|
||||
@@ -2,8 +2,7 @@
|
||||
# like versions <= 0.59 used to.
|
||||
# $Revision: 1.3 $
|
||||
|
||||
-package # don't index
|
||||
- Algorithm::DiffOld;
|
||||
+package Algorithm::DiffOld;
|
||||
use strict;
|
||||
use vars qw($VERSION @EXPORT_OK @ISA @EXPORT);
|
||||
use integer; # see below in _replaceNextLargerWith() for mod to make
|
||||
BIN
Algorithm-Diff-1.1903.tar.gz
Normal file
BIN
Algorithm-Diff-1.1903.tar.gz
Normal file
Binary file not shown.
61
perl-Algorithm-Diff.spec
Normal file
61
perl-Algorithm-Diff.spec
Normal file
@ -0,0 +1,61 @@
|
||||
%global perl_package_name Algorithm-Diff
|
||||
Name: perl-%{perl_package_name}
|
||||
Version: 1.1903
|
||||
Release: 13
|
||||
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
|
||||
Patch0: Algorithm-Diff-1.1903-provides.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: gcc git make
|
||||
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
|
||||
%autosetup -n %{perl_package_name}-%{version} -S git -p0
|
||||
|
||||
%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)
|
||||
%doc Changes README *.pl
|
||||
%{perl_vendorlib}/Algorithm
|
||||
|
||||
%files help
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user