When you deal with a big project and you need to create RPM packages for RHEL-based Linux distributions, it's often convenient to sparse your soft into RPM subpackages (for instance: -client, -server, -devel, -debuginfo etc). In this case you can get multiple packages that contain different parts of the project using the only spec file.
I would like to know if this functionality is supported in standard Python packaging modules (setuptools or distutils) in order to build multiple differing rpm packages from one project. I guess that something in my setup.py should correlate to this section of spec file:
%package server %package client