perl-WWW-Mechanize-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. #
  2. # Rebuild switches:
  3. # --with localtests enable local tests
  4. %bcond_with localtests
  5. # --with livetests enable live tests
  6. %bcond_with livetests
  7. Name: perl-WWW-Mechanize
  8. Version: 1.73
  9. Release: 1%{?_dist_release}
  10. Summary: Automates web page form & link interaction
  11. Group: Development/Libraries
  12. License: GPL+ or Artistic
  13. URL: http://search.cpan.org/dist/WWW-Mechanize/
  14. Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/WWW-Mechanize-%{version}.tar.gz
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  16. BuildArch: noarch
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. BuildRequires: perl(ExtUtils::MakeMaker)
  19. BuildRequires: perl(Test::More)
  20. BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
  21. BuildRequires: perl(Test::Exception)
  22. BuildRequires: perl(Test::Memory::Cycle), perl(Test::Taint), perl(Test::Warn)
  23. BuildRequires: perl(HTML::TokeParser), perl(LWP::UserAgent) >= 5.829, perl(URI::URL)
  24. BuildRequires: perl(IO::Socket::SSL)
  25. BuildRequires: perl(URI) >= 1.36
  26. BuildRequires: perl(HTTP::Server::Simple)
  27. BuildRequires: perl(HTTP::Response::Encoding) >= 0.05
  28. Vendor: Project Vine
  29. Distribution: Vine Linux
  30. %description
  31. "WWW::Mechanize", or Mech for short, helps you automate interaction
  32. with a website. It supports performing a sequence of page fetches
  33. including following links and submitting forms. Each fetched page is
  34. parsed and its links and forms are extracted. A link or a form can be
  35. selected, form fields can be filled and the next page can be fetched.
  36. Mech also stores a history of the URLs you've visited, which can be
  37. queried and revisited.
  38. %prep
  39. %setup -q -n WWW-Mechanize-%{version}
  40. %build
  41. %{__perl} Makefile.PL INSTALLDIRS=vendor \
  42. %if %{with localtests}
  43. --local \
  44. %else
  45. --nolocal \
  46. %endif
  47. %if %{with livetests}
  48. --live
  49. %else
  50. --nolive
  51. %endif
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf %{buildroot}
  55. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  56. find %{buildroot} -type f -name .packlist -exec rm -f {} +
  57. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  58. %{_fixperms} %{buildroot}/*
  59. %check
  60. make test
  61. %clean
  62. rm -rf %{buildroot}
  63. %files
  64. %defattr(-,root,root,-)
  65. %doc Changes etc/www-mechanize-logo.png
  66. %{_bindir}/mech-dump
  67. %{perl_vendorlib}/WWW/
  68. %{_mandir}/man1/*.1*
  69. %{_mandir}/man3/*.3pm*
  70. %changelog
  71. * Sun Dec 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.73-1
  72. - update to 1.73
  73. * Mon Apr 25 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.54-2
  74. - build with perl 5.12.3
  75. - add Vendor and Distribution tags
  76. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.54-1
  77. - initial build for Vine Linux based on fedora development
  78. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.54-3
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  80. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.54-2
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  82. * Sat Feb 21 2009 Ralf Cors辿pius <corsepiu@fedoraproject.org> - 1.54-1
  83. - Upstream update.
  84. - Add BR: perl(URI), perl(HTTP::Server::Simple),
  85. perl(HTTP::Response::Encoding).
  86. - Use %%bcond_with and %%with to process build options.
  87. * Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.34-1
  88. - update to 1.34
  89. * Tue Feb 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.32-2
  90. - rebuild for new perl
  91. * Fri Dec 07 2007 Chris Weyl <cweyl@alumni.drew.edu> - 1.32-1
  92. - update to 1.32
  93. * Thu Jun 7 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-2
  94. - New rebuild option: "--with livetests".
  95. * Thu Jun 7 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-1
  96. - Update to 1.30.
  97. - The Makefile.PL --mech-dump option is now deprecated.
  98. * Thu Jun 7 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.24-1
  99. - Update to 1.24.
  100. * Sun Mar 18 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.22-2
  101. - New BR: perl(IO::Socket::SSL).
  102. * Sun Mar 18 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.22-1
  103. - Update to 1.22.
  104. * Tue Sep 5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.20-1
  105. - Update to 1.20.
  106. - Live tests have been dropped.
  107. * Tue Feb 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.18-2
  108. - Re-enable test suite but without local and live tests.
  109. One local test fails in mock (see #165650 comment 4).
  110. - New rebuild option: "--with localtests".
  111. * Thu Feb 2 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.18-1
  112. - Update to 1.18.
  113. * Thu Nov 10 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.16-1
  114. - Update to 1.16.
  115. * Wed Aug 31 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.14-2
  116. - Added Test::LongString to the live tests build requirements.
  117. * Wed Aug 31 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.14-1
  118. - Update to 1.14.
  119. * Fri Aug 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-4
  120. - Added Test::Pod::Coverage to the BR list in order to improve test coverage.
  121. - Disabled test suite as it fails in mock (see #165650 comment 4).
  122. * Thu Aug 25 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-3
  123. - Conditional rebuild switch to enable live tests (RFE in #165650).
  124. * Fri Jul 1 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-2
  125. - Dist tag.
  126. * Sat Feb 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.12-0.fdr.1
  127. - Update to 1.12.
  128. * Mon Feb 14 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.10-0.fdr.1
  129. - Update to 1.10.
  130. * Sat Dec 25 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.08-0.fdr.1
  131. - Update to 1.08.
  132. * Sun Jul 04 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.02-0.fdr.1
  133. - First build.