perl-HTML-Parser-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. %define name perl-HTML-Parser
  2. %define real_name HTML-Parser
  3. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
  4. %define __find_provides /usr/lib/rpm/find-provides.perl
  5. %define __find_requires /usr/lib/rpm/find-requires.perl
  6. %endif
  7. %define rel 1
  8. Summary: A Perl module for parsing HTML.
  9. Summary(ja): HTML を解析するための Perl モジュール
  10. Name: %{name}
  11. Version: 3.72
  12. Release: %{rel}%{?_dist_release}
  13. License: GPL or Artistic
  14. Group: Development/Libraries
  15. Source: ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/HTML/%{real_name}-%{version}.tar.gz
  16. Url: http://search.cpan.org/~gaas/HTML-Parser/
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Requires: perl >= 5.26.0, perl-HTML-Tagset >= 3.03
  19. BuildRequires: perl >= 5.26.0, perl-HTML-Tagset >= 3.03
  20. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. The HTML-Parser module for perl to parse and extract information from
  25. HTML documents, including the HTML::Entities, HTML::HeadParser,
  26. HTML::LinkExtor, HTML::PullParser, and HTML::TokeParser modules.
  27. %prep
  28. %setup -q -n %{real_name}-%{version}
  29. %build
  30. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  31. make
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. # make install
  35. make DESTDIR=$RPM_BUILD_ROOT install
  36. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  37. find $RPM_BUILD_ROOT/usr -type f -print |
  38. sed "s@^$RPM_BUILD_ROOT@@g" |
  39. grep -v perllocal.pod |
  40. grep -v "\.packlist" > perl-HTML-Parser-%{version}-filelist
  41. if [ "$(cat perl-HTML-Parser-%{version}-filelist)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. find $RPM_BUILD_ROOT/usr -type f -print | \
  46. grep -e perllocal.pod -e "\.packlist" | xargs rm
  47. %check
  48. make test
  49. %clean
  50. rm -rf $RPM_BUILD_ROOT
  51. %files -f perl-HTML-Parser-%{version}-filelist
  52. %defattr(-,root,root)
  53. %dir %{perl_vendorarch}/HTML
  54. %dir %{perl_vendorarch}/auto/HTML
  55. %dir %{perl_vendorarch}/auto/HTML/Parser
  56. %changelog
  57. * Thu May 16 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.72-1
  58. - new upstream release.
  59. - rebuilt with perl-5.26.
  60. * Fri Jun 27 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 3.68-3
  61. - build with Perl 5.16
  62. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 3.68-2
  63. - add directory in files
  64. * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 3.68-1
  65. - new upstream release
  66. - add Requires: perl(:MODULE_COMPAT_...)
  67. - defined __find_{provides,requires} with vl4 and vl5 (updated 3.64-2)
  68. - add Vendor and Distribution tags
  69. * Tue Apr 13 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.64-2
  70. - undefine __find_provides and __find_requires at VineSeed
  71. - added Japanese summary
  72. * Sun Nov 1 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.64-1
  73. - new upstream release with security fix (CVE-2009-3627)
  74. * Fri Apr 25 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 3.56-2vl5
  75. - build on perl-5.10.0-1vl5
  76. * Tue Jul 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.56-0vl1
  77. - new upstream release
  78. - changed Group to Development/Libraries
  79. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 3.41-0vl1
  80. - new upstream release
  81. - build on perl-5.8.6-0vl1
  82. - fix typo changelog: 3.34-0vl1 and 3.34-0vl2
  83. - update Url value
  84. - using perl_sitearch macro
  85. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 3.34-0vl2
  86. - built on perl-5.8.2
  87. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 3.34-0vl1
  88. - new upstream version
  89. - built on perl-5.8.1
  90. * Wed Apr 16 2003 Satoshi MACHINO <machino@vinelinux.org> 3.27-0vl1
  91. - New upstream version
  92. - build on perl-5.8.0
  93. -- changed Requires, Buildrequires
  94. * Tue Oct 08 2002 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  95. - 3.26-14vl2
  96. - Fix Requires, Buildrequires
  97. * Mon Oct 07 2002 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  98. - 3.26-14vl1
  99. - first build for Vine Linux
  100. - add define __find_provides / __find_requires
  101. - modefy files list (dir)
  102. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  103. - automated release bump and build
  104. * Tue Jun 4 2002 Chip Turner <cturner@redhat.com>
  105. - properly claim directories owned by package so they are removed when package is removed
  106. * Mon Jun 3 2002 Chip Turner <cturner@redhat.com>
  107. - fix for Makefile.PL sometimes prompting for input
  108. * Wed Mar 27 2002 Chip Turner <cturner@redhat.com>
  109. - update to 3.26, move to vendor_perl
  110. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  111. - automated rebuild
  112. * Wed Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 3.25-2
  113. - imported from mandrake. tweaked man path.
  114. * Tue Jul 03 2001 Fran輟is Pons <fpons@mandrakesoft.com> 3.25-1mdk
  115. - 3.25.
  116. * Wed Jun 20 2001 Christian Belisle <cbelisle@mandrakesoft.com> 3.18-3mdk
  117. - Fixed distribution tag.
  118. - Updated Requires.
  119. - Added an option to %makeinstall.
  120. * Sun Jun 17 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 3.18-2mdk
  121. - Rebuild against the latest perl.
  122. * Tue Feb 27 2001 François Pons <fpons@mandrakesoft.com> 3.18-1mdk
  123. - 3.18.
  124. * Tue Jan 30 2001 François Pons <fpons@mandrakesoft.com> 3.15-1mdk
  125. - 3.15.
  126. * Tue Dec 05 2000 François Pons <fpons@mandrakesoft.com> 3.14-1mdk
  127. - 3.14.
  128. * Thu Oct 12 2000 François Pons <fpons@mandrakesoft.com> 3.13-1mdk
  129. - 3.13.
  130. * Tue Aug 29 2000 François Pons <fpons@mandrakesoft.com> 3.11-1mdk
  131. - 3.11.
  132. * Thu Aug 03 2000 François Pons <fpons@mandrakesoft.com> 3.10-2mdk
  133. - macroszifications.
  134. - add doc.
  135. * Tue Jul 18 2000 François Pons <fpons@mandrakesoft.com> 3.10-1mdk
  136. - removed perllocal.pod from files.
  137. - 3.10.
  138. * Tue Jun 27 2000 Jean-Michel Dault <jmdault@mandrakesoft.com> 3.08-1mdk
  139. - update to 3.08
  140. * Wed May 17 2000 David BAUDENS <baudens@mandrakesoft.com> 3.05-4mdk
  141. - Fix build for i486
  142. - Use %%{_tmppath} for BuildRoot
  143. * Fri Mar 31 2000 Pixel <pixel@mandrakesoft.com> 3.05-3mdk
  144. - rebuild, new group, cleanup
  145. * Tue Feb 29 2000 Jean-Michel Dault <jmdault@netrevolution.com> 3.0.5-1mdk
  146. - upgrade to 3.05
  147. * Mon Jan 3 2000 Jean-Michel Dault <jmdault@netrevolution.com>
  148. - final cleanup for Mandrake 7
  149. * Thu Dec 30 1999 Jean-Michel Dault <jmdault@netrevolution.com>
  150. -updated to 3.02
  151. * Sun Aug 29 1999 Jean-Michel Dault <jmdault@netrevolution.com>
  152. - bzip2'd sources
  153. - updated to 2.23
  154. * Tue May 11 1999 root <root@alien.devel.redhat.com>
  155. - Spec file was autogenerated.