Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: add support for "else if" operator #182

Open
recck opened this issue Sep 9, 2020 · 2 comments
Open

RFE: add support for "else if" operator #182

recck opened this issue Sep 9, 2020 · 2 comments

Comments

@recck
Copy link

recck commented Sep 9, 2020

rpmbuild currently allows us to:

%if something
...
%elif something-else
...
%else
...
%endif

For parity between each, debbuild should add an %elif operator or similar. Currently to mimic an elseif in debbuild you need to something like:

%if something
...
%else
%if something-else
...
%else
...
%endif # to close something-else
%endif # to close else from "if something"

Related issue from RPM: rpm-software-management/rpm#311

@Conan-Kudo
Copy link
Member

Related note: RPM introduced %elif, %elifos, and %elifarch to complement the %if, %ifos, and %ifarch conditionals.

@ascherer
Copy link
Contributor

ascherer commented Jan 5, 2021

See this commit for rpm for technical details. (On Kubuntu 20.04, I only have rpmbuild 4.14.2.1 amd can't test this feature, which appeared in rpm 4.15.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants