%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} %define beta_ver b1 Name: twill Version: 0.9 Release: 0.1.%{beta_ver}%{?dist} Summary: A simple scripting language for Web browsing Group: Applications/Internet License: MIT URL: http://twill.idyll.org/ Source0: http://darcs.idyll.org/~t/projects/twill-%{version}%{beta_ver}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel python-setuptools BuildArch: noarch %description twill is a simple language that allows users to browse the Web from a command-line interface. With twill, you can navigate through Web sites that use forms, cookies, and most standard Web features. %prep %setup -q -n %{name}-%{version}%{beta_ver} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT \ --single-version-externally-managed %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.txt doc/LICENSE.txt doc/ANNOUNCE-%{version}%{beta_ver}.txt %doc doc/index.txt doc/examples.txt doc/browsing.txt doc/commands.txt %doc doc/ChangeLog doc/developer.txt doc/advocacy/simple-example.txt %doc doc/extensions.txt doc/python-api.txt doc/other.txt doc/testing.txt %{python_sitelib}/twill %{python_sitelib}/%{name}-%{version}%{beta_ver}-py%{pyver}.egg-info/ %{_bindir}/twill-fork %{_bindir}/twill-sh %changelog * Sat Aug 18 2007 Luke Macken - 0.9-0.1.b1 - Initial creation