python-twill-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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: 4%{?_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. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: Takemikaduchi
  19. %description
  20. twill is a simple language that allows users to browse the Web from
  21. a command-line interface.
  22. With twill, you can navigate through Web sites that use forms, cookies,
  23. and most standard Web features.
  24. %description -l ja
  25. twill はコマンドライン・インターフェースからウェブ・ブラウジングを可能に
  26. するシンプルな言語です。
  27. twill を使うことで、フォームやクッキー等の標準的なウェブで使用される要素
  28. を操作できます。
  29. %prep
  30. %setup -q -n twill-%{version}
  31. # Don't use the included mechanize, pyparsing, ClientForm or subprocess
  32. #%{__rm} -rf twill/other_packages/_mechanize_dist/
  33. %build
  34. %{__python} setup.py build
  35. %install
  36. %{__rm} -rf ${RPM_BUILD_ROOT}
  37. %{__python} setup.py install -O1 --skip-build \
  38. --root ${RPM_BUILD_ROOT} \
  39. --single-version-externally-managed
  40. %clean
  41. %{__rm} -rf ${RPM_BUILD_ROOT}
  42. %files
  43. %defattr(-,root,root)
  44. %doc README.txt doc/LICENSE.txt doc/ANNOUNCE-*.txt
  45. %doc doc/index.txt doc/examples.txt doc/browsing.txt doc/commands.txt
  46. %doc doc/ChangeLog doc/developer.txt doc/advocacy/simple-example.txt
  47. %doc doc/extensions.txt doc/python-api.txt doc/other.txt doc/testing.txt
  48. %{python_sitelib}/twill/
  49. %{python_sitelib}/twill-*.egg-info/
  50. %{_bindir}/twill-fork
  51. %{_bindir}/twill-sh
  52. %changelog
  53. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-4
  54. - rebuild with VineSeed environment
  55. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-3
  56. - rebuild with python-2.7.2
  57. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.9-2
  58. - rebuild with python-2.6
  59. * Sun Dec 28 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9-1
  60. - initial build for Vine Linux