Accepting request 802684 from devel:openSUSE:Factory:Apps

OBS-URL: https://build.opensuse.org/request/show/802684
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dogtail?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2020-05-11 14:31:09 +00:00 committed by Git OBS Bridge
parent 996abf2039
commit 1c56e321bc
5 changed files with 40 additions and 40 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:564dae5fba4fa3a7f6d53503e0877dad56ae8bce10e181d3d2c0bdbf063f4e36
size 119882

3
dogtail-0.9.11.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:801a15b183916df5adadd50338e82f76426b5b598477d2dc5e2258b1ce47236b
size 132832

View File

@ -1,13 +0,0 @@
Index: dogtail-0.9.0/dogtail/tree.py
===================================================================
--- dogtail-0.9.0.orig/dogtail/tree.py
+++ dogtail-0.9.0/dogtail/tree.py
@@ -84,6 +84,8 @@ except ImportError: # pragma: no cover
# We optionally import the bindings for libWnck.
try:
+ import gi
+ gi.require_version('Wnck', '3.0')
from gi.repository import Wnck
gotWnck = True # pragma: no cover
except ImportError:

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Fri May 8 03:00:36 UTC 2020 - Michael Gorse <mgorse@suse.com>
- Update to version 0.9.11:
+ There has been a good deal of fixes and improvements since last
year's release. We're not really ready for 1.0 yet, which is
why we release this important cumulative release as 0.9.10. We
have also moved our homesite to gitlab (fedoraproject has been
discontinued). For the list of changes, simply go to:
https://gitlab.com/dogtail/dogtail/commits/master
- Drop dogtail-wnck-3.0.patch: fixed upstream.
- Update Url.
- Adjust %build and BuildRequires to use python 3.
- Require python3-setuptools.
- Run spec through spec-cleaner.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun May 8 17:12:59 UTC 2016 - badshah400@gmail.com Sun May 8 17:12:59 UTC 2016 - badshah400@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package dogtail # spec file for package dogtail
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,35 +12,34 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: dogtail Name: dogtail
Version: 0.9.0 Version: 0.9.11
Release: 0 Release: 0
Summary: GUI test tool and automation framework Summary: GUI test tool and automation framework
License: GPL-2.0 License: GPL-2.0-only
Url: http://dogtail.fedorahosted.org/ URL: https://gitlab.com/dogtail/dogtail/
Source0: http://fedorahosted.org/released/dogtail/%{name}-%{version}.tar.gz Source0: https://gitlab.com/dogtail/dogtail/raw/released/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM dogtail-wnck-3.0.patch fcrozat@suse.com -- ensure Wnck 3.0 typelib is required
Patch0: dogtail-wnck-3.0.patch
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: gobject-introspection BuildRequires: gobject-introspection
BuildRequires: hicolor-icon-theme BuildRequires: hicolor-icon-theme
BuildRequires: python-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
Requires: hicolor-icon-theme Requires: hicolor-icon-theme
Requires: python-atspi Requires: python3-atspi
Requires: python-cairo Requires: python3-cairo
Requires: python-gobject Requires: python3-gobject
Requires: python-imaging Requires: python3-imaging
Requires: rpm-python Requires: python3-rpm
Requires: xinit Requires: xinit
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200
Requires: python-gobject-Gdk
%endif
BuildArch: noarch BuildArch: noarch
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200
Requires: python3-gobject-Gdk
%endif
%description %description
GUI test tool and automation framework that uses assistive technologies to GUI test tool and automation framework that uses assistive technologies to
@ -48,15 +47,14 @@ communicate with desktop applications.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
python ./setup.py build python3 ./setup.py build
%install %install
python ./setup.py install -O2 --root=%{buildroot} --record=%{name}.files python3 ./setup.py install -O2 --root=%{buildroot} --record=%{name}.files
rm -rf %{buildroot}/%{_docdir}/dogtail rm -rf %{buildroot}/%{_docdir}/dogtail
rm -f %{buildroot}/%{python_sitelib}/%{name}-%{version}-py%{python_version}.egg-info rm -rf %{buildroot}/%{python_sitelib}/%{name}-%{version}-py%{python_version}.egg-info
find examples -type f -exec chmod 0644 \{\} \; find examples -type f -exec chmod 0644 \{\} \;
desktop-file-install %{buildroot}/%{_datadir}/applications/sniff.desktop \ desktop-file-install %{buildroot}/%{_datadir}/applications/sniff.desktop \
--dir=%{buildroot}/%{_datadir}/applications \ --dir=%{buildroot}/%{_datadir}/applications \
@ -69,13 +67,12 @@ desktop-file-install %{buildroot}/%{_datadir}/applications/sniff.desktop \
%icon_theme_cache_postun %icon_theme_cache_postun
%files %files
%defattr(-,root,root)
%{_bindir}/* %{_bindir}/*
%{python_sitelib}/dogtail/ %{python3_sitelib}/dogtail/
%{_datadir}/applications/* %{_datadir}/applications/*
%{_datadir}/dogtail/ %{_datadir}/dogtail/
%{_datadir}/icons/hicolor/*/apps/%{name}*.* %{_datadir}/icons/hicolor/*/apps/%{name}*.*
%doc COPYING %license COPYING
%doc README %doc README
%doc NEWS %doc NEWS
%doc %{_datadir}/doc/dogtail %doc %{_datadir}/doc/dogtail