/[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.2 by slords, Thu Dec 7 03:10:26 2006 UTC Revision 1.4 by slords, Mon Dec 18 22:21:39 2006 UTC
# Line 14  Line 14 
14  %_smp_mflags -j5  %_smp_mflags -j5
15    
16  %distversion %(rpm -qf --qf='%{VERSION}' /etc/redhat-release)  %distversion %(rpm -qf --qf='%{VERSION}' /etc/redhat-release)
17  %distname %(grep -i fedora /etc/redhat-release >/dev/null && echo "Fedora Core" || echo "Red Hat Linux")  %dist .el%{distversion}.sme
18  %distver el%{distversion}  %smerelease() %(echo "%{?1}%{?dist}.%{?2}" | sed -e's|\\.$||')
 %disttag .%{distver}.sme  
 %smerelease() %(echo "%{?1}%{?disttag}.%{?2}" | sed -e's|\\.$||')  
19    
20  #---------------------------------------------------------------------  #---------------------------------------------------------------------
21    
# Line 31  Line 29 
29    
30  %_with_smp %(test -d %{kmod_kernelsrcdir smp} && echo 1 || echo 0)  %_with_smp %(test -d %{kmod_kernelsrcdir smp} && echo 1 || echo 0)
31  %_with_hugemem %(test -d %{kmod_kernelsrcdir hugemem} && echo 1 || echo 0)  %_with_hugemem %(test -d %{kmod_kernelsrcdir hugemem} && echo 1 || echo 0)
32    %_with_xen0 %(test -d %{kmod_kernelsrcdir xen0} && echo 1 || echo 0)
33    %_with_xenU %(test -d %{kmod_kernelsrcdir xenU} && echo 1 || echo 0)
34    %_with_xen %(test -d %{kmod_kernelsrcdir xen} && echo 1 || echo 0)
35    
36  %kmod() \  %kmod() \
37  %{expand:%%global _kmodname %1} \  %{expand:%%global _kmodname %1} \
# Line 43  Packager: %{_packager} \ Line 44  Packager: %{_packager} \
44  License: GPL \  License: GPL \
45  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(id -u -n)-root  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(id -u -n)-root
46    
47    %kmod_kernel() \
48    %{expand:%%if %%{_with_%1}}\
49    %package %1 \
50    %{expand:%%kmod_dependencies %1} \
51    %{expand:%%kmod_desc %1} \
52    %{expand:%%kmod_scripts %1} \
53    %files %1 \
54    %defattr(-, root, root, -) \
55    %{expand:%%kmod_moduledir %1} \
56    %endif \
57    %{nil}
58    
59  %kmod_dependencies() \  %kmod_dependencies() \
60  Summary: %{_kmodname} kernel module(s) \  Summary: %{_kmodname} kernel module(s) \
61  Group: System Environment/Kernel \  Group: System Environment/Kernel \


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