/[packages]/updates/2/kernel/current/SPECS/kernel.spec
ViewVC logotype

Diff of /updates/2/kernel/current/SPECS/kernel.spec

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

revision 338821 by tmb, Fri Jan 4 23:05:59 2013 UTC revision 338822 by tmb, Fri Jan 4 23:10:27 2013 UTC
# Line 556  own custom kernel that is better tuned t Line 556  own custom kernel that is better tuned t
556  If you only want the files needed to build 3rdparty (nVidia, Ati, dkms-*,...)  If you only want the files needed to build 3rdparty (nVidia, Ati, dkms-*,...)
557  drivers against, install the *-devel-* rpm that is matching your kernel.  drivers against, install the *-devel-* rpm that is matching your kernel.
558    
 %post -n %{kname}-source-%{buildrel}  
 for i in /lib/modules/%{kversion}-{desktop586,desktop,server}-%{buildrpmrel}; do  
         if [ -d $i ]; then  
                 if [ ! -L $i/build -a ! -L $i/source ]; then  
                         ln -sf /usr/src/linux-%{kversion}-%{buildrpmrel} $i/build  
                         ln -sf /usr/src/linux-%{kversion}-%{buildrpmrel} $i/source  
                 fi  
         fi  
 done  
 cd /usr/src  
 rm -f linux  
 ln -snf linux-%{kversion}-%{buildrpmrel} linux  
   
 %preun -n %{kname}-source-%{buildrel}  
 for i in /lib/modules/%{kversion}-{desktop586,desktop,server}-%{buildrpmrel}/{build,source}; do  
         if [ -L $i ]; then  
                 if [ "$(readlink $i)" = "/usr/src/linux-%{kversion}-%{buildrpmrel}" ]; then  
                         rm -f $i  
                 fi  
         fi  
 done  
 if [ -L /usr/src/linux ]; then  
         if [ "$(readlink /usr/src/linux)" = "linux-%{kversion}-%{buildrpmrel}" ]; then  
                 rm -f /usr/src/linux  
         fi  
 fi  
 exit 0  
   
559  #  #
560  # kernel-source-latest: virtual rpm  # kernel-source-latest: virtual rpm
561  #  #

Legend:
Removed from v.338821  
changed lines
  Added in v.338822

  ViewVC Help
Powered by ViewVC 1.1.30