python-twill-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Summary: Simple scripting language for Web browsing
  3. Summary(ja): ウェブ・ブラウジング用のシンプルなスクリプト言語
  4. Name: python-twill
  5. Version: 0.9
  6. Release: 2%{?_dist_release}
  7. Source0: http://darcs.idyll.org/~t/projects/twill-%{version}.tar.gz
  8. License: MIT
  9. Group: Applications/Internet
  10. URL: http://twill.idyll.org/
  11. Requires: python, python-clientform
  12. Requires: python-mechanize, pyparsing
  13. BuildRequires: python-devel python-setuptools
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildArch: noarch
  16. %description
  17. twill is a simple language that allows users to browse the Web from
  18. a command-line interface.
  19. With twill, you can navigate through Web sites that use forms, cookies,
  20. and most standard Web features.
  21. %description -l ja
  22. twill はコマンドライン・インターフェースからウェブ・ブラウジングを可能に
  23. するシンプルな言語です。
  24. twill を使うことで、フォームやクッキー等の標準的なウェブで使用される要素
  25. を操作できます。
  26. %prep
  27. %setup -q -n twill-%{version}
  28. # Don't use the included mechanize, pyparsing, ClientForm or subprocess
  29. #%{__rm} -rf twill/other_packages/_mechanize_dist/
  30. %build
  31. %{__python} setup.py build
  32. %install
  33. %{__rm} -rf ${RPM_BUILD_ROOT}
  34. %{__python} setup.py install -O1 --skip-build \
  35. --root ${RPM_BUILD_ROOT} \
  36. --single-version-externally-managed
  37. %clean
  38. %{__rm} -rf ${RPM_BUILD_ROOT}
  39. %files
  40. %defattr(-,root,root)
  41. %doc README.txt doc/LICENSE.txt doc/ANNOUNCE-*.txt
  42. %doc doc/index.txt doc/examples.txt doc/browsing.txt doc/commands.txt
  43. %doc doc/ChangeLog doc/developer.txt doc/advocacy/simple-example.txt
  44. %doc doc/extensions.txt doc/python-api.txt doc/other.txt doc/testing.txt
  45. %{python_sitelib}/twill/
  46. %{python_sitelib}/twill-*.egg-info/
  47. %{_bindir}/twill-fork
  48. %{_bindir}/twill-sh
  49. %changelog
  50. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.9-2
  51. - rebuild with python-2.6
  52. * Sun Dec 28 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9-1
  53. - initial build for Vine Linux