2024-01-06 08:31:00 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Algorithm-Diff
|
2024-01-06 08:31:01 +01:00
|
|
|
Epoch: 1
|
|
|
|
Version: 1.201
|
2024-01-06 08:31:00 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 08:31:00 +01:00
|
|
|
Summary: Algorithm::Diff - Computs the difference between two files, two strings, or any other two lists of things
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 08:31:01 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.cpan.org/
|
|
|
|
Source: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Algorithm-Diff-%{version}.tar.gz
|
2024-01-06 08:31:00 +01:00
|
|
|
License: Artistic
|
2024-01-06 08:31:01 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 08:31:00 +01:00
|
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
2024-01-06 08:31:01 +01:00
|
|
|
Requires: perl >= %perl_major_ver
|
2024-01-06 08:31:00 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Algorithm-Diff-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make
|
|
|
|
%make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall_perl
|
|
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
|
|
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
|
|
|
sort -u > .packlist && rm $packlist
|
|
|
|
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
|
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
rm -f .packlist
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:31:01 +01:00
|
|
|
* Sat Oct 21 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.201-1mamba
|
|
|
|
- update to 1.201
|
|
|
|
|
2024-01-06 08:31:00 +01:00
|
|
|
* Sun Dec 21 2014 Automatic Build System <autodist@mambasoft.it> 1.1903-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 08:31:00 +01:00
|
|
|
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1902-3mamba
|
|
|
|
- perl 5.16 mass rebuild
|
|
|
|
|
|
|
|
* Mon Nov 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1902-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Mon Nov 12 2007 Aleph0 <aleph0@openmamba.org> 1.1902-1mamba
|
|
|
|
- package created by autospec
|