vhumpa / rpms / dogtail

Forked from rpms/dogtail 2 years ago
Clone
zcerza 68c2696
Summary: GUI test tool and automation framework
zcerza 68c2696
Name: dogtail
zcerza 68c2696
Version: 0.5.2
zcerza 1353438
Release: 2%{?dist}
zcerza 68c2696
License: GPL
zcerza 68c2696
Group: User Interface/X
zcerza 68c2696
URL: http://people.redhat.com/zcerza/dogtail/
zcerza 68c2696
Source0: http://people.redhat.com/zcerza/dogtail/releases/dogtail-%{version}.tar.gz
zcerza 68c2696
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
zcerza 68c2696
BuildArch: noarch
zcerza 68c2696
BuildRequires: python
zcerza 68c2696
BuildRequires: desktop-file-utils
zcerza 68c2696
Requires: pyspi >= 0.5.5
zcerza 68c2696
Requires: pygtk2
zcerza 68c2696
Requires: rpm-python
zcerza 68c2696
Requires: xorg-x11-server-Xvfb
zcerza 1353438
patch0: headless-gconf.patch
zcerza 1353438
patch1: desktop-file-categories.patch
zcerza 68c2696
zcerza 68c2696
%description
zcerza 68c2696
GUI test tool and automation framework that uses assistive technologies to 
zcerza 68c2696
communicate with desktop applications.
zcerza 68c2696
zcerza 68c2696
%prep
zcerza 68c2696
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
zcerza 68c2696
%setup -q
zcerza 1353438
%patch0 -p0
zcerza 1353438
%patch1 -p0
zcerza 68c2696
zcerza 68c2696
%build
zcerza 68c2696
python ./setup.py build
zcerza 68c2696
zcerza 68c2696
%install
zcerza 68c2696
rm -rf $RPM_BUILD_ROOT
zcerza 68c2696
python ./setup.py install -O2 --root=$RPM_BUILD_ROOT --record=%{name}.files
zcerza 68c2696
rm -rf $RPM_BUILD_ROOT/%{_docdir}/dogtail
zcerza 68c2696
find examples -type f -exec chmod 0644 \{\} \;
zcerza 68c2696
desktop-file-install $RPM_BUILD_ROOT/%{_datadir}/applications/sniff.desktop \
zcerza 68c2696
  --vendor=fedora \
zcerza 68c2696
  --dir=$RPM_BUILD_ROOT/%{_datadir}/applications \
zcerza 68c2696
  --add-category X-Fedora \
zcerza 68c2696
  --delete-original
