[opensuse-packaging] Supplements package with a required version
Hello, I have package mozilla-xulrunner191, which can make use of package mozilla-xulrunner191-kde4, but only of a specific version. How do I express that using rpm dependencies? Currently the -kde4 package has "Supplements: packageand(mozilla-xulrunner191:kdebase4-workspace)" to be pulled in when both the main package and the KDE desktop are installed. I however don't know how to express the version dependency, since the -kde4 package does not care what the version of the main package is, but the main package has a version requirement on the -kde4 package, if it is installed. I cannot use Requires in the main package, since -kde4 is optional. If I use Recommends in the main package, I don't know how to recommend the -kde4 package only if KDE is also installed. Is there a way? -- Lubos Lunak KDE developer -------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org Lihovarska 1060/12 tel: +420 284 028 972 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi, On Sun, 30 Aug 2009, Lubos Lunak wrote:
I have package mozilla-xulrunner191, which can make use of package mozilla-xulrunner191-kde4, but only of a specific version. How do I express that using rpm dependencies?
Currently the -kde4 package has "Supplements: packageand(mozilla-xulrunner191:kdebase4-workspace)" to be pulled in when both the main package and the KDE desktop are installed. I however don't know how to express the version dependency, since the -kde4 package does not care what the version of the main package is, but the main package has a version requirement on the -kde4 package, if it is installed. I cannot use Requires in the main package, since -kde4 is optional. If I use Recommends in the main package, I don't know how to recommend the -kde4 package only if KDE is also installed.
Is there a way?
Maybe one possibility would be to add Conflict: mozilla-xulrunner191-kde4 != good.version in the mozilla-xulrunner191 package. That has the obvious problem when another good version of -kde4 comes out, but should help in the mean time. Otherwise I'm not aware of how to model this. Ciao, Michael. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Monday 07 of September 2009, Michael Matz wrote:
On Sun, 30 Aug 2009, Lubos Lunak wrote:
I have package mozilla-xulrunner191, which can make use of package mozilla-xulrunner191-kde4, but only of a specific version. How do I express that using rpm dependencies?
Currently the -kde4 package has "Supplements: packageand(mozilla-xulrunner191:kdebase4-workspace)" to be pulled in when both the main package and the KDE desktop are installed. I however don't know how to express the version dependency, since the -kde4 package does not care what the version of the main package is, but the main package has a version requirement on the -kde4 package, if it is installed. I cannot use Requires in the main package, since -kde4 is optional. If I use Recommends in the main package, I don't know how to recommend the -kde4 package only if KDE is also installed.
Is there a way?
Maybe one possibility would be to add Conflict: mozilla-xulrunner191-kde4 != good.version in the mozilla-xulrunner191 package. That has the obvious problem when another good version of -kde4 comes out, but should help in the mean time. Otherwise I'm not aware of how to model this.
Actually I have already somehow solved this, in a way similar to yours. Now mozilla-xulrunner191 has additional provides "mozilla-xulrunner191-kde4-version = <version>" and the -kde4 package requires the version. Since it is also Supplements for the main package, it will only be installed if the versions match. -- Lubos Lunak KDE developer -------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org Lihovarska 1060/12 tel: +420 284 084 672 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Lubos Lunak
-
Michael Matz