64 lines
1.7 KiB
RPMSpec
64 lines
1.7 KiB
RPMSpec
Name: perl-Algorithm-Diff
|
|
Version: 1.1901
|
|
Release: 1%{?dist}
|
|
Summary: Algorithm::Diff Perl module
|
|
License: GPL or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Algorithm-Diff/
|
|
Source0: http://www.cpan.org/modules/by-module/Algorithm/Algorithm-Diff-1.1901.zip
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%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}
|
|
chmod 644 *.pl
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
|
|
|
|
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
|
|
|
|
rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Algorithm/*.pl
|
|
|
|
perldoc -t perlgpl > COPYING
|
|
perldoc -t perlartistic > Artistic
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README COPYING Artistic *.pl
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Mon Sep 05 2005 Steven Pritchard <steve@kspei.com> 1.1901-1
|
|
- Updated to 1.1901.
|
|
|
|
* Sat Sep 03 2005 Steven Pritchard <steve@kspei.com> 1.15-2
|
|
- Move example files to %%doc.
|
|
|
|
* Sat Aug 27 2005 Steven Pritchard <steve@kspei.com> 1.15-1
|
|
- Specfile autogenerated.
|