#5404 RPM fails to build with because spurious %endif in spec file
Closed: Fixed 5 months ago by wombelix. Opened a year ago by klauskoder.

rpmbuild bails on spurious %endif:

$ rpmbuild -ta dist/pagure*.tar.gz
error: /home/kp/rpmbuild/SPECS/pagure.spec: line 89: %endif with no %if

Introduced in commit 677a9ab

commit 677a9ab2a3a9a0a0c2ba51f65341cbb54ff31a1b
Author: Neal Gompa <ngompa13@gmail.com>
Date:   Mon Sep 20 07:55:40 2021 -0400
[...]
@@ -97,9 +83,6 @@ create/merge pull-requests across or within projects.
 Summary:            Apache HTTPD configuration for Pagure
 BuildArch:          noarch
 Requires:           %{name} = %{version}-%{release}
-%if 0%{?rhel} && 0%{?rhel} < 8
-Requires:           mod_wsgi
-%else
 Requires:           httpd-filesystem
 Requires:           python%{python_pkgversion}-mod_wsgi
 %endif

Metadata Update from @wombelix:
- Issue assigned to wombelix

5 months ago

Metadata Update from @wombelix:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 months ago

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #5458 Merged 5 months ago