On Tue, Mar 31, 2020 at 6:12 AM Miro Hrončok <mhroncok@xxxxxxxxxx> wrote: > > 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 > Also, don't use Provides: unless the feature is actually provided. So if gtk2 support was completely dropped, you'd want to only use Obsoletes:. If it was actually moved into the main package, then Provides: is correct. _______________________________________________ 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