]> git.pld-linux.org Git - packages/brltty.git/commitdiff
- fix python bindings auto/th/brltty-5.2-9
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 5 Dec 2015 18:07:35 +0000 (19:07 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 5 Dec 2015 18:07:35 +0000 (19:07 +0100)
- rel 9

brltty.spec

index 2d1a8bf89b79af4c6241b350d5f5c0e2e49310ac..e793d4c587030c5b840af80fc0994be5f21d80f3 100644 (file)
@@ -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
 
This page took 0.261998 seconds and 4 git commands to generate.