Re: how to create a rpm-autospec based package

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

 



Hi!

On Thu, Sep 5, 2024, at 6:41 PM, Martin Gansser wrote:
> Hello,
>
> I have created a new package pyliblo3.spec [1] and would like to know how to
> create a rpm-autospec` based package from it.
>
> If I use the following command
>
> [martin@fc40 SPECS]$ rpmautospec convert pyliblo3.spec 
> Converted to %autorelease and %autochangelog.
>
> then these two lines are changed in the spec file.
>
> Release: %autorelease
> ....
> %changelog
> %autochangelog
>
> and a changelog file is created.
>
> Which command is used to enter the following block in the spec file?
>
>
> ## START: Set by rpmautospec
> ## (rpmautospec version 0.6.3)
> ## RPMAUTOSPEC: autorelease, autochangelog
> %define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
>     release_number = 0.5
>     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

It is generated automatically before creating the srpm.

According to this issue https://pagure.io/FedoraReview/issue/451
the right command for creating srpm for specs not in dist-git yet
is `rpmbuild -bs *.spec`.
-- 
_______________________________________________
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, report it: https://pagure.io/fedora-infrastructure/new_issue




[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