[opensuse-packaging] Supplements package && language, how?
I'm packaging the new fully GPLv2+ spanish voices for festival. I would like them to supplement festival + spanish language. Looking at bundle-lang-common-es in YaST I see it supplements things like "PackageKit & namespace:language(es)"... even if "rpm -q --supplements bundle-lang-common-es" doesn't returns anything. But when looking at the spec file I don't see any Supplements line. Some black magic that adds dependency info in repo metadata but no in the package... how could I use it for festival-spanish-voices? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, Jun 24, 2009 at 05:28:14PM +0200, Cristian Morales Vega wrote:
I'm packaging the new fully GPLv2+ spanish voices for festival. I would like them to supplement festival + spanish language.
Looking at bundle-lang-common-es in YaST I see it supplements things like "PackageKit & namespace:language(es)"... even if "rpm -q --supplements bundle-lang-common-es" doesn't returns anything. But when looking at the spec file I don't see any Supplements line. Some black magic that adds dependency info in repo metadata but no in the package... how could I use it for festival-spanish-voices?
That's created by the old language provides mechanism. Provides of the form locale([<package>:]<lang>[;<lang>...]) get rewritten into a supplements line. In your example you'll probably find Provides: locale(PackageKit:es) in the spec file. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
2009/6/24 Michael Schroeder <mls@suse.de>:
On Wed, Jun 24, 2009 at 05:28:14PM +0200, Cristian Morales Vega wrote:
I'm packaging the new fully GPLv2+ spanish voices for festival. I would like them to supplement festival + spanish language.
Looking at bundle-lang-common-es in YaST I see it supplements things like "PackageKit & namespace:language(es)"... even if "rpm -q --supplements bundle-lang-common-es" doesn't returns anything. But when looking at the spec file I don't see any Supplements line. Some black magic that adds dependency info in repo metadata but no in the package... how could I use it for festival-spanish-voices?
That's created by the old language provides mechanism. Provides of the form locale([<package>:]<lang>[;<lang>...]) get rewritten into a supplements line.
In your example you'll probably find
Provides: locale(PackageKit:es)
in the spec file.
Yes. So this works for any package that does that? But what do you mean with "old"? That should not be used for new packages or just that it is old? ;-) Should I use "Provides: locale(festival:es)" or just "Supplements: festival & namespace:language(es)"... that, if there is no black magic hidden, should do the same but putting the metadata also in the RPM package and without a bogus Provides? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, Jun 24, 2009 at 06:16:22PM +0200, Cristian Morales Vega wrote:
Yes. So this works for any package that does that?
Yes, it works for any package.
But what do you mean with "old"? That should not be used for new packages or just that it is old? ;-)
It is a very old mechanism, introduced a couple of years in the past. There were no Supplements at that time, that's why it's done with a Provides. (The same is true for "split-provides", btw.)
Should I use "Provides: locale(festival:es)" or just "Supplements: festival & namespace:language(es)"... that, if there is no black magic hidden, should do the same but putting the metadata also in the RPM package and without a bogus Provides?
You'd have to rewrite the "&" as "packageand()", of course. But it still wouldn't work, as the "namespace:language(es)" isn't magical enough. So please use the Provides for now... Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
2009/6/24 Michael Schroeder <mls@suse.de>:
On Wed, Jun 24, 2009 at 06:16:22PM +0200, Cristian Morales Vega wrote:
Yes. So this works for any package that does that?
Yes, it works for any package.
But what do you mean with "old"? That should not be used for new packages or just that it is old? ;-)
It is a very old mechanism, introduced a couple of years in the past. There were no Supplements at that time, that's why it's done with a Provides. (The same is true for "split-provides", btw.)
Should I use "Provides: locale(festival:es)" or just "Supplements: festival & namespace:language(es)"... that, if there is no black magic hidden, should do the same but putting the metadata also in the RPM package and without a bogus Provides?
You'd have to rewrite the "&" as "packageand()", of course. But it still wouldn't work, as the "namespace:language(es)" isn't magical enough. So please use the Provides for now...
Done, thanks. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Cristian Morales Vega
-
Michael Schroeder