perl-HTML-SimpleParse-vl.spec 2.0 KB

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