]> git.pld-linux.org Git - packages/python-pyatspi.git/blame - python-pyatspi.spec
Update to 2.24.0
[packages/python-pyatspi.git] / python-pyatspi.spec
CommitLineData
c2d3f0f5
JB
1#
2# Conditional build:
3%bcond_without python2 # Python 2.x module
4%bcond_without python3 # Python 3.x module
5#
685f0dca
MB
6%define module pyatspi
7Summary: AT-SPI Python bindings
8Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona
9Name: python-%{module}
7d2eb224 10Version: 2.24.0
e4e81a44 11Release: 1
685f0dca
MB
12License: LGPL v2
13Group: Development/Languages/Python
7d2eb224
MB
14Source0: http://ftp.gnome.org/pub/GNOME/sources/pyatspi/2.24/%{module}-%{version}.tar.xz
15# Source0-md5: db049a2306a93ef32e3d5a3412918e75
6b1b4801 16URL: https://www.linuxfoundation.org/en/AT-SPI_on_D-Bus
685f0dca 17BuildRequires: pkgconfig
c2d3f0f5 18BuildRequires: python-pygobject3-common-devel >= 3.0.0
685f0dca 19BuildRequires: rpm-pythonprov
128fdc70
MB
20BuildRequires: tar >= 1:1.22
21BuildRequires: xz
c2d3f0f5
JB
22%if %{with python2}
23BuildRequires: python-devel >= 1:2.6
c2d3f0f5
JB
24%endif
25%if %{with python3}
423c85cf 26BuildRequires: python3-devel >= 1:3.2
c2d3f0f5 27%endif
cb632f17 28Requires: at-spi2-core >= 2.12.0
ad61a71f 29Requires: gobject-introspection
685f0dca 30Requires: python-modules
128fdc70 31Requires: python-pygobject3 >= 3.0.0
685f0dca
MB
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35This package provides AT-SPI Python bindings.
36
37%description -l pl.UTF-8
38Ten pakiet dostarcza wiązania AT-SPI dla Pythona.
39
ad61a71f
MB
40%package -n python3-%{module}
41Summary: AT-SPI Python 3 bindings
42Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona 3
43Group: Development/Languages/Python
cb632f17 44Requires: at-spi2-core >= 2.12.0
ad61a71f
MB
45Requires: gobject-introspection
46Requires: python3-modules
47Requires: python3-pygobject3 >= 3.0.0
48
49%description -n python3-%{module}
50This package provides AT-SPI Python 3 bindings.
51
52%description -n python3-%{module} -l pl.UTF-8
53Ten pakiet dostarcza wiązania AT-SPI dla Pythona 3.
54
685f0dca
MB
55%prep
56%setup -q -n %{module}-%{version}
57
58%build
c2d3f0f5 59%if %{with python3}
ad61a71f
MB
60mkdir py3
61cd py3
62../%configure \
63 --with-python="/usr/bin/python3"
685f0dca 64%{__make}
ad61a71f 65cd ..
c2d3f0f5 66%endif
ad61a71f 67
c2d3f0f5 68%if %{with python2}
ad61a71f
MB
69mkdir py2
70cd py2
71../%configure \
72 --with-python="%{__python}"
73%{__make}
74cd ..
c2d3f0f5 75%endif
685f0dca
MB
76
77%install
78rm -rf $RPM_BUILD_ROOT
79
c2d3f0f5 80%if %{with python3}
ad61a71f
MB
81%{__make} -C py3 install \
82 DESTDIR=$RPM_BUILD_ROOT
c2d3f0f5 83%endif
ad61a71f 84
c2d3f0f5 85%if %{with python2}
ad61a71f 86%{__make} -C py2 install \
685f0dca 87 DESTDIR=$RPM_BUILD_ROOT
c2d3f0f5 88%endif
685f0dca
MB
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
c2d3f0f5 93%if %{with python2}
685f0dca
MB
94%files
95%defattr(644,root,root,755)
96%doc AUTHORS NEWS README
97%{py_sitescriptdir}/pyatspi
c2d3f0f5 98%endif
ad61a71f 99
c2d3f0f5 100%if %{with python3}
ad61a71f
MB
101%files -n python3-%{module}
102%defattr(644,root,root,755)
c2d3f0f5 103%doc AUTHORS NEWS README
55b88e96 104%{py3_sitedir}/pyatspi
c2d3f0f5 105%endif
This page took 0.108058 seconds and 4 git commands to generate.