perl-HTML-SimpleParse-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. %define pkgname HTML-SimpleParse
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.12
  5. Release: 3%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/%{pkgname}-%{version}.tar.gz
  9. Summary: a bare-bones HTML parser
  10. Summary(ja): 簡易 HTML パーサー
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: perl
  14. # Dependency
  15. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: yasumichi
  19. %description
  20. This module is a simple HTML parser. It is similar in concept to
  21. HTML::Parser, but it differs from HTML::TreeBuilder in a couple of important
  22. ways.
  23. %description -l ja
  24. このモジュールは、簡易 HTML パーサーです。HTML::Parser のコンセプトに似てい
  25. ますが、2、3 の重要な点で HTML::TreeBuilder と異なっています。
  26. %prep
  27. %setup -q -n HTML-SimpleParse-0.12
  28. %build
  29. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  30. %{__make} %{?_smp_mflags}
  31. %install
  32. %{__rm} -rf ${RPM_BUILD_ROOT}
  33. %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
  34. # remove unnecessary files.
  35. find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
  36. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
  37. find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
  38. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  39. # generate file list
  40. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  41. sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files
  42. if [ "$(cat %{name}.files)X" = "X" ] ; then
  43. echo "ERROR: EMPTY FILE LIST"
  44. exit -1
  45. fi
  46. %clean
  47. %{__rm} -rf ${RPM_BUILD_ROOT}
  48. %check
  49. %{__make} test
  50. %files -f %{name}.files
  51. %defattr(-,root,root)
  52. %doc Changes README
  53. %changelog
  54. * Sat Oct 25 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.12-3
  55. - rebuilt with perl-5.16.3
  56. * Thu Oct 18 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.12-2
  57. - fixed Summary(ja)
  58. * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.12-1
  59. - initial build for Vine Linux