[Bug 260081] Cannot use %{version} consistently for directory naming in rpmbuild

bugzilla at redhat.com bugzilla at redhat.com
Sun May 18 19:01:39 UTC 2008


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: Cannot use %{version} consistently for directory naming in rpmbuild


https://bugzilla.redhat.com/show_bug.cgi?id=260081





------- Additional Comments From n3npq at mac.com  2008-05-18 15:01 EST -------
As long as there are sub-packages, there is the potential for multiple
Version: tags. So there is no obvious choice for automagically choosing
a conventional value for %{version}

OTOH, its rather trivial to do
   %define my_one_true_version  1.2.3_whatever_you_want
    ...
    Version: %{my_one_true_version}

and then use %{my_one_true_version} instead of %{version}

Alternatively, if you simply _MUST_ use %{version}, the value is likely
to be the same as the last
    Version: 1.2.3_whatever_you_want
parsed in the spec file. You can arrange your sub-package stanzas so that the Version: you
want in %{version} appears last.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the fedora-triage-list mailing list