python-mechanize-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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: 1%{?_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. * Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.2.2-1
  45. - new upstream release
  46. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.10-2
  47. - rebuild with python-2.6
  48. * Sun Dec 28 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1.10-1
  49. - initial build for Vine Linux based on fedora package
  50. * Wed Dec 10 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.10-1
  51. - Update to 0.1.10
  52. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.6-0.3.b
  53. - Rebuild for Python 2.6
  54. * Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> - 0.1.6-0.2.b
  55. - Update for python-setuptools changes in rawhide
  56. * Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> - 0.1.6-0.1.b
  57. - 0.1.6b
  58. * Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> - 0.1.5-0.1.b
  59. - Rebuild for python 2.5
  60. - 0.1.5b
  61. * Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-5
  62. - Rebuild for FC6
  63. * Sun Jul 9 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-4
  64. - Remove unnecessary python-abi requirement
  65. * Wed May 17 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-3
  66. - Add BuildArch: noarch (bug #192155)
  67. * Sun May 14 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-2
  68. - Add python-abi Requires
  69. - Remove noarch
  70. * Thu May 11 2006 Luke Macken <lmacken@redhat.com> - 0.1.1a-1
  71. - Packaged for Fedora Extras