Name: perl-HTML-Scrubber Version: 0.08 Release: 4%{?dist} Summary: Library for scrubbing/sanitizing html Group: Development/Libraries License: GPL or Artistic URL: http://search.cpan.org/dist/HTML-Scrubber/ Source0: http://www.cpan.org/authors/id/P/PO/PODMASTER/HTML-Scrubber-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(HTML::Parser) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description If you wanna "scrub" or "sanitize" html input in a reliable an flexible fashion, then this module is for you. I wasn't satisfied with HTML::Sanitizer because it is based on HTML::TreeBuilder, so I thought I'd write something similar that works directly with HTML::Parser. %prep %setup -q -n HTML-Scrubber-%{version} %{__perl} -pi -e 's/\r\n/\n/' Changes LICENSE README Scrubber.pm %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+w $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes LICENSE README %{perl_vendorlib}/HTML/ %{_mandir}/man3/*.3pm* %changelog * Fri Sep 8 2006 Jose Pedro Oliveira - 0.08-4 - Rebuild for FC6. * Sat Feb 18 2006 Jose Pedro Oliveira - 0.08-3 - Rebuild for FC5 (perl 5.8.8). * Thu Aug 11 2005 Jose Pedro Oliveira - 0.08-2 - Disttag. * Wed Mar 23 2005 Jose Pedro Oliveira - 0.08-1 - First build.