]> git.pld-linux.org Git - packages/python-mysql-connector.git/commitdiff
- use protobuf
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 27 May 2018 12:11:03 +0000 (14:11 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 27 May 2018 12:11:03 +0000 (14:11 +0200)
python-mysql-connector.spec

index 98f8a9656ae50a1c0de7e14f6ffa91e320868d6e..e5a83b0271c101c14bc3f1945f9cb6a84d881720 100644 (file)
@@ -18,12 +18,13 @@ Source0:    http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-
 # Source0-md5: d47704b39d794b287d146c3d772ab896
 Patch0:                32bit.patch
 URL:           http://dev.mysql.com/doc/connector-python/en/
-BuildRequires: rpmbuild(macros) >= 1.710
 BuildRequires: mysql-devel
+BuildRequires: protobuf-devel
 BuildRequires: python-devel
 BuildRequires: python-modules
 %{?with_python3:BuildRequires: python3-modules}
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.710
 Requires:      python-modules
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -49,6 +50,10 @@ driver. An interface to the popular MySQL database server for Python.
 %patch0 -p1
 
 %build
+export MYSQLXPB_PROTOC=%{_bindir}/protoc
+export MYSQLXPB_PROTOBUF_INCLUDE_DIR=%{_includedir}
+export MYSQLXPB_PROTOBUF_LIB_DIR=%{_libdir}
+
 %py_build
 %{?with_tests:%{__python} setup.py test}
 
@@ -60,6 +65,11 @@ driver. An interface to the popular MySQL database server for Python.
 %install
 rm -rf $RPM_BUILD_ROOT
 
+# see NOTE on beginning of the spec
+export MYSQLXPB_PROTOC=%{_bindir}/protoc
+export MYSQLXPB_PROTOBUF_INCLUDE_DIR=%{_includedir}
+export MYSQLXPB_PROTOBUF_LIB_DIR=%{_libdir}
+
 %py_install \
        --with-mysql-capi=%{_prefix}
 %py_postclean
This page took 0.177427 seconds and 4 git commands to generate.