Hello everybody,
This may be more a RPM-related question, but I don’t know of any valid place where to ask this…
I’m trying to build a set of RPM packages from a single source tree (and therefore a single spec file), for a dictionary application. The main RPM would contain the binary, and the subpackages the dictionaries generated for different languages. In order to use the application, the user must install the binary + one of the dictionary packages corresponding to his preferred language.
The problem is that these dictionary subpackages all refer to a file which name is the same, but which content is different. After hours of searching, I have not found any way to allow this. The desired effect can be obtained with dpkg since it is possible to specify a given file and give it a different name, but I have not figured out how to do the same with RPM. To be more explicit, say I have 3 different dictionary files:
dict-en.db
dict-fr.db
dict-de.db
and what I need to obtain, is 3 different sub-packages (dict-en.rpm, dict-fr.rpm and dict-de.rpm) where the corresponding dictionary file gets installed into /usr/share/myapp/dict.db. Of course, the three packages would be conflicting since they refer to the same file in the filesystem.
Is there an easy way to obtain that? If so, could someone give me a hint or two about how to do it?
Thanks,
Alex.