perl-WWW-Mechanize-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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.54
  9. Release: 2%{?_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. * Mon Apr 25 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.54-2
  72. - build with perl 5.12.3
  73. - add Vendor and Distribution tags
  74. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.54-1
  75. - initial build for Vine Linux based on fedora development
  76. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.54-3
  77. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  78. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.54-2
  79. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  80. * Sat Feb 21 2009 Ralf Cors辿pius <corsepiu@fedoraproject.org> - 1.54-1
  81. - Upstream update.
  82. - Add BR: perl(URI), perl(HTTP::Server::Simple),
  83. perl(HTTP::Response::Encoding).
  84. - Use %%bcond_with and %%with to process build options.
  85. * Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.34-1
  86. - update to 1.34
  87. * Tue Feb 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.32-2
  88. - rebuild for new perl
  89. * Fri Dec 07 2007 Chris Weyl <cweyl@alumni.drew.edu> - 1.32-1
  90. - update to 1.32
  91. * Thu Jun 7 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-2
  92. - New rebuild option: "--with livetests".
  93. * Thu Jun 7 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.30-1
  94. - Update to 1.30.
  95. - The Makefile.PL --mech-dump option is now deprecated.
  96. * Thu Jun 7 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.24-1
  97. - Update to 1.24.
  98. * Sun Mar 18 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.22-2
  99. - New BR: perl(IO::Socket::SSL).
  100. * Sun Mar 18 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.22-1
  101. - Update to 1.22.
  102. * Tue Sep 5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.20-1
  103. - Update to 1.20.
  104. - Live tests have been dropped.
  105. * Tue Feb 28 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.18-2
  106. - Re-enable test suite but without local and live tests.
  107. One local test fails in mock (see #165650 comment 4).
  108. - New rebuild option: "--with localtests".
  109. * Thu Feb 2 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.18-1
  110. - Update to 1.18.
  111. * Thu Nov 10 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.16-1
  112. - Update to 1.16.
  113. * Wed Aug 31 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.14-2
  114. - Added Test::LongString to the live tests build requirements.
  115. * Wed Aug 31 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.14-1
  116. - Update to 1.14.
  117. * Fri Aug 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-4
  118. - Added Test::Pod::Coverage to the BR list in order to improve test coverage.
  119. - Disabled test suite as it fails in mock (see #165650 comment 4).
  120. * Thu Aug 25 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-3
  121. - Conditional rebuild switch to enable live tests (RFE in #165650).
  122. * Fri Jul 1 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-2
  123. - Dist tag.
  124. * Sat Feb 26 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.12-0.fdr.1
  125. - Update to 1.12.
  126. * Mon Feb 14 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.10-0.fdr.1
  127. - Update to 1.10.
  128. * Sat Dec 25 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.08-0.fdr.1
  129. - Update to 1.08.
  130. * Sun Jul 04 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.02-0.fdr.1
  131. - First build.