Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2089020

Summary: rpmbuild can't parse %elif, %elifarch, %elifos on RHEL 8.6
Product: Red Hat Enterprise Linux 8 Reporter: Istiak Ferdous <hello>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: swm-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: germano.massullo, germano.massullo, pmatilai
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-23 06:46:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Istiak Ferdous 2022-05-22 14:01:27 UTC
Description of problem:
Currently rpmbuild can't parse %elif, %elifarch, %elifos on RHEL 8.6.

Version-Release number of selected component (if applicable):
RPM version 4.14.3

How reproducible:
100% reproducible

Steps to Reproduce:
1.Create a spec file with %elif, %elifarch, %elifos
2.Try to build SRPMS rpmbuild -bs ~/rpmbuild/SPECS/package.spec

Actual results:
error: line 15: Unknown tag: %elif


Expected results:
Parse %elif, %elifarch, %elifos


Additional info:
Is it possible to backport this patch:

https://github.com/rpm-software-management/rpm/commit/1c4b238840d0995344d0d0381a0561b213429203

Or upgrade RPM to minimum rpm-4.15.0-release ?

Comment 1 Panu Matilainen 2022-05-23 06:46:12 UTC
This has been requested before. The above patch is not free-standing but depends on a pile of changes that together were considered too invasive and thus risky for backporting.

Within a distro release, rpm is only ever rebased to different newer micro releases of the same major.minor branch, updates like 4.14 -> 4.15 are out of the question entirely because those are effectively major versions when it comes to rpm.