SPECS (drbd_8_2_for_ac): drbd.spec - up/smp bconds for ac

adamg adamg at pld-linux.org
Sun Sep 30 20:55:59 CEST 2007


Author: adamg                        Date: Sun Sep 30 18:55:59 2007 GMT
Module: SPECS                         Tag: drbd_8_2_for_ac
---- Log message:
- up/smp bconds for ac

---- Files affected:
SPECS:
   drbd.spec (1.101 -> 1.101.2.1) 

---- Diffs:

================================================================
Index: SPECS/drbd.spec
diff -u SPECS/drbd.spec:1.101 SPECS/drbd.spec:1.101.2.1
--- SPECS/drbd.spec:1.101	Sun Sep 30 20:40:28 2007
+++ SPECS/drbd.spec	Sun Sep 30 20:55:54 2007
@@ -3,6 +3,8 @@
 # Conditional build:
 %bcond_without	dist_kernel	# allow non-distribution kernel
 %bcond_without	kernel		# don't build kernel modules
+%bcond_without	smp		# without up
+%bcond_without	up		# without smp
 %bcond_without	userspace	# don't build userspace module
 %bcond_with	verbose		# verbose build (V=1)
 %bcond_with	grsec_kernel	# build for kernel-grsecurity
@@ -11,6 +13,10 @@
 %define	alt_kernel	grsecurity
 %endif
 #
+%ifarch sparc
+%undefine	with_smp
+%endif
+
 %define	_rel	1
 Summary:	drbd is a block device designed to build high availibility clusters
 Summary(pl.UTF-8):	drbd jest urzÄ
dzeniem blokowym dla klastrów o wysokiej niezawodności
@@ -27,7 +33,7 @@
 BuildRequires:	bison
 BuildRequires:	flex
 %endif
-%{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+%{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.16}
 BuildRequires:	rpmbuild(macros) >= 1.379
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -72,7 +78,7 @@
 Summary(pl.UTF-8):	ModuĹ‚ jÄ
dra do drbd - urzÄ
dzenia blokowego dla klastrów o wysokiej niezawodności
 Release:	%{_rel}@%{_kernel_ver_str}
 Group:		Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel}
+%{?with_dist_kernel:%requires_releq_kernel_up}
 Requires(post,postun):	/sbin/depmod
 Requires:	drbdsetup
 
@@ -86,6 +92,25 @@
 niezawodnoĹ›ci. drbd dziaĹ‚a jako mirroring caĹ‚ego urzÄ
dzenia blokowego
 przez (dedykowanÄ
) sieć. Moşe być widoczny jako sieciowy RAID1.
 
+%package -n kernel%{_alt_kernel}-smp-block-drbd
+Summary:	SMP kernel module with drbd - a block device designed to build high availibility clusters
+Summary(pl.UTF-8):   Wersja SMP ModuĹ‚u jÄ
dra do drbd - urzÄ
dzenia blokowego dla klastrów o wysokiej niezawodności
+Release:	%{_rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+%{?with_dist_kernel:%requires_releq_kernel_smp}
+Requires(post,postun):	/sbin/depmod
+Requires:	drbdsetup
+
+%description -n kernel%{_alt_kernel}-smp-block-drbd
+drbd is a block device which is designed to build high availability
+clusters. This is done by mirroring a whole block device via (a
+dedicated) network. You could see it as a network RAID1.
+
+%description -n kernel%{_alt_kernel}-smp-block-drbd -l pl.UTF-8
+drbd jest urzÄ
dzeniem blokowym zaprojektowanym dla klastrĂłw o wysokiej
+niezawodnoĹ›ci. drbd dziaĹ‚a jako mirroring caĹ‚ego urzÄ
dzenia blokowego
+przez (dedykowanÄ
) sieć. Moşe być widoczny jako sieciowy RAID1.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -139,6 +164,12 @@
 %pre -n drbdsetup
 %groupadd -g 60 haclient
 
+%post -n kernel%{_alt_kernel}-smp-block-drbd
+%depmod %{_kernel_ver}smp
+
+%postun -n kernel%{_alt_kernel}-smp-block-drbd
+%depmod %{_kernel_ver}smp
+
 %post -n drbdsetup
 /sbin/chkconfig --add drbd
 %service drbd restart
@@ -172,6 +203,13 @@
 %defattr(644,root,root,755)
 %doc ChangeLog README
 /lib/modules/%{_kernel_ver}/block/drbd.ko*
+
+%if %{with smp} && %{with dist_kernel}
+%files -n kernel%{_alt_kernel}-smp-block-drbd
+%defattr(644,root,root,755)
+%doc ChangeLog README
+/lib/modules/%{_kernel_ver}smp/block/drbd.ko*
+%endif
 %endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -180,6 +218,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.101.2.1  2007/09/30 18:55:54  adamg
+- up/smp bconds for ac
+
 Revision 1.101  2007/09/30 18:40:28  adamg
 - updated to 8.2.0 (builds on 2.6.22)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/drbd.spec?r1=1.101&r2=1.101.2.1&f=u



More information about the pld-cvs-commit mailing list