3

Is it possible to make a subpackage without the inherited prefix from the master package?

I have a project that has a single install and need to split this into multiple packages, but the subpackages seem to inherit the name from the master package in the form of "package_name-subpackage_name".

Šimon Tóth
  • 8,238

1 Answers1

7

Yes. Use %package -n subpackage; this will suppress the prepending of the base package name.

This is all pretty clear in the RPM docs.

mattdm
  • 40,245
  • Thanks. I still have a problem though, the build still creates the top package, how do I stop this? – Šimon Tóth Apr 22 '13 at 14:52
  • @Let_Me_Be I don't remember offhand if you can even do that. I suggest not worrying about it; either generate the empty package and just don't install it, or (better, I think) use it to install some simple documentation about the collection of subpackages. – mattdm Apr 22 '13 at 14:59