[packages/python3-pyatspi] - python-pyatspi.spec updated to 2.58.0 (python3 only now)

qboosh qboosh at pld-linux.org
Sat Sep 13 20:40:45 CEST 2025


commit 24019af1bb05c32303497f95afe06bfdc9ef469c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 13 20:43:40 2025 +0200

    - python-pyatspi.spec updated to 2.58.0 (python3 only now)

 python-pyatspi.spec  | 118 ---------------------------------------------------
 python3-pyatspi.spec |  63 +++++++++++++++++++++++++++
 2 files changed, 63 insertions(+), 118 deletions(-)
---
diff --git a/python-pyatspi.spec b/python-pyatspi.spec
deleted file mode 100644
index 368f94f..0000000
--- a/python-pyatspi.spec
+++ /dev/null
@@ -1,118 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2		# Python 2.x module
-%bcond_without	python3		# Python 3.x module
-#
-%define		module	pyatspi
-Summary:	AT-SPI Python bindings
-Summary(pl.UTF-8):	Wiązania AT-SPI dla Pythona
-Name:		python-%{module}
-Version:	2.46.1
-Release:	5
-License:	LGPL v2
-Group:		Development/Languages/Python
-Source0:	https://download.gnome.org/sources/pyatspi/2.46/%{module}-%{version}.tar.xz
-# Source0-md5:	0f2bfade055457cb0c2389fd46d1ad70
-URL:		https://wiki.linuxfoundation.org/accessibility/d-bus
-BuildRequires:	pkgconfig
-BuildRequires:	python-pygobject3-common-devel >= 3.0.0
-BuildRequires:	rpm-pythonprov
-BuildRequires:	tar >= 1:1.22
-BuildRequires:	xz
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.6
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.2
-%endif
-Requires:	at-spi2-core >= 2.12.0
-Requires:	gobject-introspection
-Requires:	python-modules
-Requires:	python-pygobject3 >= 3.0.0
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-This package provides AT-SPI Python bindings.
-
-%description -l pl.UTF-8
-Ten pakiet dostarcza wiązania AT-SPI dla Pythona.
-
-%package -n python3-%{module}
-Summary:	AT-SPI Python 3 bindings
-Summary(pl.UTF-8):	Wiązania AT-SPI dla Pythona 3
-Group:		Development/Languages/Python
-Requires:	at-spi2-core >= 2.12.0
-Requires:	gobject-introspection
-Requires:	python3-modules
-Requires:	python3-pygobject3 >= 3.0.0
-
-%description -n python3-%{module}
-This package provides AT-SPI Python 3 bindings.
-
-%description -n python3-%{module} -l pl.UTF-8
-Ten pakiet dostarcza wiązania AT-SPI dla Pythona 3.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-
-%define configuredir ..
-
-%if %{with python3}
-mkdir -p py3
-cd py3
-%configure \
-	--host=%{_host_alias} \
-	--build=%{_build_alias} \
-	--with-python="%{__python3}"
-%{__make}
-cd ..
-%endif
-
-%if %{with python2}
-mkdir -p py2
-cd py2
-%configure \
-	--host=%{_host_alias} \
-	--build=%{_build_alias} \
-	--with-python="%{__python}"
-%{__make}
-cd ..
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python3}
-%{__make} -C py3 install \
-	DESTDIR=$RPM_BUILD_ROOT
-%endif
-
-%if %{with python2}
-%{__make} -C py2 install \
-	DESTDIR=$RPM_BUILD_ROOT
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc AUTHORS NEWS README.md
-%{py_sitescriptdir}/pyatspi
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc AUTHORS NEWS README.md
-%{py3_sitescriptdir}/pyatspi
-%endif
diff --git a/python3-pyatspi.spec b/python3-pyatspi.spec
new file mode 100644
index 0000000..ed3cb56
--- /dev/null
+++ b/python3-pyatspi.spec
@@ -0,0 +1,63 @@
+%define		module	pyatspi
+Summary:	AT-SPI Python 3 bindings
+Summary(pl.UTF-8):	Wiązania AT-SPI dla Pythona 3
+Name:		python3-%{module}
+Version:	2.58.0
+Release:	1
+License:	LGPL v2
+Group:		Development/Languages/Python
+Source0:	https://download.gnome.org/sources/pyatspi/2.58/%{module}-%{version}.tar.xz
+# Source0-md5:	0e02d23694c6601ee1165c4cb09947a8
+URL:		https://wiki.linuxfoundation.org/accessibility/d-bus
+BuildRequires:	meson >= 0.46.0
+BuildRequires:	ninja >= 1.5
+BuildRequires:	pkgconfig
+BuildRequires:	python-pygobject3-common-devel >= 3.0.0
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.042
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
+BuildRequires:	python3-devel >= 1:3.2
+%if %{with tests}
+BuildRequires:	at-spi2-core-devel >= 2.46.0
+BuildRequires:	dbus-devel >= 1.0
+BuildRequires:	glib2-devel >= 1:1.36.0
+BuildRequires:	libxml2-devel >= 2.0
+%endif
+Requires:	at-spi2-core >= 2.46.0
+Requires:	dbus-libs >= 1.0
+Requires:	glib2 >= 1:1.36.0
+Requires:	gobject-introspection
+# gi.overrides.Atspi
+Requires:	python3-atspi >= 2.58
+Requires:	python3-modules >= 1:3.2
+Requires:	python3-pygobject3 >= 3.0.0
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package provides AT-SPI Python 3 bindings.
+
+%description -l pl.UTF-8
+Ten pakiet dostarcza wiązania AT-SPI dla Pythona 3.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%meson
+
+%meson_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%meson_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README.md
+%{py3_sitescriptdir}/pyatspi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pyatspi.git/commitdiff/24019af1bb05c32303497f95afe06bfdc9ef469c



More information about the pld-cvs-commit mailing list