Author: kwizart
Update of /cvs/free/rpms/kmodtool/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv26199/F-17
Modified Files:
kmodtool-kmodtool kmodtool.spec
Log Message:
Fix for rfbz#2340
Index: kmodtool-kmodtool
===================================================================
RCS file: /cvs/free/rpms/kmodtool/F-17/kmodtool-kmodtool,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- kmodtool-kmodtool 7 Feb 2012 12:51:25 -0000 1.6
+++ kmodtool-kmodtool 26 May 2012 08:58:47 -0000 1.7
@@ -151,8 +151,8 @@
Provides: kernel-modules-for-kernel = ${kernel_uname_r}
Provides: ${kmodname}-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: ${kmodname}-kmod-common >= %{?epoch:%{epoch}:}%{version}
-Requires(post): /sbin/depmod
-Requires(postun): /sbin/depmod
+Requires(post): /usr/sbin/depmod
+Requires(postun): /usr/sbin/depmod
EOF
if [[ ${obsolete_name} ]]; then
@@ -166,17 +166,17 @@
Requires: kernel-uname-r = ${kernel_uname_r}
BuildRequires: kernel-devel-uname-r = ${kernel_uname_r}
%post -n kmod-${kmodname}-${kernel_uname_r}
-/sbin/depmod -aeF /boot/System.map-${kernel_uname_r} ${kernel_uname_r} > /dev/null ||
:
+/usr/sbin/depmod -aeF /boot/System.map-${kernel_uname_r} ${kernel_uname_r} > /dev/null
|| :
%postun -n kmod-${kmodname}-${kernel_uname_r}
-/sbin/depmod -aF /boot/System.map-${kernel_uname_r} ${kernel_uname_r} &>
/dev/null || :
+/usr/sbin/depmod -aF /boot/System.map-${kernel_uname_r} ${kernel_uname_r} &>
/dev/null || :
EOF
else
cat <<EOF
%post -n kmod-${kmodname}-${kernel_uname_r}
-[[ "$(uname -r)" == "${kernel_uname_r}" ]] && /sbin/depmod
-a > /dev/null || :
+[[ "$(uname -r)" == "${kernel_uname_r}" ]] &&
/usr/sbin/depmod -a > /dev/null || :
%postun -n kmod-${kmodname}-${kernel_uname_r}
-[[ "$(uname -r)" == "${kernel_uname_r}" ]] && /sbin/depmod
-a > /dev/null || :
+[[ "$(uname -r)" == "${kernel_uname_r}" ]] &&
/usr/sbin/depmod -a > /dev/null || :
EOF
fi
Index: kmodtool.spec
===================================================================
RCS file: /cvs/free/rpms/kmodtool/F-17/kmodtool.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- kmodtool.spec 7 Feb 2012 12:51:25 -0000 1.7
+++ kmodtool.spec 26 May 2012 08:58:47 -0000 1.8
@@ -1,6 +1,6 @@
Name: kmodtool
Version: 1
-Release: 19%{?dist}
+Release: 20%{?dist}
Summary: Tool for building kmod packages
Group: Development/Tools
@@ -51,6 +51,9 @@
%{_datadir}/%{name}/
%changelog
+* Sat May 26 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 1-20
+- Fix for depmod - rfbz#2340
+
* Wed Feb 01 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 1-19
- Update to 0.12.0