forked from pool/perl-HTML-Scrubber
48 lines
1.1 KiB
RPMSpec
48 lines
1.1 KiB
RPMSpec
|
%define modname HTML-Scrubber
|
||
|
Name: perl-%{modname}
|
||
|
Version: 0.08
|
||
|
Release: 1
|
||
|
Summary: Perl Extension for Scrubbing/Sanitizing HTML
|
||
|
Requires: perl = %{perl_version} perl-HTML-Parser
|
||
|
BuildRequires: perl perl-HTML-Parser
|
||
|
License: GPL/Artistic
|
||
|
Group: Development/Libraries/Perl
|
||
|
Source: %{modname}-%{version}.tar.bz2
|
||
|
BuildRoot: %{_tmppath}/%{name}-root
|
||
|
|
||
|
%description
|
||
|
If you wanna "scrub" or "sanitize" html input in a reliable an flexible
|
||
|
fashion, then this module is for you.
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
D.H. (PodMaster)
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{modname}-%{version}
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||
|
make
|
||
|
make test
|
||
|
|
||
|
%install
|
||
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
%files
|
||
|
%defattr(-, root, root)
|
||
|
%doc Changes LICENSE README
|
||
|
%doc %{_mandir}/man?/*
|
||
|
%{perl_vendorlib}/HTML/Scrubber.pm
|
||
|
%{perl_vendorarch}/auto/HTML/Scrubber
|
||
|
/var/adm/perl-modules/%{name}
|
||
|
|
||
|
%changelog
|
||
|
|
||
|
* Fri Sep 14 2007 - James Oakley <jfunk@funktronics.ca> - 0.08-1
|
||
|
- Initial release
|