[DRBD-user] RPM Spec File Suggestions [patch]

Mark Watts m.watts at eris.qinetiq.com
Tue Oct 9 12:40:59 CEST 2007

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


In order to use "make rpm" on a Mandriva 2007.1 box, I've had to apply the 
following patch:

The first part is just me being nice so that dependancies are on packages 
rather than actual files, the second part is needed is because Mandriva (at 
least) seems to use bzip2 to compress man pages, rather than gzip.

### Begin
$ diff -Nurd drbd-8.0.6/drbd.spec.in drbd-8.0.6.mrw/drbd.spec.in
--- drbd-8.0.6/drbd.spec.in     2007-09-03 09:32:31.000000000 +0100
+++ drbd-8.0.6.mrw/drbd.spec.in 2007-09-19 16:47:41.000000000 +0100
@@ -50,7 +50,7 @@
 Summary: Kernel driver for DRBD.
 #Release: %{release}_%{krelver}
 Group: System Environment/Kernel
-Requires: %{name} = %{version}, /sbin/depmod
+Requires: %{name} = %{version}, module-init-tools
 # conflicts with the suse km_drbd package. use either theirs, or ours...
 Conflicts: km_drbd
 #%{?ksmp:Provides: kernel-module-drbd = %{version}-%{release}_%{krelver}}
@@ -128,12 +128,12 @@
 %config(noreplace) /etc/drbd.conf

 %defattr(-,root,root)
-%{_mandir}/man8/drbd.8.gz
-%{_mandir}/man8/drbdsetup.8.gz
-%{_mandir}/man8/drbdadm.8.gz
-%{_mandir}/man8/drbddisk.8.gz
-%{_mandir}/man5/drbd.conf.5.gz
-%{_mandir}/man8/drbdmeta.8.gz
+%{_mandir}/man8/drbd.8.*
+%{_mandir}/man8/drbdsetup.8.*
+%{_mandir}/man8/drbdadm.8.*
+%{_mandir}/man8/drbddisk.8.*
+%{_mandir}/man5/drbd.conf.5.*
+%{_mandir}/man8/drbdmeta.8.*
 %doc scripts/drbd.conf
 %doc COPYING
 %doc README
### End

Mark.

-- 
Mark Watts BSc RHCE MBCS
Senior Systems Engineer
QinetiQ Trusted Information Management
Trusted Solutions and Services Group
GPG Key: http://keyserver.veridis.com:11371/search?q=0x455420ED
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20071009/161a80ca/attachment.pgp>


More information about the drbd-user mailing list