<p><b>@pmatilai</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/rpm-software-management/rpm/pull/722#discussion_r290676684">macros.in</a>:</p>
<pre style='color:#555'>>  %autosetup(a:b:cDn:TvNS:p:)\
 %setup %{-a} %{-b} %{-c} %{-D} %{-n} %{-T} %{!-v:-q}\
 %{-S:%global __scm %{-S*}}\
 %{expand:%__scm_setup_%{__scm} %{!-v:-q}}\
 %{!-N:%autopatch %{-v} %{-p:-p%{-p*}}}
 
+# Macro to remove or replace tilde from version.
+# -v<version> Sets the version to be used for replacement. Default is %version.
+%version_notilde(v:) %{lua:
+    local sep = rpm.expand('%1')
+    local ver = rpm.expand('%{!-v:%{version}}%{-v:%{-v*}}')
</pre>
<p>Another remark here is that you might want to use %{VERSION} as the default instead - that will always refer to the main package version, whereas %{version} will point to whatever the last Version: tag in the spec was (it's rare but sometimes sub-packages have their own versions).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/722?email_source=notifications&email_token=ADLPZUYV4X5BYLME6BE2WCTPY6JI5A5CNFSM4HRFWIBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB2UI32Y#pullrequestreview-245927403">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU2K5QAOPB6UYDZZHVDPY6JI5ANCNFSM4HRFWIBA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUZP5AD3CHV2KTFGMLDPY6JI5A5CNFSM4HRFWIBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB2UI32Y.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/722?email_source=notifications\u0026email_token=ADLPZUYV4X5BYLME6BE2WCTPY6JI5A5CNFSM4HRFWIBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB2UI32Y#pullrequestreview-245927403",
"url": "https://github.com/rpm-software-management/rpm/pull/722?email_source=notifications\u0026email_token=ADLPZUYV4X5BYLME6BE2WCTPY6JI5A5CNFSM4HRFWIBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB2UI32Y#pullrequestreview-245927403",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>