Bug 583839

Summary: wrong requires and buildrequires in kmodtool
Product: [Fedora] Fedora Reporter: Levente Farkas <lfarkas>
Component: redhat-rpm-configAssignee: Panu Matilainen <pmatilai>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: jonathan, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-29 20:06:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Levente Farkas 2010-04-19 21:19:59 UTC
kmodtool contains wrong requires and buildreq. it's currently contains:
---------------------------------------
*)     kdep="kernel-%{_target_cpu} = ${verrel}${variant}"     ;;
---------------------------------------
which should have to be on fedora
---------------------------------------
*)     kdep="kernel-uname-r = ${verrel}${variant}"     ;;
---------------------------------------
while also has
---------------------------------------
    echo "BuildRequires: kernel${dashvariant}-devel-%{_target_cpu} = ${verrel}"
---------------------------------------
which should have to be on fedora:
---------------------------------------
    case "$verrel" in
        *.el*) kddep="kernel${dashvariant}-devel-%{_target_cpu} = ${verrel}"
        *.EL*) kddep="kernel${dashvariant}-devel-%{_target_cpu} = ${verrel}"
        *)     kddep="kernel-devel-uname-r = ${verrel}"
    esac
    echo "BuildRequires: ${kddep}"
---------------------------------------