Skip to content

Commit

Permalink
packaging: Only enable kernel-install on f42+ and c10s
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Jan 27, 2025
1 parent 1d1fe0a commit aeada9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packaging/rpm-ostree.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ BuildRequires: rust
%else
%bcond_without ostree_ext
%endif
# Integrate with kernel-install
%if 0%{?rhel} >= 10 || 0%{?fedora} > 41
%bcond_with kernel_install
%else
%bcond_without kernel_install
%endif

# This is copied from the libdnf spec
%if 0%{?rhel} && ! 0%{?centos}
Expand Down Expand Up @@ -218,6 +224,9 @@ sed -i -e '/https:\/\//d' cargo-vendor.txt
%if %{without ostree_ext}
rm -vrf $RPM_BUILD_ROOT/usr/libexec/libostree/ext
%endif
%if %{without kernel_install}
rm -vr $RPM_BUILD_ROOT/usr/lib/kernel/install.d
%endif
find $RPM_BUILD_ROOT -name '*.la' -delete

# I try to do continuous delivery via rpmdistro-gitoverlay while
Expand Down

0 comments on commit aeada9e

Please sign in to comment.