On 31. 03. 20 12:03, Lukas Zapletal wrote:
Hey,
I have a subpackage which is not needed anymore in the new version of the package. Is my assumption correct that for a smooth upgrade path I should simply delete the subpackage and make the main package to obsolete it:
Obsoletes: %{name}-gtk2
Provides: %{name}-gtk2
Looks like rpmlint wants me to add version, I can do that.
Correct, with version. Ude a dynamic version with provides, static with obsoletes:
Obsoletes: %{name}-gtk2 < 1:12.5-8
Provides: %{name}-gtk2 = %{?epoch:%{epoch}:}%{version}-%{release}
See
https://docs.fedoraproject.org/en-US/packaging-guidelines/#renaming-or-replacing-existing-packages
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx