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@…>


RevLine 
[6884]1%define pkgname HTML-Scrubber
2
3# Basic Information
4Name:           perl-%{pkgname}
[9189]5Version:        0.11
[6884]6Release:        1%{?_dist_release}
[9189]7
8Summary:        HTML::Scrubber - Perl extension for scrubbing/sanitizing html
9Summary(ja):    HTML::Scrubber - html の除去/サニタイジングのための Perl 拡張
10
[6884]11License:        Artistic or GPL
12Group:          Development/Libraries
13Source0:        http://search.cpan.org/CPAN/authors/id/N/NI/NIGELM/%{pkgname}-%{version}.tar.gz
[9189]14
[6884]15BuildRoot:      %{_tmppath}/%{name}-%{version}-root
16BuildArch:      noarch
[9189]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))
[6884]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
[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]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 \;
[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
Note: See TracBrowser for help on using the repository browser.