SPECS (LINUX_2_6_22): drbd8.spec - prepare for 2.6.22 kernel on ac
glen
glen at pld-linux.org
Wed Jul 2 16:58:39 CEST 2008
Author: glen Date: Wed Jul 2 14:58:39 2008 GMT
Module: SPECS Tag: LINUX_2_6_22
---- Log message:
- prepare for 2.6.22 kernel on ac
---- Files affected:
SPECS:
drbd8.spec (1.1.2.3 -> 1.1.2.3.2.1)
---- Diffs:
================================================================
Index: SPECS/drbd8.spec
diff -u SPECS/drbd8.spec:1.1.2.3 SPECS/drbd8.spec:1.1.2.3.2.1
--- SPECS/drbd8.spec:1.1.2.3 Tue Jun 3 09:11:54 2008
+++ SPECS/drbd8.spec Wed Jul 2 16:58:32 2008
@@ -3,25 +3,20 @@
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%bcond_without kernel # don't build kernel modules
-%bcond_without up # don't build UP module
-%bcond_without smp # don't build SMP module
%bcond_without userspace # don't build userspace module
%bcond_with verbose # verbose build (V=1)
%bcond_with grsec_kernel # build for kernel-grsecurity
-#
-%ifarch sparc
-%undefine with_smp
-%endif
%if %{without kernel}
%undefine with_dist_kernel
%endif
-%if %{with kernel} && %{with dist_kernel} && %{with grsec_kernel}
-%define alt_kernel grsecurity
-%endif
%if "%{_alt_kernel}" != "%{nil}"
%undefine with_userspace
%endif
+%if %{without userspace}
+# nothing to be placed to debuginfo package
+%define _enable_debug_packages 0
+%endif
%define _rel 1
%define pname drbd
@@ -84,9 +79,9 @@
%package -n kernel%{_alt_kernel}-block-drbd8
Summary: Kernel module with drbd - a block device designed to build high availibility clusters
Summary(pl.UTF-8): Moduł jądra do drbd - urządzenia blokowego dla klastrów o wysokiej niezawodności
-Release: %{_rel}@%{_kernel_ver_str}
+Release: %{_rel}@%{_kernel_vermagic}
Group: Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_up}
+%{?with_dist_kernel:Requires: kernel%{_alt_kernel}(vermagic) = %{_kernel_ver}}
Requires(post,postun): /sbin/depmod
Requires: drbdsetup8
Conflicts: kernel%{_alt_kernel}-block-drbd
@@ -101,26 +96,6 @@
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-drbd8
-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: drbdsetup8
-Conflicts: kernel%{_alt_kernel}-smp-block-drbd
-
-%description -n kernel%{_alt_kernel}-smp-block-drbd8
-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-drbd8 -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 -n %{pname}-%{version}
%patch0 -p1
@@ -172,12 +147,6 @@
%postun -n kernel%{_alt_kernel}-block-drbd8
%depmod %{_kernel_ver}
-%post -n kernel%{_alt_kernel}-smp-block-drbd8
-%depmod %{_kernel_ver}smp
-
-%postun -n kernel%{_alt_kernel}-smp-block-drbd8
-%depmod %{_kernel_ver}smp
-
%pre -n drbdsetup8
%groupadd -g 60 haclient
@@ -196,7 +165,6 @@
%groupremove haclient
fi
-
%if %{with userspace}
%files -n drbdsetup8
%defattr(644,root,root,755)
@@ -210,27 +178,21 @@
%endif
%if %{with kernel}
-%if %{with up} || %{without dist_kernel}
%files -n kernel%{_alt_kernel}-block-drbd8
%defattr(644,root,root,755)
%doc ChangeLog README
/lib/modules/%{_kernel_ver}/block/drbd.ko*
%endif
-%if %{with smp} && %{with dist_kernel}
-%files -n kernel%{_alt_kernel}-smp-block-drbd8
-%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"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.1.2.3.2.1 2008/07/02 14:58:32 glen
+- prepare for 2.6.22 kernel on ac
+
Revision 1.1.2.3 2008/06/03 07:11:54 adamg
- updated to 8.2.6
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/drbd8.spec?r1=1.1.2.3&r2=1.1.2.3.2.1&f=u
More information about the pld-cvs-commit
mailing list