diff --git a/.cvsignore b/.cvsignore index e69de29..702914e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Text-Diff-0.35.tar.gz diff --git a/perl-Text-Diff.spec b/perl-Text-Diff.spec new file mode 100644 index 0000000..9b447d5 --- /dev/null +++ b/perl-Text-Diff.spec @@ -0,0 +1,54 @@ +Name: perl-Text-Diff +Version: 0.35 +Release: 2%{?dist} +Summary: Text::Diff Perl module +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Text-Diff/ +Source0: http://www.cpan.org/modules/by-module/Text/Text-Diff-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(Algorithm::Diff) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Text::Diff - Perform diffs on files and record sets. + +%prep +%setup -q -n Text-Diff-%{version} + +%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/* + +perldoc -t perlgpl > COPYING +perldoc -t perlartistic > Artistic + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes COPYING Artistic +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Sep 16 2005 Steven Pritchard 0.35-2 +- Minor spec cleanup. + +* Sat Aug 27 2005 Steven Pritchard 0.35-1 +- Specfile autogenerated. diff --git a/sources b/sources index e69de29..fbd4992 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4931662ea353384dec2a54a71b26ee8c Text-Diff-0.35.tar.gz