Hi,

On Sat, Jun 18, 2022 at 1:24 PM Vitaly Zaitsev via devel
<devel@lists.fedoraproject.org> wrote:
>
> On 18/06/2022 13:05, Aleksandra Fedorova wrote:
> > * Provide a possibility to change build environment and rebuild rpm
> > packages without changing their content: neither sources nor spec
> > files.
>
> I have a better solution - let's move all packages to %autorelease +
> %autochangelog.

rpmautospec is a shortcut which allows you to not fill Release tag in
the dist-git manually. But to rebuild a package you still need at
least one additional commit to dist-git, which will change the value
that macro calculates. In the end the number is tied to dist-git
history.

rpmautospec automates the Release tag itself (as a version for spec
files), it doesn’t have a Build component in it. Thus, while
rpmautospec is a valuable tool for working on dist-git sources, its
development doesn’t overlap with the Build tag topic.

And, for example, rpmautospec will not help in the case we need to
update a build on pull request update: When you work with
pull-requests you don’t necessarily add commits, you rework the
history of a branch from which you run a PR. Sometimes even reducing
the number of commits in it.

(I added this answer as a section to the main post.)

> > Release: 12.%{?dist}%{?build:.%{build}}
>
> Looks ugly.

1) This is a temporary solution until we get full support of the Build
tag upstream
2) It probably can be simplified.

I am no expert in RPM macro language, but, for example, if we agree to
set default Build value to 0, it can be just Release:
12.%{?dist}.%{build}

But this is indeed one of the open questions, where we are looking for
more options.

-- 
Aleksandra Fedorova
bookwar
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to