[packaging] Adapt packaging to using a single spec file for both core and qt5. Contributes to JB#981