Disable the macros subpackage in F40+

The macros were added to F40 (and hence ELN and RHEL 10) in
redhat-rpm-config 264.
epel9
Yaakov Selkowitz 1 year ago
parent 22de4c9e28
commit 7f0832b7d3

@ -86,7 +86,8 @@ A Koji plugin for generating RPM releases and changelogs.
%files -n koji-builder-plugin-rpmautospec
%{_prefix}/lib/koji-builder-plugins/*
# Package the placeholder rpm-macros
%if ! (0%{?fedora} >= 40 || 0%{?rhel} >= 10)
# Package the placeholder rpm-macros (moved to redhat-rpm-config in F40)
%package -n rpmautospec-rpm-macros
Summary: Rpmautospec RPM macros for local rpmbuild
@ -97,6 +98,7 @@ RPM macros with placeholders for building rpmautospec enabled packages localy
%files -n rpmautospec-rpm-macros
%{rpmmacrodir}/macros.rpmautospec
%endif
#--------------------------------------------------------
@ -117,9 +119,11 @@ install -m 0644 koji_plugins/rpmautospec_builder.py \
%py_byte_compile %{python3} %{buildroot}%{_prefix}/lib/koji-builder-plugins/
%if ! (0%{?fedora} >= 40 || 0%{?rhel} >= 10)
# RPM macros
mkdir -p %{buildroot}%{rpmmacrodir}
install -m 644 rpm/macros.d/macros.rpmautospec %{buildroot}%{rpmmacrodir}/
%endif
%check
%pytest \

Loading…
Cancel
Save