Make %kernel_module_package actually honor %kmodtool_generate_buildreqs
This commit is contained in:
parent
2cb318efe9
commit
bc1c35fe61
@ -54,9 +54,10 @@ kernel_module_package_release 1
|
|||||||
then \
|
then \
|
||||||
preamble="%{-p*}" \
|
preamble="%{-p*}" \
|
||||||
fi \
|
fi \
|
||||||
if [ -z "%{kmodtool_generate_buildreqs}" ] \
|
nobuildreqs="yes" \
|
||||||
|
if [ "x%{kmodtool_generate_buildreqs}" != "x1" ] \
|
||||||
then \
|
then \
|
||||||
nobuildreqs="yes" \
|
nobuildreqs="no" \
|
||||||
fi \
|
fi \
|
||||||
kmp_override_filelist="$filelist" kmp_override_preamble="$preamble" kmp_nobuildreqs="$nobuildreqs" %{kmodtool} rpmtemplate_kmp %{-n*}%{!-n:%name} %{kverrel} $flavors_to_build 2>/dev/null \
|
kmp_override_filelist="$filelist" kmp_override_preamble="$preamble" kmp_nobuildreqs="$nobuildreqs" %{kmodtool} rpmtemplate_kmp %{-n*}%{!-n:%name} %{kverrel} $flavors_to_build 2>/dev/null \
|
||||||
)}
|
)}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Summary: Red Hat specific rpm configuration files
|
Summary: Red Hat specific rpm configuration files
|
||||||
Name: redhat-rpm-config
|
Name: redhat-rpm-config
|
||||||
Version: 65
|
Version: 66
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
# No version specified.
|
# No version specified.
|
||||||
License: GPL+
|
License: GPL+
|
||||||
@ -144,6 +144,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov
|
|||||||
%{_rpmconfigdir}/macros.d/macros.kmp
|
%{_rpmconfigdir}/macros.d/macros.kmp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 18 2017 Florian Festi <ffesti@redhat.com> - 66-1
|
||||||
|
- Honor %%kmodtool_generate_buildreqs (#1472201)
|
||||||
|
|
||||||
* Thu Jul 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 65-1
|
* Thu Jul 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 65-1
|
||||||
- Add Requires: rust-srpm-macros for %%rust_arches
|
- Add Requires: rust-srpm-macros for %%rust_arches
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user