forked from pool/perl-HTML-Scrubber
* recreated by cpanspec 1.78.03
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Scrubber?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
2717539822
commit
962ce324d5
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 15:49:03 UTC 2010 - coolo@novell.com
|
||||
|
||||
* recreated by cpanspec 1.78.03
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 15:43:51 UTC 2010 - coolo@novell.com
|
||||
|
||||
|
@@ -1,47 +1,70 @@
|
||||
%define modname HTML-Scrubber
|
||||
Name: perl-%{modname}
|
||||
#
|
||||
# spec file for package perl-HTML-Scrubber (Version 0.08)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Name: perl-HTML-Scrubber
|
||||
%define cpan_name HTML-Scrubber
|
||||
Summary: HTML::Scrubber Perl module
|
||||
Version: 0.08
|
||||
Release: 1
|
||||
Summary: Perl Extension for Scrubbing/Sanitizing HTML
|
||||
Requires: perl-HTML-Parser
|
||||
BuildRequires: perl perl-HTML-Parser
|
||||
License: GPL/Artistic
|
||||
License: Distributable, see LICENSE
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://search.cpan.org/CPAN/authors/id/P/PO/PODMASTER/%{modname}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
URL: http://search.cpan.org/dist/HTML-Scrubber/
|
||||
Url: http://search.cpan.org/dist/HTML-Scrubber/
|
||||
#Source: http://www.cpan.org/authors/id/P/PO/PODMASTER/HTML-Scrubber-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(HTML::Parser) >= 3
|
||||
%{perl_requires}
|
||||
Requires: perl(HTML::Parser) >= 3
|
||||
|
||||
%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.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
D. H. (PodMaster)
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%files -f %{name}.files
|
||||
%defattr(644,root,root,755)
|
||||
%doc Changes LICENSE README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/HTML/Scrubber.pm
|
||||
%{perl_vendorarch}/auto/HTML/Scrubber
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user