source: projects/specs/trunk/p/perl-HTML-Scrubber/perl-HTML-Scrubber-vl.spec @ 9189

Revision 9189, 2.3 KB checked in by inagaki, 9 years ago (diff)

2014-12-24 Ryoichi INAGAKI <ryo1@…>


Line 
1%define pkgname HTML-Scrubber
2
3# Basic Information
4Name:           perl-%{pkgname}
5Version:        0.11
6Release:        1%{?_dist_release}
7
8Summary:        HTML::Scrubber - Perl extension for scrubbing/sanitizing html
9Summary(ja):    HTML::Scrubber - html の除去/サニタイジングのための Perl 拡張
10
11License:        Artistic or GPL
12Group:          Development/Libraries
13Source0:        http://search.cpan.org/CPAN/authors/id/N/NI/NIGELM/%{pkgname}-%{version}.tar.gz
14
15BuildRoot:      %{_tmppath}/%{name}-%{version}-root
16BuildArch:      noarch
17# Dependency
18BuildRequires:  perl(Module::Build)
19BuildRequires:  perl(Test::CPAN::Meta)
20BuildRequires:  perl(Test::More) >= 0.94
21BuildRequires:  perl(Test::NoTabs)
22BuildRequires:  perl(Test::Pod) >= 1.41
23BuildRequires:  perl(HTML::Entities)
24BuildRequires:  perl(HTML::Parser) >= 3.47
25BuildRequires:  perl(File::Spec)
26BuildRequires:  perl(File::Temp)
27BuildRequires:  perl(IO::Handle)
28BuildRequires:  perl(IPC::Open3)
29BuildRequires:  perl(Scalar::Util)
30Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
31
32Vendor:         Project Vine
33Distribution:   Vine Linux
34Packager:       yasumichi
35
36
37%description
38 If you wanna "scrub" or "sanitize" html input in a reliable and flexible
39fashion, then this module is for you.
40
41 I wasn't satisfied with HTML::Sanitizer because it is based on
42HTML::TreeBuilder, so I thought I'd write something similar that works
43directly 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.
60find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec %{__rm} -f {} ';'
61find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} -f {} ';'
62#find $RPM_BUILD_ROOT%{_mandir} -type f -exec %{__rm} -f {} ';'
63find $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
Note: See TracBrowser for help on using the repository browser.