perl-HTML-SimpleParse-vl.spec 2.0 KB

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