Description of problem: %rename macro doesn't handle %epoch. I'm attaching a patch (against rpm-mageia-setup-1.147) to resolve the problem. Version = cauldron, because it wasn't probably needed for Mga1. Version-Release number of selected component (if applicable): 1.147-4 How reproducible: Always Steps to Reproduce: 1. Have defined %{epoch}>=1 in a package 2. Try to use %rename 3. See that the renamed package can't obsolete the old package
Created attachment 1461 [details] patch to fix the issue
Assignee: bugsquad => boklm
I'm assigning to the maintainer.
Status: NEW => ASSIGNED
Concurrently I'm fixing the issue of renaming without a %{epoch}:%{release}-%{version} bump. Currently %rename (without the bump) wouldn't obsolete the renamed package and wouldn't favor the newly-named one.
Keywords: (none) => PATCHCC: (none) => thierry.vignaud
I guess we don't need the whole %rename macro as plain Obsoletes: works..
CC: (none) => jani.valimaa
%rename is helping to keep .spec simpler, especially in larger packages with subpackages.
(In reply to comment #5) > %rename is helping to keep .spec simpler, especially in larger packages with > subpackages. How so? All you need to do is to add 'Obsoletes: foo < 1.2.3' (and maybe a comment when it was added). There's no need to use 'Provides: foo' anymore.
Ah, so is Obsoletes handing it correctly? Then we have to update our wiki and make this macro deprecated. In any case the macro is wrong and shall be fixed.
Hi, This bug was filed against cauldron, but we do not have cauldron at the moment. Please report whether this bug is still valid for Mageia 2. Thanks :) Cheers, marja
Keywords: (none) => NEEDINFO
patch looks fine to me. As for obsoletes & provides, the Provides: tag is needed in order not to break other packages requiring the old package name
Keywords: NEEDINFO => (none)
Fixed in Cauldron, and this is enough. There isn't need to backport the patch to Mga1, Mga2.
Status: ASSIGNED => RESOLVEDResolution: (none) => FIXED