diff --git a/.cvsignore b/.cvsignore index e69de29..95e99ab 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Algorithm-Diff-1.1901.zip diff --git a/perl-Algorithm-Diff.spec b/perl-Algorithm-Diff.spec new file mode 100644 index 0000000..17931ea --- /dev/null +++ b/perl-Algorithm-Diff.spec @@ -0,0 +1,63 @@ +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 1.1901-1 +- Updated to 1.1901. + +* Sat Sep 03 2005 Steven Pritchard 1.15-2 +- Move example files to %%doc. + +* Sat Aug 27 2005 Steven Pritchard 1.15-1 +- Specfile autogenerated. diff --git a/sources b/sources index e69de29..16bff84 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a4f8625182c00847098b05e18268bfb2 Algorithm-Diff-1.1901.zip