perl-HTML-Scrubber-vl.spec 2.3 KB

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