At Tue, 6 Dec 2011 16:38:59 +0100, Thomas Schraitle wrote:
Hi,
thanks to Darix, we have a M17N:fonts repository now! :)
I've copied the first LinuxLibertine font from the M17N repo into M17N:fonts and renamed it according to the packaging guidelines:
LinuxLibertine -> linux-libertine-fonts
I've looked in our openSUSE Wiki and found a page about how to rename a package[1]. Basically, it's just adding the Provides and Obsolete keywords to the spec file. However, before I proceed further, maybe someone can answer my questions?
- Can anybody confirm the mentioned URL[1] is still the correct way to do it?
Yes. But note that the renaming is performed for the same version at this time, so the situation is different from the description there.
- Current version of Linux Libertine is 5.1.3. Which one is the correct line and why: a) Obsoletes: LinuxLibertine < 5.1.3 b) Obsoletes: LinuxLibertine < %{version}
When renaming a package with the same version, better to use "<=". Otherwise the obsoletes won't be applied. That is,
Obsoletes: LinuxLibertine <= 5.1.3 Provides: LinuxLibertine = %{version}
where 5.1.3 is the version you started rename. You can pass %{version} there, too. The point to pass 5.1.3 is that you rename only packages that are known to be included in old distros. When %{version} is given and you upgrade the package (say 6.0.0), it'll obsolete packages between 5.1.3 and 6.0.0, too. This might include some unofficial packages, and you don't know exactly whether you should rename or not.
But this is a subtle problem and usually you don't care. Thus passing %{version} won't be a problem (or even it's intentional to rename all), too.
- Is the URL about replacing a package by another[2] an option in regards to fonts?
No. We do just rename, so simply give both obsoletes and provides.
- Anything else that should be observed?
You may need to send changedevelreq when the renamed package is merged to FACTORY.
thanks,
Takashi
Thanks! :)
[1] http://en.opensuse.org/openSUSE:Package_dependencies#Renaming_a_package [2] http://en.opensuse.org/openSUSE:Package_dependencies#Replace_a_package_by_an...
-- Gruß/Regards, Thomas Schraitle
SUSE LINUX Products GmbH (o< Maxfeldstrasse 5 /\ Documentation Specialist 90409 Nuernberg, Germany __v http://www.suse.com http://lizards.opensuse.org/author/thomas-schraitle/ SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org