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



--- Comment #7 from Link Dupont <[email protected]> ---
(In reply to Mark E. Fuller from comment #6)
> I'm unfamiliar with this header on the spec file - you mind explaining why
> it's necessary?:
> 
> ## START: Set by rpmautospec
> ## (rpmautospec version 0.3.5)
> ## RPMAUTOSPEC: autorelease, autochangelog
> %define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
>     release_number = 1;
>     base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
>     print(release_number + base_release_number - 1);
> }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
> ## END: Set by rpmautospec
> 
> also, I would recommend using %autochangelog, but that can be personal
> preference
> 

It's the content that gets inserted into the spec file by the %autorelease
macro. If you look at the spec file
https://linkdupont.fedorapeople.org/yggdrasil-worker-package-manager.spec, you
can see it uses both %autorelease and %autochangelog. Since those macros are
srpm macros (not rpm macros), they operate on the spec file that generates the
src.rpm. The spec file that will live in dist-git is the one that uses
%autorelease and %autochangelog.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2176342

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202176342%23c7
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to