!5 remove python2-pyatspi subpackage
From: @jinzhimin369 Reviewed-by: @orange-snn Signed-off-by: @orange-snn
This commit is contained in:
commit
7af3a4bd11
36
pyatspi.spec
36
pyatspi.spec
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
Name: pyatspi
|
Name: pyatspi
|
||||||
Version: 2.33.92
|
Version: 2.33.92
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Python client bindings for D-Bus AT-SPI
|
Summary: Python client bindings for D-Bus AT-SPI
|
||||||
License: LGPLv2 and GPLv2
|
License: LGPLv2 and GPLv2
|
||||||
URL: https://wiki.linuxfoundation.org/en/Accessibility/ATK/AT-SPI/AT-SPI_on_D-Bus
|
URL: https://wiki.linuxfoundation.org/en/Accessibility/ATK/AT-SPI/AT-SPI_on_D-Bus
|
||||||
Source0: https://download.gnome.org/sources/pyatspi/2.33/%{name}-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/pyatspi/2.33/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
BuildRequires: atk-devel dbus-devel dbus-glib-devel glib2-devel gtk2-devel libxml2-devel
|
BuildRequires: atk-devel dbus-devel dbus-glib-devel glib2-devel gtk2-devel libxml2-devel
|
||||||
BuildRequires: pygobject3-devel python2-dbus python2-devel python2-enum34 python3-dbus python3-devel
|
BuildRequires: pygobject3-devel python3-dbus python3-devel
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -23,19 +23,6 @@ to use D-Bus rather than ORBIT / CORBA for its transport protocol.
|
|||||||
|
|
||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
%package -n python2-pyatspi
|
|
||||||
Summary: Python2 client bindings for D-Bus AT-SPI
|
|
||||||
Requires: at-spi2-core python2-gobject
|
|
||||||
|
|
||||||
%{?python_provide:%python_provide python2-pyatspi}
|
|
||||||
|
|
||||||
Provides: pyatspi = %{version}-%{release}
|
|
||||||
Obsoletes: pyatspi < %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-pyatspi
|
|
||||||
%_description
|
|
||||||
This package includes a python2 client library for the AT-SPI.
|
|
||||||
|
|
||||||
%package -n python3-pyatspi
|
%package -n python3-pyatspi
|
||||||
Summary: Python3 client bindings for D-Bus AT-SPI
|
Summary: Python3 client bindings for D-Bus AT-SPI
|
||||||
Requires: at-spi2-core python3-gobject
|
Requires: at-spi2-core python3-gobject
|
||||||
@ -46,35 +33,19 @@ This package includes a python3 client library for the AT-SPI.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-python=python2 --enable-tests
|
|
||||||
make
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%configure --with-python=python3 --enable-tests
|
%configure --with-python=python3 --enable-tests
|
||||||
make
|
make
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%make_install
|
|
||||||
popd
|
|
||||||
|
|
||||||
cp -a examples python3-examples
|
cp -a examples python3-examples
|
||||||
sed -i '1s|^#!/usr/bin/python|#!%{__python3}|' python3-examples/magFocusTracker.py
|
sed -i '1s|^#!/usr/bin/python|#!%{__python3}|' python3-examples/magFocusTracker.py
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
%files -n python2-pyatspi
|
|
||||||
%license COPYING COPYING.GPL
|
|
||||||
%doc AUTHORS README
|
|
||||||
%doc examples/
|
|
||||||
%{python2_sitelib}/
|
|
||||||
|
|
||||||
%files -n python3-pyatspi
|
%files -n python3-pyatspi
|
||||||
%license COPYING COPYING.GPL
|
%license COPYING COPYING.GPL
|
||||||
%doc AUTHORS README
|
%doc AUTHORS README
|
||||||
@ -82,6 +53,9 @@ sed -i '1s|^#!/usr/bin/python|#!%{__python3}|' python3-examples/magFocusTracker.
|
|||||||
%{python3_sitelib}/
|
%{python3_sitelib}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 jinzhimin<jinzhimin2@huawei.com> - 2.33.92-3
|
||||||
|
- remove python2-pyatspi subpackage
|
||||||
|
|
||||||
* Wed Sep 9 2020 chengguipeng<chengguipeng1@huawei.com> - 1.1.2-2
|
* Wed Sep 9 2020 chengguipeng<chengguipeng1@huawei.com> - 1.1.2-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user