2009-12-16 09:49:13 +00:00
|
|
|
#
|
2011-04-21 15:19:25 +00:00
|
|
|
# spec file for package python-atspi
|
2009-12-16 09:49:13 +00:00
|
|
|
#
|
2017-01-17 12:39:45 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-12-16 09:49:13 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2012-03-11 17:40:28 +00:00
|
|
|
|
2017-05-10 15:37:27 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2009-12-16 09:49:13 +00:00
|
|
|
Name: python-atspi
|
|
|
|
|
%define _name pyatspi
|
2017-03-21 11:11:01 +00:00
|
|
|
Version: 2.24.0
|
2012-01-17 15:58:58 +00:00
|
|
|
Release: 0
|
2009-12-16 09:49:13 +00:00
|
|
|
Summary: Assistive Technology Service Provider Interface - Python bindings
|
2012-01-17 15:58:58 +00:00
|
|
|
License: LGPL-2.0
|
2009-12-16 09:49:13 +00:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
Url: http://www.gnome.org/
|
2017-03-21 11:11:01 +00:00
|
|
|
Source0: http://download.gnome.org/sources/pyatspi/2.24/%{_name}-%{version}.tar.xz
|
2009-12-16 09:49:13 +00:00
|
|
|
BuildRequires: fdupes
|
2017-05-10 15:37:27 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildRequires: python3-2to3
|
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module gobject >= 2.90.1}
|
|
|
|
|
BuildRequires: %{python_module gobject-devel >= 2.90.1}
|
2011-09-02 00:41:49 +00:00
|
|
|
# Needed to have typelib() Requires.
|
|
|
|
|
BuildRequires: gobject-introspection
|
2017-05-10 15:37:27 +00:00
|
|
|
Requires: python-gobject >= 2.90.1
|
|
|
|
|
%ifpython2
|
2009-12-16 09:49:13 +00:00
|
|
|
Requires: dbus-1-python
|
2017-05-10 15:37:27 +00:00
|
|
|
%endif
|
|
|
|
|
%ifpython3
|
|
|
|
|
Requires: dbus-1-python3
|
2013-04-19 16:48:35 +00:00
|
|
|
%endif
|
2009-12-16 09:49:13 +00:00
|
|
|
# The bindings are really useful only if the at-spi registry is running. But
|
|
|
|
|
# it's not a strict runtime dependency.
|
|
|
|
|
Recommends: at-spi2-core
|
2010-05-13 22:41:04 +00:00
|
|
|
# Virtual package, so that apps can depend on it, without having to know which
|
|
|
|
|
# at-spi stack is used. Only the default at-spi stack should define it.
|
2017-05-10 15:37:27 +00:00
|
|
|
%ifpython2
|
2009-12-16 09:49:13 +00:00
|
|
|
Provides: pyatspi
|
2017-05-10 15:37:27 +00:00
|
|
|
Provides: py2atspi
|
|
|
|
|
%endif
|
|
|
|
|
%ifpython3
|
|
|
|
|
Provides: py3atspi
|
2013-04-19 16:48:35 +00:00
|
|
|
%endif
|
2009-12-16 09:49:13 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildArch: noarch
|
2012-09-25 22:12:18 +00:00
|
|
|
# Old versions of at-spi 1.x provided the same files
|
|
|
|
|
Conflicts: at-spi < 1.29.3
|
2017-05-10 15:37:27 +00:00
|
|
|
%python_subpackages
|
2009-12-16 09:49:13 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
AT-SPI is a general interface for applications to make use of the
|
|
|
|
|
accessibility toolkit. This version is based on dbus.
|
|
|
|
|
|
|
|
|
|
This package contains the python bindings for AT-SPI.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2017-05-10 15:37:27 +00:00
|
|
|
# Configure for out-of-tree builds
|
|
|
|
|
%define _configure ../configure
|
|
|
|
|
|
|
|
|
|
%{python_expand mkdir build_%{$python_bin_suffix}
|
|
|
|
|
pushd build_%{$python_bin_suffix}
|
|
|
|
|
export PYTHON=$python
|
2011-04-21 15:19:25 +00:00
|
|
|
%configure
|
2012-09-25 22:12:18 +00:00
|
|
|
make %{?_smp_mflags}
|
2017-05-10 15:37:27 +00:00
|
|
|
popd
|
|
|
|
|
}
|
2009-12-16 09:49:13 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-05-10 15:37:27 +00:00
|
|
|
%{python_expand pushd build_%{$python_bin_suffix}
|
2012-09-25 22:12:18 +00:00
|
|
|
%make_install
|
2017-05-10 15:37:27 +00:00
|
|
|
popd
|
|
|
|
|
}
|
2009-12-16 09:49:13 +00:00
|
|
|
|
2017-05-10 15:37:27 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2009-12-16 09:49:13 +00:00
|
|
|
|
2017-05-10 15:37:27 +00:00
|
|
|
%files %{python_files}
|
2009-12-16 09:49:13 +00:00
|
|
|
%defattr(-,root,root)
|
2017-05-10 15:37:27 +00:00
|
|
|
%doc AUTHORS COPYING COPYING.GPL NEWS README
|
|
|
|
|
%{python_sitelib}/pyatspi/
|
2009-12-16 09:49:13 +00:00
|
|
|
|
|
|
|
|
%changelog
|