Name: perl-HTML-FormatText-WithLinks-AndTables Version: 0.02 Release: 4%{?dist} Summary: Converts HTML to Text with tables in tact License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/HTML-FormatText-WithLinks-AndTables/ BuildArch: noarch Source0: http://www.cpan.org/authors/id/S/SF/SFRYER/HTML-FormatText-WithLinks-AndTables-%{version}.tar.gz Patch0: RT-74392.patch Patch1: col_0_fix.patch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(HTML::FormatText::WithLinks) BuildRequires: perl(HTML::TreeBuilder) BuildRequires: perl(Test::More) Requires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module was inspired by HTML::FormatText::WithLinks which has proven to be a useful "lynx -dump" work-alike. However one frustration was that no other HTML converters I came across had the ability to deal effectively with HTML
tag's "align" attribute, and will also preserve multi-line text inside of a | element provided it is broken
using tags. %prep %setup -q -n HTML-FormatText-WithLinks-AndTables %patch0 -p 1 %patch1 -p 1 %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install 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/* %check make test %files %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Dec 27 2013 Daniel Mach |