how to create a rpm-autospec based package

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

 



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

[1] https://martinkg.fedorapeople.org/Review/SPECS/pyliblo3.spec
[2] https://martinkg.fedorapeople.org/Review/SRPMS/pyliblo3-0.16.2-0.5.git91d1781.fc40.src.rpm

Regards
Martin
-- 
_______________________________________________
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