Dne 02. 12. 20 v 14:18 Neal Gompa napsal(a):
On Wed, Dec 2, 2020 at 8:14 AM Olivier Fourdan <ofour...@redhat.com> wrote:
Hi Dominik,

On Wed, Dec 2, 2020 at 2:02 PM Dominik 'Rathann' Mierzejewski 
<domi...@greysector.net> wrote:

Provides: xorg-x11-server-Xwayland = %{version}-%{release}
Obsoletes: xorg-x11-server-Xwayland < first-version-built-from-new-upstream

https://docs.fedoraproject.org/en-US/packaging-guidelines/#renaming-or-replacing-existing-packages

The package in the COPR [1] does:

Provides:  xorg-x11-server-Xwayland = %{version}-%{release}
Provides:  xorg-x11-server-Xwayland%{?_isa}
Obsoletes: xorg-x11-server-Xwayland < %{version}-%{release}

For some reason, dnf would complain when upgrading from the original 
xorg-x11-server-Xwayland otherwise.

But anyhow, the original question from Vít was not really how to achieve it, 
but rather what name we want for that package.


Right, that was intent of my question.


I think that unless it's actually being split out from upstream
sources from the xorg-server repo, it would just be easier to call it
xorg-x11-server-Xwayland.


That was also my thought. I was just curious if this was considered, because both approaches have some pros/cons. But I don't think I have preference.


  But if you're dead set on renaming it, you
need to do it like so:

Obsoletes: xorg-x11-server-Xwayland < %{version}-%{release}
Provides:  xorg-x11-server-Xwayland = %{version}-%{release}
Provides:  xorg-x11-server-Xwayland%{?_isa} = %{version}-%{release}

The archful Provides needs to be versioned too.



Glad that my curiosity brings also other fruit, because I think Neal is right here ;)


Vít

Attachment: OpenPGP_0x0CE09EE79917B87C.asc
Description: application/pgp-keys

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to