[Fedora-packaging] Conditional expansion of source name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
-- 
_______________________________________________
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




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux