[packages/python-pyatspi] - noarch package
baggins
baggins at pld-linux.org
Sat Mar 6 18:51:28 CET 2021
commit 54c320b32666f4075e6ec633029b0b2f00022cac
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Mar 6 18:51:19 2021 +0100
- noarch package
python-pyatspi.spec | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/python-pyatspi.spec b/python-pyatspi.spec
index dff2774..6d9705e 100644
--- a/python-pyatspi.spec
+++ b/python-pyatspi.spec
@@ -3,7 +3,7 @@
%bcond_without python2 # Python 2.x module
%bcond_without python3 # Python 3.x module
#
-%define module pyatspi
+%define module pyatspi
Summary: AT-SPI Python bindings
Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona
Name: python-%{module}
@@ -29,6 +29,7 @@ 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
@@ -56,19 +57,28 @@ Ten pakiet dostarcza wiązania AT-SPI dla Pythona 3.
%setup -q -n %{module}-%{version}
%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%if %{with python3}
-mkdir py3
+mkdir -p py3
cd py3
../%configure \
- --with-python="/usr/bin/python3"
+ --host=%{_host} \
+ --build=%{_build} \
+ --with-python="%{__python3}"
%{__make}
cd ..
%endif
%if %{with python2}
-mkdir py2
+mkdir -p py2
cd py2
../%configure \
+ --host=%{_host} \
+ --build=%{_build} \
--with-python="%{__python}"
%{__make}
cd ..
@@ -101,5 +111,5 @@ rm -rf $RPM_BUILD_ROOT
%files -n python3-%{module}
%defattr(644,root,root,755)
%doc AUTHORS NEWS README
-%{py3_sitedir}/pyatspi
+%{py3_sitescriptdir}/pyatspi
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pyatspi.git/commitdiff/54c320b32666f4075e6ec633029b0b2f00022cac
More information about the pld-cvs-commit
mailing list