[packages/brltty] - fix python bindings - rel 9
baggins
baggins at pld-linux.org
Sat Dec 5 19:07:51 CET 2015
commit 850bcb5b6b41fd5561c5bfec38c031d1d912e950
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Dec 5 19:07:35 2015 +0100
- fix python bindings
- rel 9
brltty.spec | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
---
diff --git a/brltty.spec b/brltty.spec
index 2d1a8bf..e793d4c 100644
--- a/brltty.spec
+++ b/brltty.spec
@@ -28,7 +28,7 @@ Summary: Braille display driver for Linux/Unix
Summary(pl.UTF-8): Sterownik do wyświetlaczy Braille'a
Name: brltty
Version: 5.2
-Release: 8
+Release: 9
Group: Daemons
License: GPL v2+ (brltty and drivers), LGPL v2.1+ (APIs)
Source0: http://mielke.cc/brltty/archive/%{name}-%{version}.tar.xz
@@ -273,10 +273,15 @@ CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
%{__make} -j1
+%if %{with python}
+cd Bindings/Python
+%py_build
+cd ../..
+%endif
+
%if %{with python3}
cd Bindings/Python
-%py3_build \
- -b build-3
+%py3_build
cd ../..
%endif
@@ -297,15 +302,15 @@ rm -rf $RPM_BUILD_ROOT
# findlib-specific, useless in rpm
%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllbrlapi_stubs.so.owner
+%if %{with python}
+cd Bindings/Python
+%py_install
+cd ../..
+%endif
+
%if %{with python3}
cd Bindings/Python
-%{__python3} setup.py \
- build \
- -b build-3 \
- install \
- --optimize=2 \
- --skip-build \
- --root=$RPM_BUILD_ROOT
+%py3_install
cd ../..
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/brltty.git/commitdiff/850bcb5b6b41fd5561c5bfec38c031d1d912e950
More information about the pld-cvs-commit
mailing list