I'm trying to build an RPM of Google's protobuf, including the protobuf-python subpackage. Now, this is no problem until i want to build the python subpackage with PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp python setup.py build
. This requires the protobuf header files and lib provided by the protobuf-devel package, which is built from the same .spec and source tarball.
The question is, is it somehow possible to build the (-python) subpackge in such scenario using a single .spec & tarball, or must i create a separate spec?
Here's the .src.rpm if anyone is curious. All i did was to prepend the PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
to python setup.py build
command.