3 %bcond_without python2 # Python 2.x module
4 %bcond_without python3 # Python 3.x module
7 Summary: AT-SPI Python bindings
8 Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona
13 Group: Development/Languages/Python
14 Source0: https://download.gnome.org/sources/pyatspi/2.38/%{module}-%{version}.tar.xz
15 # Source0-md5: bac820e859310c64fe37c227be657656
16 URL: https://wiki.linuxfoundation.org/accessibility/d-bus
17 BuildRequires: pkgconfig
18 BuildRequires: python-pygobject3-common-devel >= 3.0.0
19 BuildRequires: rpm-pythonprov
20 BuildRequires: tar >= 1:1.22
23 BuildRequires: python-devel >= 1:2.6
26 BuildRequires: python3-devel >= 1:3.2
28 Requires: at-spi2-core >= 2.12.0
29 Requires: gobject-introspection
30 Requires: python-modules
31 Requires: python-pygobject3 >= 3.0.0
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 This package provides AT-SPI Python bindings.
38 %description -l pl.UTF-8
39 Ten pakiet dostarcza wiązania AT-SPI dla Pythona.
41 %package -n python3-%{module}
42 Summary: AT-SPI Python 3 bindings
43 Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona 3
44 Group: Development/Languages/Python
45 Requires: at-spi2-core >= 2.12.0
46 Requires: gobject-introspection
47 Requires: python3-modules
48 Requires: python3-pygobject3 >= 3.0.0
50 %description -n python3-%{module}
51 This package provides AT-SPI Python 3 bindings.
53 %description -n python3-%{module} -l pl.UTF-8
54 Ten pakiet dostarcza wiązania AT-SPI dla Pythona 3.
57 %setup -q -n %{module}-%{version}
69 --host=%{_host_alias} \
70 --build=%{_build_alias} \
71 --with-python="%{__python3}"
80 --host=%{_host_alias} \
81 --build=%{_build_alias} \
82 --with-python="%{__python}"
88 rm -rf $RPM_BUILD_ROOT
91 %{__make} -C py3 install \
92 DESTDIR=$RPM_BUILD_ROOT
96 %{__make} -C py2 install \
97 DESTDIR=$RPM_BUILD_ROOT
101 rm -rf $RPM_BUILD_ROOT
105 %defattr(644,root,root,755)
106 %doc AUTHORS NEWS README
107 %{py_sitescriptdir}/pyatspi
111 %files -n python3-%{module}
112 %defattr(644,root,root,755)
113 %doc AUTHORS NEWS README
114 %{py3_sitescriptdir}/pyatspi