|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
|
||||
|
Quote:
You can do that during the install with pushd/popd; Code:
pushd %{buildroot}%{_datadir}/myapp
%{__ln_s} dict-en.db dict.db
popd
Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default up 7 days 23:22, 2 users, load average: 0.10, 0.06, 0.06 GPU GeForce 8600 GTS Silent - Driver Version: 190.18 |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|