Name: perl-HTML-FormatText-WithLinks-AndTables Version: 0.01 Release: 2%{?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/ Source0: http://www.cpan.org/authors/id/S/SF/SFRYER/HTML-FormatText-WithLinks-AndTables-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch 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 s. This module can in a rudimentary sense do so. The aim was to provide facility to take a simple HTML based email template, and to also convert it to text with the
structure intact for inclusion as "multi-part/alternative" content. Further, it will preserve both the formatting specified by the
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-%{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 -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Sun Jun 26 2011 RĂ¼diger Landmann 0.01-2 - rm duplicate Requires - verify license - clean up spellings in description * Tue Jun 07 2011 Jeff fearn 0.01-1 - Specfile autogenerated by cpanspec 1.78.