diff --git a/.gitignore b/.gitignore index 824bf58..8e65694 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ HTML-FormatText-WithLinks-0.09.tar.gz /HTML-FormatText-WithLinks-0.11.tar.gz /HTML-FormatText-WithLinks-0.12.tar.gz /HTML-FormatText-WithLinks-0.14.tar.gz +/HTML-FormatText-WithLinks-0.15.tar.gz diff --git a/perl-HTML-FormatText-WithLinks.spec b/perl-HTML-FormatText-WithLinks.spec index cc2f74b..89dfadf 100644 --- a/perl-HTML-FormatText-WithLinks.spec +++ b/perl-HTML-FormatText-WithLinks.spec @@ -1,23 +1,31 @@ Name: perl-HTML-FormatText-WithLinks -Version: 0.14 -Release: 11%{?dist} +Version: 0.15 +Release: 1%{?dist} Summary: HTML to text conversion with links as footnotes Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/HTML-FormatText-WithLinks Source0: http://search.cpan.org/CPAN/authors/id/S/ST/STRUAN/HTML-FormatText-WithLinks-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(HTML::FormatText) perl(HTML::TreeBuilder) +# Run-time +BuildRequires: perl(base) +BuildRequires: perl(HTML::FormatText) +BuildRequires: perl(HTML::TreeBuilder) +BuildRequires: perl(strict) BuildRequires: perl(URI::WithBase) -BuildRequires: perl(Test::MockObject) perl(Test::Pod::Coverage) -BuildRequires: perl(Test::Pod) perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(vars) +# Tests +BuildRequires: perl(Test::More) +# Optional tests +BuildRequires: perl(Test::MockObject) +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 0.08 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) # not picked up automatically since it is called through SUPER -Requires: perl(HTML::FormatText) >= 2 +Requires: perl(HTML::FormatText) >= 2 %description HTML::FormatText::WithLinks takes HTML and turns it into plain text but @@ -27,36 +35,30 @@ to mimic the format of the lynx text based web browser's --dump option. %prep %setup -q -n HTML-FormatText-WithLinks-%{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 +make pure_install DESTDIR=$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+w $RPM_BUILD_ROOT/* - %check make test - -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog +* Tue Feb 10 2015 Jitka Plesnikova - 0.15-1 +- 0.15 bump; Update BRs +- Modernize spec file + * Mon Sep 01 2014 Jitka Plesnikova - 0.14-11 - Perl 5.20 rebuild diff --git a/sources b/sources index cf289d5..9da0610 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -264a1436883d20b81e669c65a1f97367 HTML-FormatText-WithLinks-0.14.tar.gz +e048c41f600895182df327c6ce9b2cc0 HTML-FormatText-WithLinks-0.15.tar.gz