/[smeserver]/builds_bin/macros
ViewVC logotype

Diff of /builds_bin/macros

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.5 by slords, Thu Dec 28 23:41:39 2006 UTC Revision 1.8 by slords, Fri Dec 29 23:17:57 2006 UTC
# Line 15  Line 15 
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    
# Line 32  Line 32 
32  %_with_xen0 %(test -d %{kmdl_kernelsrcdir xen0} && echo 1 || echo 0)  %_with_xen0 %(test -d %{kmdl_kernelsrcdir xen0} && echo 1 || echo 0)
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    %_with_kdump %(test -d %{kmdl_kernelsrcdir kdump} && echo 1 || echo 0)
36    %_with_PAE %(test -d %{kmdl_kernelsrcdir PAE} && echo 1 || echo 0)
37    
38  %kmdl \  %kmdl(r:) \
39    %{-r:%{expand:%%define _kmdlrelease %{-r*}}} \
40  %kmdl_kernel \  %kmdl_kernel \
41  %kmdl_kernel smp \  %kmdl_kernel smp \
42  %kmdl_kernel hugemem \  %kmdl_kernel hugemem \
43  %kmdl_kernel largesmp \  %kmdl_kernel largesmp \
44  %kmdl_kernel xen0 \  %kmdl_kernel xen0 \
45  %kmdl_kernel xenU \  %kmdl_kernel xenU \
46  %kmdl_kernel xen  %kmdl_kernel xen \
47    %kmdl_kernel kdump \
48    %kmdl_kernel PAE
49    
50  %kmdl_kernel() \  %kmdl_kernel() \
51  %{?1:%{expand:%%if %%{_with_%1}}} \  %{?1:%{expand:%%if %%{_with_%1}}} \
52  %package kmdl-%{_kversion}%{?1} \  %package kmdl-%{_kversion}%{?1} \
53  Summary: %{name} kernel%{?1:-%1} module(s) \  Summary: %{name} kernel%{?1:-%1} module(s) \
54    %{?_kmdlrelease:Release: %{_kmdlrelease}} \
55  Group: System Environment/Kernel \  Group: System Environment/Kernel \
56  BuildRequires: gcc \  BuildRequires: gcc \
57  BuildRequires: kernel%{?1:-%1}-devel = %{_kversion} \  BuildRequires: kernel%{?1:-%1}-devel = %{_kversion} \


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed