]> git.pld-linux.org Git - packages/python-pyatspi.git/blame - python-pyatspi.spec
Add module for python3. Release 2
[packages/python-pyatspi.git] / python-pyatspi.spec
CommitLineData
685f0dca
MB
1%define module pyatspi
2Summary: AT-SPI Python bindings
3Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona
4Name: python-%{module}
47cfc02a 5Version: 2.8.0
ad61a71f 6Release: 2
685f0dca
MB
7License: LGPL v2
8Group: Development/Languages/Python
47cfc02a
ŁK
9Source0: http://ftp.gnome.org/pub/GNOME/sources/pyatspi/2.8/%{module}-%{version}.tar.xz
10# Source0-md5: 930f51c62cca60ebdf90f735d26385b2
685f0dca
MB
11URL: http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus
12BuildRequires: pkgconfig
aff802e4 13BuildRequires: python-devel >= 1:2.6
685f0dca 14BuildRequires: python-distribute
128fdc70 15BuildRequires: python-pygobject3-devel >= 3.0.0
685f0dca 16BuildRequires: rpm-pythonprov
128fdc70
MB
17BuildRequires: tar >= 1:1.22
18BuildRequires: xz
47cfc02a 19Requires: at-spi2-core >= 2.8.0
ad61a71f 20Requires: gobject-introspection
685f0dca 21Requires: python-modules
128fdc70 22Requires: python-pygobject3 >= 3.0.0
685f0dca
MB
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26This package provides AT-SPI Python bindings.
27
28%description -l pl.UTF-8
29Ten pakiet dostarcza wiązania AT-SPI dla Pythona.
30
ad61a71f
MB
31%package -n python3-%{module}
32Summary: AT-SPI Python 3 bindings
33Summary(pl.UTF-8): Wiązania AT-SPI dla Pythona 3
34Group: Development/Languages/Python
35Requires: at-spi2-core >= 2.8.0
36Requires: gobject-introspection
37Requires: python3-modules
38Requires: python3-pygobject3 >= 3.0.0
39
40%description -n python3-%{module}
41This package provides AT-SPI Python 3 bindings.
42
43%description -n python3-%{module} -l pl.UTF-8
44Ten pakiet dostarcza wiązania AT-SPI dla Pythona 3.
45
685f0dca
MB
46%prep
47%setup -q -n %{module}-%{version}
48
49%build
ad61a71f
MB
50mkdir py3
51cd py3
52../%configure \
53 --with-python="/usr/bin/python3"
685f0dca 54%{__make}
ad61a71f
MB
55cd ..
56
57mkdir py2
58cd py2
59../%configure \
60 --with-python="%{__python}"
61%{__make}
62cd ..
685f0dca
MB
63
64%install
65rm -rf $RPM_BUILD_ROOT
66
ad61a71f
MB
67%{__make} -C py3 install \
68 DESTDIR=$RPM_BUILD_ROOT
69
70%{__make} -C py2 install \
685f0dca
MB
71 DESTDIR=$RPM_BUILD_ROOT
72
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76%files
77%defattr(644,root,root,755)
78%doc AUTHORS NEWS README
79%{py_sitescriptdir}/pyatspi
ad61a71f
MB
80
81%files -n python3-%{module}
82%defattr(644,root,root,755)
83%{py3_sitescriptdir}/pyatspi
This page took 0.127404 seconds and 4 git commands to generate.