On Mon, Feb 27, 2023 at 2:39 AM Globe Trotter via devel <devel@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > I am writing a spec file for SliM, the Simple Login Manager for Fedora 37. I was thiniking of changing the default login image to the Fedora one. It appears that that is stored in the RPM: f37-backgrounds-base and the file is /usr/share/backgrounds/f37/default/f37-01-day.png > > So, my question is: how do I include both the rpm as well as the file that depends on the distribution version. > > Now, from https://docs.fedoraproject.org/en-US/packaging-guidelines/DistTag/ > > I get that %{dist} or %{?dist} will give me fc37, but this is different, i need f37, etc so that an updated spec file is not needed everytime we have an upgrade. One way to go about it would be to use the %{fedora} variable, e.g.: Requires: f%{?fedora}-backgrounds-base If you are going to maintain EPEL branches as well, you will have to use a conditional there. _______________________________________________ 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 Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue