python-mechanize-vl.spec 3.4 KB

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