|
|
40b3068 |
Name: perl-HTML-Scrubber
|
|
|
40b3068 |
Version: 0.08
|
|
|
70ed8f7 |
Release: 11%{?dist}
|
|
|
40b3068 |
Summary: Library for scrubbing/sanitizing html
|
|
|
40b3068 |
|
|
|
40b3068 |
Group: Development/Libraries
|
|
|
6f25029 |
License: GPL+ or Artistic
|
|
|
40b3068 |
URL: http://search.cpan.org/dist/HTML-Scrubber/
|
|
|
40b3068 |
Source0: http://www.cpan.org/authors/id/P/PO/PODMASTER/HTML-Scrubber-%{version}.tar.gz
|
|
|
40b3068 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
40b3068 |
|
|
|
40b3068 |
BuildArch: noarch
|
|
|
6f25029 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
8e63939 |
BuildRequires: perl(Test::More)
|
|
|
40b3068 |
BuildRequires: perl(HTML::Parser)
|
|
|
27312a5 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
40b3068 |
|
|
|
40b3068 |
%description
|
|
|
40b3068 |
If you wanna "scrub" or "sanitize" html input in a reliable an flexible
|
|
|
40b3068 |
fashion, then this module is for you.
|
|
|
40b3068 |
I wasn't satisfied with HTML::Sanitizer because it is based on
|
|
|
40b3068 |
HTML::TreeBuilder, so I thought I'd write something similar that works
|
|
|
40b3068 |
directly with HTML::Parser.
|
|
|
40b3068 |
|
|
|
40b3068 |
|
|
|
40b3068 |
%prep
|
|
|
40b3068 |
%setup -q -n HTML-Scrubber-%{version}
|
|
|
40b3068 |
%{__perl} -pi -e 's/\r\n/\n/' Changes LICENSE README Scrubber.pm
|
|
|
40b3068 |
|
|
|
40b3068 |
|
|
|
40b3068 |
%build
|
|
|
40b3068 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
40b3068 |
make %{?_smp_mflags}
|
|
|
40b3068 |
|
|
|
40b3068 |
|
|
|
40b3068 |
%install
|
|
|
40b3068 |
rm -rf $RPM_BUILD_ROOT
|
|
|
40b3068 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
40b3068 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
40b3068 |
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
40b3068 |
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
40b3068 |
|
|
|
40b3068 |
|
|
|
40b3068 |
%check
|
|
|
40b3068 |
make test
|
|
|
40b3068 |
|
|
|
40b3068 |
|
|
|
40b3068 |
%clean
|
|
|
40b3068 |
rm -rf $RPM_BUILD_ROOT
|
|
|
40b3068 |
|
|
|
40b3068 |
|
|
|
40b3068 |
%files
|
|
|
40b3068 |
%defattr(-,root,root,-)
|
|
|
40b3068 |
%doc Changes LICENSE README
|
|
|
27312a5 |
%{perl_vendorlib}/HTML/
|
|
|
34e8724 |
%{_mandir}/man3/*.3pm*
|
|
|
40b3068 |
|
|
|
40b3068 |
|
|
|
40b3068 |
%changelog
|
|
|
70ed8f7 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-11
|
|
|
70ed8f7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
70ed8f7 |
|
|
|
9b30b27 |
* Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.08-10
|
|
|
9b30b27 |
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
9b30b27 |
|
|
|
9f08ae9 |
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.08-9
|
|
|
9f08ae9 |
- Mass rebuild with perl-5.12.0
|
|
|
9f08ae9 |
|
|
|
baf5ee5 |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.08-8
|
|
|
baf5ee5 |
- rebuild against perl 5.10.1
|
|
|
baf5ee5 |
|
|
|
d7e0c0a |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-7
|
|
|
d7e0c0a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
d7e0c0a |
|
|
|
3489bcc |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-6
|
|
|
3489bcc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
3489bcc |
|
|
|
eabcdf2 |
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.08-5.2
|
|
|
eabcdf2 |
Rebuild for new perl
|
|
|
eabcdf2 |
|
|
|
8e63939 |
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.08-4.2
|
|
|
8e63939 |
- add BR: perl(Test::More)
|
|
|
8e63939 |
|
|
|
6f25029 |
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.08-4.1
|
|
|
6f25029 |
- correct license tag
|
|
|
6f25029 |
- add BR: perl(ExtUtils::MakeMaker)
|
|
|
6f25029 |
|
|
|
34e8724 |
* Fri Sep 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.08-4
|
|
|
34e8724 |
- Rebuild for FC6.
|
|
|
34e8724 |
|
|
|
27312a5 |
* Sat Feb 18 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.08-3
|
|
|
27312a5 |
- Rebuild for FC5 (perl 5.8.8).
|
|
|
27312a5 |
|
|
|
40b3068 |
* Thu Aug 11 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.08-2
|
|
|
40b3068 |
- Disttag.
|
|
|
40b3068 |
|
|
|
40b3068 |
* Wed Mar 23 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.08-1
|
|
|
40b3068 |
- First build.
|