Add cpp implementation flags and build req for protobuf
authorYu <jiung.yu@samsung.com>
Mon, 3 May 2021 07:01:35 +0000 (16:01 +0900)
committerYu <jiung.yu@samsung.com>
Mon, 3 May 2021 07:01:35 +0000 (16:01 +0900)
Change-Id: I3f260bdd253eded19a26cf04efe108b9ce4802f5

packaging/python3-protobuf.spec

index 560516ceeae286ddedf9e1a3e86b3b3e33d8eb59..3c12223bf7afcd844b0c169f0650a9764b516a1b 100644 (file)
@@ -8,9 +8,10 @@ Source0:    %{name}-%{version}.tar.gz
 Source1001: %{name}.manifest
 
 BuildRequires:  pkgconfig(python3)
+BuildRequires:  pkgconfig(protobuf)
 BuildRequires:  python3-setuptools
 
-BuildArch:      noarch
+#BuildArch:      noarch
 
 %description
 Protocol Buffers are Google's data interchange format.
@@ -20,10 +21,10 @@ Protocol Buffers are Google's data interchange format.
 cp %{SOURCE1001} .
 
 %build
-%{_bindir}/python3 setup.py build
+%{_bindir}/python3 setup.py build --cpp_implementation
 
 %install
-%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --cpp_implementation
 
 %clean
 
@@ -39,8 +40,10 @@ cp %{SOURCE1001} .
 %{python3_sitelib}/google/protobuf/__pycache__/*.cpython-*.pyc
 %{python3_sitelib}/google/protobuf/compiler/*.py
 %{python3_sitelib}/google/protobuf/compiler/__pycache__/*.cpython-*.pyc
+%{python3_sitelib}/google/protobuf/internal/*.so
 %{python3_sitelib}/google/protobuf/internal/*.py
 %{python3_sitelib}/google/protobuf/internal/__pycache__/*.cpython-*.pyc
+%{python3_sitelib}/google/protobuf/pyext/*.so
 %{python3_sitelib}/google/protobuf/pyext/*.py
 %{python3_sitelib}/google/protobuf/pyext/__pycache__/*.cpython-*.pyc
 %{python3_sitelib}/google/protobuf/util/*.py