1 | %define pkgname HTML-Scrubber |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.11 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | |
---|
8 | Summary: HTML::Scrubber - Perl extension for scrubbing/sanitizing html |
---|
9 | Summary(ja): HTML::Scrubber - html の除去/サニタイジングのための Perl 拡張 |
---|
10 | |
---|
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 |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildArch: noarch |
---|
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)) |
---|
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 |
---|
49 | %setup -q -n HTML-Scrubber-%{version} |
---|
50 | |
---|
51 | %build |
---|
52 | %{__perl} Build.PL installdirs=vendor optimize="%{optflags}" |
---|
53 | ./Build |
---|
54 | |
---|
55 | %install |
---|
56 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
57 | ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 |
---|
58 | |
---|
59 | # remove unnecessary files. |
---|
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 \; |
---|
64 | |
---|
65 | %{_fixperms} $RPM_BUILD_ROOT |
---|
66 | |
---|
67 | |
---|
68 | %clean |
---|
69 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
70 | |
---|
71 | %check |
---|
72 | ./Build test |
---|
73 | |
---|
74 | %files |
---|
75 | %defattr(-,root,root) |
---|
76 | %doc Changes LICENSE README |
---|
77 | %{perl_vendorlib}/* |
---|
78 | %{_mandir}/man3/* |
---|
79 | |
---|
80 | %changelog |
---|
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 | |
---|
85 | * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.09-1 |
---|
86 | - initial build for Vine Linux |
---|