~ubuntu-branches/debian/experimental/dogtail/experimental

« back to all changes in this revision

Viewing changes to dogtail.spec

  • Committer: Bazaar Package Importer
  • Author(s): Jose Carlos Garcia Sogo
  • Date: 2006-12-16 10:57:30 UTC
  • mfrom: (1.2.1 upstream) (3.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20061216105730-utt6mcidfssawo7j
Tags: 0.6.1-3
pyhton-at-spi has to be added as dependency (Closes: #402752)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Summary: GUI test tool and automation framework
2
2
Name: dogtail
3
 
Version: 0.5.0
4
 
Release: 2
 
3
Version: 0.6.1
 
4
Release: 1%{?dist}
5
5
License: GPL
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
13
 
 
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)
 
10
BuildArch: noarch
 
11
BuildRequires: python
 
12
BuildRequires: desktop-file-utils
 
13
Requires: pyspi >= 0.6.0
 
14
Requires: pygtk2
 
15
Requires: gnome-python2-gconf
 
16
Requires: rpm-python
 
17
Requires: xorg-x11-server-Xvfb
 
18
Requires: xorg-x11-xinit
17
19
 
18
20
%description
19
21
GUI test tool and automation framework that uses assistive technologies to 
20
22
communicate with desktop applications.
21
23
 
22
24
%prep
 
25
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
23
26
%setup -q
24
27
 
25
28
%build
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 \
 
37
  --vendor=fedora \
 
38
  --dir=$RPM_BUILD_ROOT/%{_datadir}/applications \
 
39
  --add-category X-Fedora \
 
40
  --delete-original
32
41
 
33
42
%post
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 || :
 
45
 
 
46
%postun
 
47
touch --no-create %{_datadir}/icons/hicolor || :
 
48
[ -x /usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache --quiet -f %{_datadir}/icons/hicolor || :
36
49
 
37
50
%clean
38
51
rm -rf $RPM_BUILD_ROOT
39
52
 
40
 
#%files -f %{name}.files
41
53
%files
42
54
%defattr(-,root,root,-)
43
 
/usr/bin/
44
 
/usr/lib/
45
 
/usr/share/applications/
46
 
/usr/share/dogtail/
47
 
/usr/share/icons/hicolor/
 
55
%{_bindir}/*
 
56
%{python_sitelib}/dogtail/
 
57
%{_datadir}/applications/*
 
58
%{_datadir}/dogtail/
 
59
%{_datadir}/icons/hicolor/*
48
60
%doc COPYING
49
61
%doc README
50
62
%doc examples/
51
63
 
52
64
%changelog
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.
 
67
 
 
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.
 
73
 
 
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.
 
80
 
 
81
* Mon Apr 17 2006 Zack Cerza <zcerza@redhat.com> - 0.5.1-3
 
82
- Fix the URL field.
 
83
 
 
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.
 
87
 
 
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.
 
93
- postun = post.
 
94
- Shorten BuildArchitectures to BuildArch. The former worked, but even vim's 
 
95
  hilighting hated it.
 
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.
 
104
 
 
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.
59
111
 
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.
69
121
 
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.
72
124
 
73
 
* Sat Oct  8 2005 Jeremy Katz <katzj@redhat.com> 
 
125
* Sat Oct  8 2005 Jeremy Katz <katzj@redhat.com> - 0.4.2-1
74
126
- Initial build.
75
127