1 # 2 # spec file for package dogtail 3 # 4 # includes module(s): dogtail 5 # 6 # Copyright (c) 2005 Sun Microsystems, Inc. 7 # This file and all modifications and additions to the pristine 8 # package are under the same license as the package itself. 9 # 10 # Owner: dcarbery 11 # 12 %define pythonver 2.4 13 14 Name: dogtail 15 License: GPL 16 Group: Development/Languages/Python 17 Version: 0.6.1 18 Release: 2 19 Distribution: Java Desktop System 20 Vendor: Sun Microsystems, Inc. 21 Summary: GUI test tool and automation framework written in Python 22 Source: http://people.redhat.com/zcerza/dogtail/releases/%{name}-%{version}.tar.gz 23 URL: http://people.redhat.com/zcerza/dogtail/ 24 BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 Docdir: %{_defaultdocdir}/doc 26 Autoreqprov: off 27 Prereq: /sbin/ldconfig 28 Requires: python >= %{pythonver} 29 Requires: at-spi 30 Requires: pyspi 31 Requires: Pyrex 32 BuildRequires: python-devel >= %{pythonver} 33 BuildRequires: at-spi-devel 34 BuildRequires: pyspi 35 36 %description 37 dogtail is a GUI test tool and automation framework written in Python. 38 It uses Accessibility (a11y) technologies to communicate with desktop 39 applications. dogtail scripts are written in Python and executed like any 40 other Python program. 41 42 %prep 43 %setup -q 44 45 %build 46 47 %install 48 python setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix} 49 50 # move to vendor-packages 51 mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages \ 52 $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages 53 54 # Delete precompiled py code (*.pyc). May not be compatibile with dest system. 55 find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.pyc" -exec rm -f {} ';' 56 57 58 %clean 59 rm -rf $RPM_BUILD_ROOT 60 61 %files 62 %defattr(-, root, root) 63 %{_bindir} 64 %{_libdir}/python?.?/vendor-packages 65 %{_datadir}/doc 66 %{_datadir}/dogtail 67 %{_datadir}/icons 68 %{_datadir}/applications 69 70 %changelog 71 * Thu Nov 09 2006 - damien.carbery@sun.com 72 - Bump 0.6.1. Remove upstream patch, 01-solaris. 73 * Sat Oct 07 2006 - brian.cameron@sun.com 74 - Bump 0.6.0. 75 * Mon Sep 04 2006 - damien.carbery@sun.com 76 - Bump to 0.5.2. 77 * Tue Feb 21 2006 - damien.carbery@sun.com 78 - Bump to 0.5.0. 79 * Mon Oct 31 2005 - laca@sun.com 80 - move from site-packages to vendor-packages 81 * Wed Oct 26 2005 - damien.carbery@sun.com 82 - Bump to 0.4.3. 83 * Thu Oct 20 2005 - damien.carbery@sun.com 84 - Delete .pyc files so they are not included in the package. 85 - Initial version. 86