55 lines
1.4 KiB
RPMSpec
55 lines
1.4 KiB
RPMSpec
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 <steve@kspei.com> 0.35-2
|
|
- Minor spec cleanup.
|
|
|
|
* Sat Aug 27 2005 Steven Pritchard <steve@kspei.com> 0.35-1
|
|
- Specfile autogenerated.
|