[packages/protobuf] - fix building python bindings - rel 4

baggins baggins at pld-linux.org
Thu May 5 10:22:24 CEST 2016


commit 81c7e5774da1a18cade25dab87ec7ddcf8fc7b0a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu May 5 10:22:00 2016 +0200

    - fix building python bindings
    - rel 4

 protobuf.spec | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/protobuf.spec b/protobuf.spec
index d5ea17e..aa4f674 100644
--- a/protobuf.spec
+++ b/protobuf.spec
@@ -9,7 +9,7 @@ Summary:	Protocol Buffers - Google's data interchange format
 Summary(pl.UTF-8):	Protocol Buffers - format wymiany danych Google
 Name:		protobuf
 Version:	2.6.1
-Release:	3
+Release:	4
 License:	BSD
 Group:		Libraries
 Source0:	https://github.com/google/protobuf/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -175,8 +175,7 @@ opisów buforów protokołowych (Protocol Buffers).
 
 %if %{with python}
 cd python
-%{__python} setup.py build
-%{__sed} -i -e 1d build/lib/google/protobuf/descriptor_pb2.py
+%py_build
 cd ..
 %endif
 
@@ -200,10 +199,7 @@ cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_vimdatadir}/ftdetect/proto.vim
 
 %if %{with python}
 cd python
-%{__python} setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--single-version-externally-managed \
-	--optimize=2
+%py_install
 %py_postclean
 cd ..
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/protobuf.git/commitdiff/81c7e5774da1a18cade25dab87ec7ddcf8fc7b0a



More information about the pld-cvs-commit mailing list