]> git.pld-linux.org Git - packages/drbd.git/blobdiff - drbd.spec
- added depmod options so modules can be installed for kernel other than running
[packages/drbd.git] / drbd.spec
index 8c78ac7b7fc4502796c633700da0688f0a0b2816..e9e2fc96c28f5dbd7a93ac7f6769de794bc7f380 100644 (file)
--- a/drbd.spec
+++ b/drbd.spec
@@ -1,14 +1,14 @@
-
-# conditional build
+#
+# Conditional build:
 # _without_dist_kernel          without kernel from distribution
-
+#
 %define                _kernel24       %(echo %{_kernel_ver} | grep -q '2\.[012]\.' ; echo $?)
 
 Summary:       drbd is a block device designed to build high availibility clusters
 Summary(pl):   drbd jest urz±dzeniem blokowym dla klastrów o wysokiej niezawodno¶ci
 Name:          drbd
 Version:       0.5.8.1
-%define        rel     11
+%define        rel     14
 Release:       %{rel}
 License:       GPL
 Group:         Base/Kernel
@@ -40,8 +40,8 @@ Summary:      Setup tool and scripts for DRBD
 Summary(pl):   Narzêdzie konfiguracyjne i skrypty dla DRBD
 Summary(pt_BR):        Utilitários para gerenciar dispositivos DRBD
 Group:         Applications/System
-Prereq:                rc-scripts
-Prereq:                chkconfig
+PreReq:                rc-scripts
+Requires(post,preun):  /sbin/chkconfig
 
 %description -n drbdsetup
 Setup tool and init scripts for DRBD.
@@ -54,8 +54,8 @@ Summary:      kernel module with drbd - a block device designed to build high availib
 Summary(pl):   Modu³ kernela do drbd - urz±dzenia blokowego dla klastrów o wysokiej niezawodno¶ci
 Release:       %{rel}@%{_kernel_ver_str}
 Group:         Base/Kernel
-Prereq:                /sbin/depmod
 %{!?_without_dist_kernel:%requires_releq_kernel_up}
+Requires(post,postun): /sbin/depmod
 Requires:      drbdsetup
 
 %description -n kernel-block-drbd
@@ -73,8 +73,8 @@ Summary:      SMP kernel module with drbd - a block device designed to build high ava
 Summary(pl):   Modu³ kernela SMP do drbd - urz±dzenia blokowego dla klastrów o wysokiej niezawodno¶ci
 Release:       %{rel}@%{_kernel_ver_str}
 Group:         Base/Kernel
-Prereq:                /sbin/depmod
 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
+Requires(post,postun): /sbin/depmod
 Requires:      drbdsetup
 
 %description -n kernel-smp-block-drbd
@@ -150,16 +150,16 @@ install documentation/drbdsetup.8 $RPM_BUILD_ROOT%{_mandir}/man8
 rm -rf $RPM_BUILD_ROOT
 
 %post   -n kernel-block-drbd
-/sbin/depmod -a
+/sbin/depmod -a -F /boot/System.map-%{_kernel_ver} %{_kernel_ver}
 
 %postun -n kernel-block-drbd
-/sbin/depmod -a
+/sbin/depmod -a -F /boot/System.map-%{_kernel_ver} %{_kernel_ver}
 
 %post   -n kernel-smp-block-drbd
-/sbin/depmod -a
+/sbin/depmod -a -F /boot/System.map-%{_kernel_ver}smp %{_kernel_ver}smp
 
 %postun -n kernel-smp-block-drbd
-/sbin/depmod -a
+/sbin/depmod -a -F /boot/System.map-%{_kernel_ver}smp %{_kernel_ver}smp
 
 %post -n drbdsetup
 /sbin/chkconfig --add drbd
This page took 0.420498 seconds and 4 git commands to generate.