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