On Sun, Dec 15, 2024 at 3:47 AM Mattia Verga via packaging <packaging@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > > How can I define a source name so that if I set > %global prerelease beta1 > the source name will expand to something like > pkgname-{version}.beta1 > or with %global prerelease %{nil} will just be pkgname-{version} (without the ending dot)? > > I tried with > pkgname-{version}{?prerelease:%{expand:.?{prerelease}}} > but that's clearly wrong as it's not working... > > And, yes, I need prerelease to be just "beta1" and not ".beta1" because I need it in other parts of specfile. %{?prerelease:.%{prerelease}} should work. That's what I do. -- 真実はいつも一つ!/ Always, there's only one truth! -- _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-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/packaging@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue