15 |
|
|
16 |
%distversion %(rpm -qf --qf='%{VERSION}' /etc/redhat-release) |
%distversion %(rpm -qf --qf='%{VERSION}' /etc/redhat-release) |
17 |
%dist .el%{distversion}.sme |
%dist .el%{distversion}.sme |
18 |
%smerelease() %(echo "%{?1}%{?dist}.%{?2}" | sed -e's|\\.$||') |
%smerelease() %1%{dist}%{?2:.%2} |
19 |
|
|
20 |
#--------------------------------------------------------------------- |
#--------------------------------------------------------------------- |
21 |
|
|
33 |
%_with_xenU %(test -d %{kmdl_kernelsrcdir xenU} && echo 1 || echo 0) |
%_with_xenU %(test -d %{kmdl_kernelsrcdir xenU} && echo 1 || echo 0) |
34 |
%_with_xen %(test -d %{kmdl_kernelsrcdir xen} && echo 1 || echo 0) |
%_with_xen %(test -d %{kmdl_kernelsrcdir xen} && echo 1 || echo 0) |
35 |
|
|
36 |
%kmdl \ |
%kmdl(r:) \ |
37 |
|
%{-r:%{expand:%%define _kmdlrelease %{-r*}}} \ |
38 |
%kmdl_kernel \ |
%kmdl_kernel \ |
39 |
%kmdl_kernel smp \ |
%kmdl_kernel smp \ |
40 |
%kmdl_kernel hugemem \ |
%kmdl_kernel hugemem \ |
47 |
%{?1:%{expand:%%if %%{_with_%1}}} \ |
%{?1:%{expand:%%if %%{_with_%1}}} \ |
48 |
%package kmdl-%{_kversion}%{?1} \ |
%package kmdl-%{_kversion}%{?1} \ |
49 |
Summary: %{name} kernel%{?1:-%1} module(s) \ |
Summary: %{name} kernel%{?1:-%1} module(s) \ |
50 |
|
%{?_kmdlrelease:Release: %{_kmdlrelease}} \ |
51 |
Group: System Environment/Kernel \ |
Group: System Environment/Kernel \ |
52 |
BuildRequires: gcc \ |
BuildRequires: gcc \ |
53 |
BuildRequires: kernel%{?1:-%1}-devel = %{_kversion} \ |
BuildRequires: kernel%{?1:-%1}-devel = %{_kversion} \ |