1
1
Summary: GUI test tool and automation framework
6
6
Group: User Interface/X
7
7
URL: http://people.redhat.com/zcerza/dogtail/
8
Source0: %{name}-%{version}.tar.gz
9
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
10
BuildArchitectures: noarch
11
BuildRequires: at-spi-devel
12
Requires: pyspi >= 0.5.3, pygtk2, rpm-python, ImageMagick, Xvfb
14
# hrm, the brp-python-bytecompile will byte-compile docs stuff too
15
# which is probably not what we want
16
%define __os_install_post [ -x /usr/lib/rpm/brp-python-bytecompile ] && /usr/lib/rpm/brp-python-bytecompile find $RPM_BUILD_ROOT/%{_docdir}/dogtail -name *.py[co] |xargs rm -f
8
Source0: http://people.redhat.com/zcerza/dogtail/releases/dogtail-%{version}.tar.gz
9
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
BuildRequires: desktop-file-utils
13
Requires: pyspi >= 0.6.0
15
Requires: gnome-python2-gconf
17
Requires: xorg-x11-server-Xvfb
18
Requires: xorg-x11-xinit
19
21
GUI test tool and automation framework that uses assistive technologies to
20
22
communicate with desktop applications.
25
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
29
32
rm -rf $RPM_BUILD_ROOT
30
33
python ./setup.py install -O2 --root=$RPM_BUILD_ROOT --record=%{name}.files
31
34
rm -rf $RPM_BUILD_ROOT/%{_docdir}/dogtail
35
find examples -type f -exec chmod 0644 \{\} \;
36
desktop-file-install $RPM_BUILD_ROOT/%{_datadir}/applications/sniff.desktop \
38
--dir=$RPM_BUILD_ROOT/%{_datadir}/applications \
39
--add-category X-Fedora \
34
[ -x /usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache -f /usr/share/icons/hicolor 2>/dev/null
35
rm -rf /usr/share/doc/dogtail/
43
touch --no-create %{_datadir}/icons/hicolor || :
44
[ -x /usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache --quiet -f %{_datadir}/icons/hicolor || :
47
touch --no-create %{_datadir}/icons/hicolor || :
48
[ -x /usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache --quiet -f %{_datadir}/icons/hicolor || :
38
51
rm -rf $RPM_BUILD_ROOT
40
#%files -f %{name}.files
42
54
%defattr(-,root,root,-)
45
/usr/share/applications/
47
/usr/share/icons/hicolor/
56
%{python_sitelib}/dogtail/
57
%{_datadir}/applications/*
59
%{_datadir}/icons/hicolor/*
53
* Fri Feb 17 2006 Zack Cerza <zcerza@redhat.com>
65
* Mon Oct 16 2006 Zack Cerza <zcerza@redhat.com> - 0.6.1-1
66
- New upstream release.
68
* Wed Sep 13 2006 Zack Cerza <zcerza@redhat.com> - 0.6.0-1
69
- New upstream release.
70
- Add Requires for xorg-x11-xinit.
71
- Add Requires for gnome-python2-gconf.
72
- Bump pyspi Requires.
74
* Tue Aug 01 2006 Zack Cerza <zcerza@redhat.com> - 0.5.2-1
75
- New upstream release.
76
- Update Requires from Xvfb to xorg-x11-server-Xvfb.
77
- Bump pyspi Requires.
78
- Remove ImageMagick Requires.
79
- Escape post-macro in changelog-macro.
81
* Mon Apr 17 2006 Zack Cerza <zcerza@redhat.com> - 0.5.1-3
84
* Tue Mar 21 2006 Zack Cerza <zcerza@redhat.com> - 0.5.1-2
85
- Fix URL and Source0 fields.
86
- Fix desktop-file-utils magic; use desktop-file-install.
88
* Fri Feb 24 2006 Zack Cerza <zcerza@redhat.com> - 0.5.1-1
89
- Remove BuildRequires on at-spi-devel. Added one on python.
90
- Use macros instead of absolute paths.
91
- Touch _datadir/icons/hicolor/ before running gtk-update-icon-cache.
92
- Require and use desktop-file-utils.
94
- Shorten BuildArchitectures to BuildArch. The former worked, but even vim's
96
- Put each *Requires on a separate line.
97
- Remove __os_install_post definition.
98
- Use Fedora Extras BuildRoot.
99
- Instead of _libdir, which kills the build if it's /usr/lib64, use a
100
python macro to define python_sitelib and use that.
101
- Remove the executable bit on the examples in install scriptlet.
102
- Remove call to /bin/rm in post scriptlet.
103
- Use dist in Release.
105
* Fri Feb 17 2006 Zack Cerza <zcerza@redhat.com> - 0.5.0-2
54
106
- It looks like xorg-x11-Xvfb changed names. Require 'Xvfb' instead.
55
107
- Remove Requires on python-elementtree, since RHEL4 didn't have it. The
56
108
functionality it provides is probably never used anyway, and will most likely
57
109
be removed in the future.
58
110
- Don't run gtk-update-icon-cache if it doesn't exist.
60
* Fri Feb 3 2006 Zack Cerza <zcerza@redhat.com>
112
* Fri Feb 3 2006 Zack Cerza <zcerza@redhat.com> - 0.5.0-1
61
113
- New upstream release.
62
114
- Added missing BuildRequires on at-spi-devel.
63
115
- Added Requires on pyspi >= 0.5.3.
65
117
python-elementtree.
66
118
- Moved documentation (including examples) to the correct place.
67
119
- Make sure /usr/share/doc/dogtail is removed.
68
- Added 'gtk-update-icon-cache' to %post.
120
- Added 'gtk-update-icon-cache' to %%post.
70
* Mon Oct 24 2005 Zack Cerza <zcerza@redhat.com>
122
* Mon Oct 24 2005 Zack Cerza <zcerza@redhat.com> - 0.4.3-1
71
123
- New upstream release.
73
* Sat Oct 8 2005 Jeremy Katz <katzj@redhat.com>
125
* Sat Oct 8 2005 Jeremy Katz <katzj@redhat.com> - 0.4.2-1