python-mechanize-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: python-mechanize
  3. Version: 0.2.2
  4. Release: 2%{?_dist_release}
  5. Summary: Stateful programmatic web browsing
  6. Summary(ja): ウェブ・ブラウジング・プログラム用 Python モジュール
  7. Group: System Environment/Libraries
  8. License: BSD
  9. URL: http://wwwsearch.sourceforge.net/mechanize
  10. Source0: http://wwwsearch.sourceforge.net/mechanize/src/mechanize-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: python-devel
  14. BuildRequires: python-setuptools
  15. Requires: python-clientform
  16. %description
  17. Stateful programmatic web browsing, after Andy Lester's Perl module
  18. WWW::Mechanize.
  19. The library is layered: mechanize.Browser (stateful web browser),
  20. mechanize.UserAgent (configurable URL opener), plus urllib2 handlers.
  21. Features include: ftp:, http: and file: URL schemes, browser history,
  22. high-level hyperlink and HTML form support, HTTP cookies, HTTP-EQUIV and
  23. Refresh, Referer [sic] header, robots.txt, redirections, proxies, and
  24. Basic and Digest HTTP authentication. mechanize's response objects are
  25. (lazily-) .seek()able and still work after .close().
  26. Much of the code originally derived from Perl code by Gisle Aas
  27. (libwww-perl), Johnny Lee (MSIE Cookie support) and last but not least
  28. Andy Lester (WWW::Mechanize). urllib2 was written by Jeremy Hylton.
  29. %prep
  30. %setup -q -n mechanize-%{version}
  31. %build
  32. %{__python} setup.py build
  33. %install
  34. %__rm -rf $RPM_BUILD_ROOT
  35. %{__python} setup.py install --single-version-externally-managed \
  36. -O1 --root=$RPM_BUILD_ROOT
  37. %clean
  38. %__rm -rf $RPM_BUILD_ROOT
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc COPYING.txt README.txt docs examples
  42. %{python_sitelib}/*
  43. %changelog
  44. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.2.2-2
  45. - rebuild with python-2.7.2
  46. * Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.2.2-1
  47. - new upstream release
  48. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.10-2
  49. - rebuild with python-2.6
  50. * Sun Dec 28 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.10-1
  51. - initial build for Vine Linux based on fedora package
  52. * Wed Dec 10 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.10-1
  53. - Update to 0.1.10
  54. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.6-0.3.b
  55. - Rebuild for Python 2.6
  56. * Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> - 0.1.6-0.2.b
  57. - Update for python-setuptools changes in rawhide
  58. * Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> - 0.1.6-0.1.b
  59. - 0.1.6b
  60. * Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> - 0.1.5-0.1.b
  61. - Rebuild for python 2.5
  62. - 0.1.5b
  63. * Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-5
  64. - Rebuild for FC6
  65. * Sun Jul 9 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-4
  66. - Remove unnecessary python-abi requirement
  67. * Wed May 17 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-3
  68. - Add BuildArch: noarch (bug #192155)
  69. * Sun May 14 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-2
  70. - Add python-abi Requires
  71. - Remove noarch
  72. * Thu May 11 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-1
  73. - Packaged for Fedora Extras