1.41 bump and some cleanup

This commit is contained in:
Petr Šabata 2012-01-27 12:51:06 +01:00
parent 6c96e72564
commit e28c524f3a
3 changed files with 20 additions and 20 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
Text-Diff-1.37.tar.gz
/Text-Diff-1.41.tar.gz

View File

@ -1,16 +1,19 @@
Name: perl-Text-Diff
Version: 1.37
Release: 8%{?dist}
Version: 1.41
Release: 1%{?dist}
Summary: Perform diffs on files and record sets
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Text-Diff/
Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Text-Diff-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Text-Diff-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(Algorithm::Diff) >= 1.19
BuildRequires: perl(constant)
BuildRequires: perl(Algorithm::Diff)
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Exporter)
BuildRequires: perl(IO::File)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -28,32 +31,28 @@ generally slower on larger files.
%setup -q -n Text-Diff-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
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 -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes
%doc Changes LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Fri Jan 27 2012 Petr Šabata <contyk@redhat.com> - 1.41-1
- 1.41 bump, spec modernization and cleanup
- Update Source URL
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.37-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

View File

@ -1 +1 @@
52c1cba785ecfbbca242b57742173665 Text-Diff-1.37.tar.gz
30d56e6dd5551ca16b8e16cc7299dc21 Text-Diff-1.41.tar.gz