zcerza 68c2696
zcerza 68c2696
%post
zcerza 68c2696
touch --no-create %{_datadir}/icons/hicolor || :
zcerza 68c2696
[ -x /usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache --quiet -f %{_datadir}/icons/hicolor || :
zcerza 68c2696
zcerza 68c2696
%postun
zcerza 68c2696
touch --no-create %{_datadir}/icons/hicolor || :
zcerza 68c2696
[ -x /usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache --quiet -f %{_datadir}/icons/hicolor || :
zcerza 68c2696
zcerza 68c2696
%clean
zcerza 68c2696
rm -rf $RPM_BUILD_ROOT
zcerza 68c2696
zcerza 68c2696
%files
zcerza 68c2696
%defattr(-,root,root,-)
zcerza 68c2696
%{_bindir}/*
zcerza 68c2696
%{python_sitelib}/dogtail/
zcerza 68c2696
%{_datadir}/applications/*
zcerza 68c2696
%{_datadir}/dogtail/
zcerza 68c2696
%{_datadir}/icons/hicolor/*
zcerza 68c2696
%doc COPYING
zcerza 68c2696
%doc README
zcerza 68c2696
%doc examples/
zcerza 68c2696
zcerza 68c2696
%changelog
zcerza 1353438
* Fri Aug 11 2006 Zack Cerza <zcerza@redhat.com> - 0.5.2-2
zcerza 1353438
- Added headless-gconf.patch to use the python gconf bindings.
zcerza 1353438
- Added desktop-file-categories.patch to put sniff and dogtail-recorder under
zcerza 1353438
  the 'Programming' menu.
zcerza 1353438
zcerza 68c2696
* Tue Aug 01 2006 Zack Cerza <zcerza@redhat.com> - 0.5.2-1
zcerza 68c2696
- New upstream release.
zcerza 68c2696
- Update Requires from Xvfb to xorg-x11-server-Xvfb.
zcerza 68c2696
- Bump pyspi Requires.
zcerza 68c2696
- Remove ImageMagick Requires.
zcerza 68c2696
- Escape post-macro in changelog-macro.
zcerza 68c2696
zcerza 68c2696
* Mon Apr 17 2006 Zack Cerza <zcerza@redhat.com> - 0.5.1-3
zcerza 68c2696
- Fix the URL field.
zcerza 68c2696
zcerza 68c2696
* Tue Mar 21 2006 Zack Cerza <zcerza@redhat.com> - 0.5.1-2
zcerza 68c2696
- Fix URL and Source0 fields.
zcerza 68c2696
- Fix desktop-file-utils magic; use desktop-file-install.
zcerza 68c2696
zcerza 68c2696
* Fri Feb 24 2006 Zack Cerza <zcerza@redhat.com> - 0.5.1-1
zcerza 68c2696
- Remove BuildRequires on at-spi-devel. Added one on python.
zcerza 68c2696
- Use macros instead of absolute paths.
zcerza 68c2696
- Touch _datadir/icons/hicolor/ before running gtk-update-icon-cache.
zcerza 68c2696
- Require and use desktop-file-utils.
zcerza 68c2696
- postun = post.
zcerza 68c2696
- Shorten BuildArchitectures to BuildArch. The former worked, but even vim's 
zcerza 68c2696
  hilighting hated it.
zcerza 68c2696
- Put each *Requires on a separate line.
zcerza 68c2696
- Remove __os_install_post definition.
zcerza 68c2696
- Use Fedora Extras BuildRoot.
zcerza 68c2696
- Instead of _libdir, which kills the build if it's /usr/lib64, use a
zcerza 68c2696
  python macro to define python_sitelib and use that.
zcerza 68c2696
- Remove the executable bit on the examples in install scriptlet.
zcerza 68c2696
- Remove call to /bin/rm in post scriptlet.
zcerza 68c2696
- Use dist in Release.
zcerza 68c2696
zcerza 68c2696
* Fri Feb 17 2006 Zack Cerza <zcerza@redhat.com> - 0.5.0-2
zcerza 68c2696
- It looks like xorg-x11-Xvfb changed names. Require 'Xvfb' instead.
zcerza 68c2696
- Remove Requires on python-elementtree, since RHEL4 didn't have it. The 
zcerza 68c2696
  functionality it provides is probably never used anyway, and will most likely
zcerza 68c2696
  be removed in the future.
zcerza 68c2696
- Don't run gtk-update-icon-cache if it doesn't exist.
zcerza 68c2696
zcerza 68c2696
* Fri Feb  3 2006 Zack Cerza <zcerza@redhat.com> - 0.5.0-1
zcerza 68c2696
- New upstream release.
zcerza 68c2696
- Added missing BuildRequires on at-spi-devel.
zcerza 68c2696
- Added Requires on pyspi >= 0.5.3.
zcerza 68c2696
- Added Requires on rpm-python, pygtk2, ImageMagick, xorg-x11-Xvfb, 
zcerza 68c2696
  python-elementtree.
zcerza 68c2696
- Moved documentation (including examples) to the correct place.
zcerza 68c2696
- Make sure /usr/share/doc/dogtail is removed.
zcerza 68c2696
- Added 'gtk-update-icon-cache' to %%post.
zcerza 68c2696
zcerza 68c2696
* Mon Oct 24 2005 Zack Cerza <zcerza@redhat.com> - 0.4.3-1
zcerza 68c2696
- New upstream release.
zcerza 68c2696
zcerza 68c2696
* Sat Oct  8 2005 Jeremy Katz <katzj@redhat.com> - 0.4.2-1
zcerza 68c2696
- Initial build.
zcerza 68c2696