~ubuntu-branches/ubuntu/utopic/dogtail/utopic

« back to all changes in this revision

Viewing changes to dogtail.spec

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-08-01 22:59:27 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060801225927-vjdpwvvv5bfcqua5
Tags: upstream-0.5.1
ImportĀ upstreamĀ versionĀ 0.5.1

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.5.1
 
4
Release: 1%{?dist}
5
5
License: GPL
6
6
Group: User Interface/X
7
 
URL: http://people.redhat.com/zcerza/dogtail/
 
7
URL: http://people.redhat.com/zcerza/dogtail/releases/dogtail-0.5.1.tar.gz
8
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 
 
9
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
10
BuildArch: noarch
 
11
BuildRequires: python
 
12
Requires: pyspi >= 0.5.3
 
13
Requires: pygtk2
 
14
Requires: rpm-python
 
15
Requires: ImageMagick
 
16
Requires: Xvfb
 
17
Requires(post): desktop-file-utils
 
18
Requires(postun): desktop-file-utils
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 \{\} \;
32
36
 
33
37
%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/
 
38
touch --no-create %{_datadir}/icons/hicolor || :
 
39
[ -x /usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache --quiet -f %{_datadir}/icons/hicolor || :
 
40
update-desktop-database &> /dev/null || :
 
41
 
 
42
%postun
 
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
update-desktop-database &> /dev/null || :
36
46
 
37
47
%clean
38
48
rm -rf $RPM_BUILD_ROOT
39
49
 
40
 
#%files -f %{name}.files
41
50
%files
42
51
%defattr(-,root,root,-)
43
 
/usr/bin/
44
 
/usr/lib/
45
 
/usr/share/applications/
46
 
/usr/share/dogtail/
47
 
/usr/share/icons/hicolor/
 
52
%{_bindir}/*
 
53
%{python_sitelib}/dogtail/
 
54
%{_datadir}/applications/*
 
55
%{_datadir}/dogtail/
 
56
%{_datadir}/icons/hicolor/*
48
57
%doc COPYING
49
58
%doc README
50
59
%doc examples/
51
60
 
52
61
%changelog
53
 
* Fri Feb  17 2006 Zack Cerza <zcerza@redhat.com>
 
62
* Fri Feb 24 2006 Zack Cerza <zcerza@redhat.com> - 0.5.1-1
 
63
- Remove BuildRequires on at-spi-devel. Added one on python.
 
64
- Use macros instead of absolute paths.
 
65
- Touch _datadir/icons/hicolor/ before running gtk-update-icon-cache.
 
66
- Require and use desktop-file-utils.
 
67
- postun = post.
 
68
- Shorten BuildArchitectures to BuildArch. The former worked, but even vim's 
 
69
  hilighting hated it.
 
70
- Put each *Requires on a separate line.
 
71
- Remove __os_install_post definition.
 
72
- Use Fedora Extras BuildRoot.
 
73
- Instead of _libdir, which kills the build if it's /usr/lib64, use a
 
74
  python macro to define python_sitelib and use that.
 
75
- Remove the executable bit on the examples in install scriptlet.
 
76
- Remove call to /bin/rm in post scriptlet.
 
77
- Use dist in Release.
 
78
 
 
79
* Fri Feb 17 2006 Zack Cerza <zcerza@redhat.com> - 0.5.0-2
54
80
- It looks like xorg-x11-Xvfb changed names. Require 'Xvfb' instead.
55
81
- Remove Requires on python-elementtree, since RHEL4 didn't have it. The 
56
82
  functionality it provides is probably never used anyway, and will most likely
57
83
  be removed in the future.
58
84
- Don't run gtk-update-icon-cache if it doesn't exist.
59
85
 
60
 
* Fri Feb  3 2006 Zack Cerza <zcerza@redhat.com>
 
86
* Fri Feb  3 2006 Zack Cerza <zcerza@redhat.com> - 0.5.0-1
61
87
- New upstream release.
62
88
- Added missing BuildRequires on at-spi-devel.
63
89
- Added Requires on pyspi >= 0.5.3.
67
93
- Make sure /usr/share/doc/dogtail is removed.
68
94
- Added 'gtk-update-icon-cache' to %post.
69
95
 
70
 
* Mon Oct 24 2005 Zack Cerza <zcerza@redhat.com>
 
96
* Mon Oct 24 2005 Zack Cerza <zcerza@redhat.com> - 0.4.3-1
71
97
- New upstream release.
72
98
 
73
 
* Sat Oct  8 2005 Jeremy Katz <katzj@redhat.com> 
 
99
* Sat Oct  8 2005 Jeremy Katz <katzj@redhat.com> - 0.4.2-1
74
100
- Initial build.
75
101