[6884] | 1 | %define pkgname HTML-Scrubber |
---|
| 2 | |
---|
| 3 | # Basic Information |
---|
| 4 | Name: perl-%{pkgname} |
---|
[9189] | 5 | Version: 0.11 |
---|
[6884] | 6 | Release: 1%{?_dist_release} |
---|
[9189] | 7 | |
---|
| 8 | Summary: HTML::Scrubber - Perl extension for scrubbing/sanitizing html |
---|
| 9 | Summary(ja): HTML::Scrubber - html の除去/サニタイジングのための Perl 拡張 |
---|
| 10 | |
---|
[6884] | 11 | License: Artistic or GPL |
---|
| 12 | Group: Development/Libraries |
---|
| 13 | Source0: http://search.cpan.org/CPAN/authors/id/N/NI/NIGELM/%{pkgname}-%{version}.tar.gz |
---|
[9189] | 14 | |
---|
[6884] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildArch: noarch |
---|
[9189] | 17 | # Dependency |
---|
| 18 | BuildRequires: perl(Module::Build) |
---|
| 19 | BuildRequires: perl(Test::CPAN::Meta) |
---|
| 20 | BuildRequires: perl(Test::More) >= 0.94 |
---|
| 21 | BuildRequires: perl(Test::NoTabs) |
---|
| 22 | BuildRequires: perl(Test::Pod) >= 1.41 |
---|
| 23 | BuildRequires: perl(HTML::Entities) |
---|
| 24 | BuildRequires: perl(HTML::Parser) >= 3.47 |
---|
| 25 | BuildRequires: perl(File::Spec) |
---|
| 26 | BuildRequires: perl(File::Temp) |
---|
| 27 | BuildRequires: perl(IO::Handle) |
---|
| 28 | BuildRequires: perl(IPC::Open3) |
---|
| 29 | BuildRequires: perl(Scalar::Util) |
---|
| 30 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[6884] | 31 | |
---|
| 32 | Vendor: Project Vine |
---|
| 33 | Distribution: Vine Linux |
---|
| 34 | Packager: yasumichi |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %description |
---|
| 38 | If you wanna "scrub" or "sanitize" html input in a reliable and flexible |
---|
| 39 | fashion, then this module is for you. |
---|
| 40 | |
---|
| 41 | I wasn't satisfied with HTML::Sanitizer because it is based on |
---|
| 42 | HTML::TreeBuilder, so I thought I'd write something similar that works |
---|
| 43 | directly with HTML::Parser. |
---|
| 44 | |
---|
| 45 | #%%description -l ja |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %prep |
---|
[9189] | 49 | %setup -q -n HTML-Scrubber-%{version} |
---|
[6884] | 50 | |
---|
| 51 | %build |
---|
[9189] | 52 | %{__perl} Build.PL installdirs=vendor optimize="%{optflags}" |
---|
| 53 | ./Build |
---|
[6884] | 54 | |
---|
| 55 | %install |
---|
[9189] | 56 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 57 | ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 |
---|
[6884] | 58 | |
---|
| 59 | # remove unnecessary files. |
---|
[9189] | 60 | find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec %{__rm} -f {} ';' |
---|
| 61 | find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} -f {} ';' |
---|
| 62 | #find $RPM_BUILD_ROOT%{_mandir} -type f -exec %{__rm} -f {} ';' |
---|
| 63 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
[6884] | 64 | |
---|
[9189] | 65 | %{_fixperms} $RPM_BUILD_ROOT |
---|
[6884] | 66 | |
---|
| 67 | |
---|
| 68 | %clean |
---|
[9189] | 69 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
[6884] | 70 | |
---|
[9189] | 71 | %check |
---|
| 72 | ./Build test |
---|
[6884] | 73 | |
---|
[9189] | 74 | %files |
---|
[6884] | 75 | %defattr(-,root,root) |
---|
| 76 | %doc Changes LICENSE README |
---|
[9189] | 77 | %{perl_vendorlib}/* |
---|
| 78 | %{_mandir}/man3/* |
---|
[6884] | 79 | |
---|
| 80 | %changelog |
---|
[9189] | 81 | * Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.11-1 |
---|
| 82 | - updated to 0.11 |
---|
| 83 | - built with perl 5.16.3 |
---|
| 84 | |
---|
[6884] | 85 | * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.09-1 |
---|
| 86 | - initial build for Vine Linux |
---|