Need help to rename goldendict to goldendict-ng

Hi, I am trying to update this package, but there is a little problem: The `goldendict` packaged by openSUSE is a fork and the fork was renamed to `goldendict-ng`. (The fork was chosen because of the removal of QtWebKit). The fork, which has been developing new features & bug fixes, wants to distinguish itself from the original. --- This package should be renamed, but what should I do? I have learned about how to rename a package via RPM, but there seems to be no way to rename a package in the OBS without some special permissions. Should I submit a new `goldendict-ng` package to a factory, then request deletion of the current `goldendict`? Or we can rename the package, then I submit updates? Related links: * The goldendict used by openSUSE is in fact a old version of goldendict-ng -> https://build.opensuse.org/package/show/openSUSE:Factory/goldendict * The fork's (aka -ng) repo -> https://github.com/xiaoyifang/goldendict-ng

On 11/05/2023 01.09, slbtty wrote:
Should I submit a new `goldendict-ng` package to a factory, then request deletion of the current `goldendict`?
I think, this is the cleanest way. Be sure to add to the new package Provides: goldendict = %{version} Obsoletes: goldendict < %{version} so that zypper will know to replace the old one with it. Ciao Bernhard M.

Hello, Am Donnerstag, 11. Mai 2023, 09:23:10 schrieb Bernhard M. Wiedemann:
Correct, but I'd recommend to hardcode the version in Obsoletes to the last version of goldendict (actually slightly increase the version, or use <= instead of <) Assuming the last goldendict version was 1.2.3, I'd use Provides: goldendict = %{version} Obsoletes: goldendict < 1.2.4 # note 1.2.4 instead of 1.2.3 or Provides: goldendict = %{version} Obsoletes: goldendict <= 1.2.3 # note the <= This has the advantage that it won't obsolete any possible future versions of goldendict (in case the package gets re-introduced). A nice side effect is that it helps to spot Obsoletes: from stone age that might no longer be needed. Actually I wonder if we should adjust our packaging guidelines so that they recommend hardcoded version numbers for Obsoletes: Opinions and even objections welcome ;-) Regards, Christian Boltz -- Looks like I got the wrong address and took my car to the hairdresser. [Niki Kovacs in https://bugzilla.opensuse.org/show_bug.cgi?id=1200583]
participants (4)
-
Bernhard M. Wiedemann
-
Christian Boltz
-
Jan Engelhardt
-
slbtty