/[smeserver]/rpms/ppp-kmod/sme7/ppp-kmod.spec
ViewVC logotype

Diff of /rpms/ppp-kmod/sme7/ppp-kmod.spec

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

Revision 1.26 by slords, Wed Apr 21 16:05:33 2010 UTC Revision 1.27 by slords, Tue Jun 1 16:33:47 2010 UTC
# Line 1  Line 1 
1  # $Id: ppp-kmod.spec,v 1.25 2009/12/01 15:41:56 slords Exp $  # $Id: ppp-kmod.spec,v 1.26 2010/04/21 16:05:33 slords Exp $
2    
3  # Define the kmod package name here.  # Define the kmod package name here.
4  %define  kmod_name ppp  %define  kmod_name ppp
5    
6  # hint: this can he overridden with "--define kversion foo" on the rpmbuild command line, e.g.  # hint: this can he overridden with "--define kversion foo" on the rpmbuild command line, e.g.
7  # --define "kversion 2.6.16-1.2096_FC5"  # --define "kversion 2.6.16-1.2096_FC5"
8  %{!?kversion: %define kversion 2.6.9-89.0.16.EL}  %{!?kversion: %define kversion 2.6.9-89.0.20.EL}
9    
10  Name:    %{kmod_name}-kmod  Name:    %{kmod_name}-kmod
11  Version: 1.0.2  Version: 1.0.2
12  Release: 7%{?dist}  Release: 8%{?dist}
13  Group:   System Environment/Kernel  Group:   System Environment/Kernel
14  License: GPL  License: GPL
15  Summary: %{kmod_name} kernel modules  Summary: %{kmod_name} kernel modules
# Line 99  done Line 99  done
99    
100  # Strip the module(s).  # Strip the module(s).
101  find ${INSTALL_MOD_PATH} -type f -name \*.ko -exec strip --strip-debug \{\} \;  find ${INSTALL_MOD_PATH} -type f -name \*.ko -exec strip --strip-debug \{\} \;
102  #  
103    # Override where module comes from.
104    mkdir -p ${INSTALL_MOD_PATH}/etc/depmod.d/
105    find ${INSTALL_MOD_PATH}/lib/modules/ -type f -name \*.ko -printf '%f\n' \
106        | sed 's,\.ko,,' | sort -u | xargs -ri echo "override {} * weak-updates/%{kmod_name}" \
107        >> ${INSTALL_MOD_PATH}/etc/depmod.d/%{kmod_name}.conf
108    
109  %clean  %clean
110  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
111    
112  %changelog  %changelog
113    * Tue Jun 01 2010 Shad L. Lords <slords@mail.com> 1.0.2-8.sme
114    - Make weak-updates default for pulling module [SME: 5982]
115    - Fix previous script to not error on uninstall [SME: 5448]
116    
117  * Wed Apr 21 2010 Shad L. Lords <slords@mail.com> 1.0.2-7.sme  * Wed Apr 21 2010 Shad L. Lords <slords@mail.com> 1.0.2-7.sme
118  - Update scriptlets to not call rpm [SME: 5448]  - Update scriptlets to not call rpm [SME: 5448]
119    


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