1 |
# $Id: slip-kmod.spec,v 1.22 2009/05/02 10:09:04 bytegw Exp $ |
# $Id: slip-kmod.spec,v 1.25 2010/04/21 16:05:56 slords Exp $ |
2 |
|
|
3 |
# Define the kmod package name here. |
# Define the kmod package name here. |
4 |
%define kmod_name slip |
%define kmod_name slip |
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-78.0.22.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 |
Version: 1.0 |
12 |
Release: 4%{?dist} |
Release: 7%{?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 |
77 |
make -C ${ksrc} SUBDIRS=`pwd` INSTALL_MOD_PATH=$RPM_BUILD_ROOT modinst_dir='$(MODLIB)/extra/'%{kmod_name} modules_install |
make -C ${ksrc} SUBDIRS=`pwd` INSTALL_MOD_PATH=$RPM_BUILD_ROOT modinst_dir='$(MODLIB)/extra/'%{kmod_name} modules_install |
78 |
# make TOPDIR=${ksrc} INSTALL_MOD_PATH=$RPM_BUILD_ROOT INSTALL_MOD_DIR=extra/%{kmod_name}/ modules_install %{?_smp_mflags} |
# make TOPDIR=${ksrc} INSTALL_MOD_PATH=$RPM_BUILD_ROOT INSTALL_MOD_DIR=extra/%{kmod_name}/ modules_install %{?_smp_mflags} |
79 |
cd .. |
cd .. |
80 |
|
|
81 |
|
mkdir -p ${INSTALL_MOD_PATH}/usr/share/doc/kmod-%{kmod_name}/%{kversion}/ |
82 |
|
find ${INSTALL_MOD_PATH}/lib/modules/"%{kversion}${kvariant:+$kvariant}"/ -type f -name \*.ko | sed "s,${INSTALL_MOD_PATH},," \ |
83 |
|
> ${INSTALL_MOD_PATH}/usr/share/doc/kmod-%{kmod_name}/%{kversion}/"modules${kvariant:+-$kvariant}" |
84 |
done |
done |
85 |
|
|
86 |
# Strip the module(s). |
# Strip the module(s). |
87 |
find ${INSTALL_MOD_PATH} -type f -name \*.ko -exec strip --strip-debug \{\} \; |
find ${INSTALL_MOD_PATH} -type f -name \*.ko -exec strip --strip-debug \{\} \; |
88 |
# |
|
89 |
|
# Override where module comes from. |
90 |
|
mkdir -p ${INSTALL_MOD_PATH}/etc/depmod.d/ |
91 |
|
find ${INSTALL_MOD_PATH}/lib/modules/ -type f -name \*.ko -printf '%f\n' \ |
92 |
|
| sed 's,\.ko,,' | sort -u | xargs -ri echo "override {} * weak-updates/%{kmod_name}" \ |
93 |
|
>> ${INSTALL_MOD_PATH}/etc/depmod.d/%{kmod_name}.conf |
94 |
|
|
95 |
%clean |
%clean |
96 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
97 |
|
|
98 |
%changelog |
%changelog |
99 |
|
* Tue Jun 01 2010 Shad L. Lords <slords@mail.com> 1.0-7.sme |
100 |
|
- Make weak-updates default for pulling module [SME: 5982] |
101 |
|
- Fix previous script to not error on uninstall [SME: 5448] |
102 |
|
|
103 |
|
* Wed Apr 21 2010 Shad L. Lords <slords@mail.com> 1.0-6.sme |
104 |
|
- Update scriptlets to not call rpm [SME: 5448] |
105 |
|
|
106 |
|
* Tue Oct 26 2009 Shad L. Lords <slords@mail.com> 1.0-5.sme |
107 |
|
- Make preuninstall script not fail on upgrade |
108 |
|
|
109 |
* Tue May 26 2009 Shad L. Lords <slords@mail.com> 1.0-4.sme |
* Tue May 26 2009 Shad L. Lords <slords@mail.com> 1.0-4.sme |
110 |
- Initial build of the kABI-tracking version from 1.0. |
- Initial build of the kABI-tracking version from 1.0. |
111 |
- Modified spec and kmodtool(-slip) |
- Modified spec and kmodtool(-slip) |