But the packaging logic in the spec files of packages that already exist on OBS is very different from fedora.
I would like to make changes to the spec files that come directly from fedora instead of the versions on OBS that are primarily for openSUSE.
For example, which files belong to the main package and which files belong to the sub package. There are also build parameters, dependencies, source patches from fedora, and other things that are different.
In other words I need all the content from fedora, not the content that already exists on OBS mainly for openSUSE.
Once more - OBS has no problems building Fedora RPMs. OBS can even build - gasp - Debian or Ubuntu DPKGs. Which most certainly have “build parameters, dependencies, source patches from [Debian/Ubunut], and other things that are different”.
I think I made it pretty clear at the beginning of my post. I just need the functionality to operate exactly as I described. I don’t need any “workaround”.
BTW I do have no idea what you are talking about. I know OBS can build Fedora’s rpm, I never said it couldn’t. I just said I need to build from a source that comes from fedora, not something that already exists on OBS.
@fxzxmic It seems to me a lack of understanding how the Build Service works? You upload the spec, sources, patches etc, set the product build target and let it build?
This would require me to do the patch operation locally, missing some automation.
The other thing I would ask is if this is a lack of functionality or intentional design. Not asking what ways there are to accomplish the tasks I described.
@fxzxmic Not sure why you don’t just submit your changes back to Fedora to be compatible with openSUSE? Sure it can be automated use a ci pipeline, script it.
The patching is done in OBS. You only upload the patchfile to OBS and „reference“ the patchfile in the spec. The patching is done automatically as part of the build processs. Maybe you need to explain more in detail what more automation you want.
Nearly everything you described in the opening post can be done via OBS. As already described by Malcom, you upload the source, patch and spec to OBS and everytime you change anything at the patch or spec, the package gets automatically rebuild.
Shouldn‘t be that hard for you to get the source and the spec only once from your starting srpm. After that, nearly everything is automated when you change something.
Maybe start with branching of a simple package on OBS to play, learn and understand the functions of OBS.
You’re missing the point, my patch is for the spec file, not for the source.
Also now the problem is that OBS can’t download srpm directly and import it, you have to forward all the files contained in srpm locally to OBS.
If you see my title, you’ll see that I’m not discussing the functionality of osc, only for OBS itself.