Re: spec file error

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

 



Am Donnerstag, dem 11.11.2021 um 09:27 +0100 schrieb Vitaly Zaitsev via
devel:
> On 10/11/2021 21:15, Globe Trotter via devel wrote:
> > Version: %ver
> > Release: %rel
> 
> You shouldn't use macroses here, because this behavior can break
> release 
> bumps from different bots or proven-packager scripts.


I agree with you, that at least the macro for the package version should
be dropped.  For the package release it is permittable to use
`baserelease` as a macro, as that is useable for `rpmdev-bumpspec`:

```
%global baserelease 1

Version: X.Y.Z
Release: %{baserelease}%{?dist}
```

Anyways, macros in the spec file must be defined using the expanded at
definition time `%global`, if there is no reasonable justification to
use the lazy-expanding `%define`.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
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 on the list, report it: https://pagure.io/fedora-infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux