]> git.pld-linux.org Git - packages/drbd.git/commitdiff
- alt kernel support from AC-branch
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 26 Dec 2007 11:57:58 +0000 (11:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drbd.spec -> 1.103

drbd.spec

index da9c1342f8ce196123d80725939a35bf49d01b0d..72adc1f767822cb1e9523620a4bf66eb9368ddc5 100644 (file)
--- a/drbd.spec
+++ b/drbd.spec
@@ -6,21 +6,32 @@
 %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
-#
-%define        _rel    1
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine      with_userspace
+%endif
+
+%define                _rel    2
+%define                pname   drbd
 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
-Name:          drbd
+Name:          %{pname}%{_alt_kernel}
 Version:       8.2.1
 Release:       %{_rel}
 License:       GPL
 Group:         Base/Kernel
-Source0:       http://oss.linbit.com/drbd/8.2/%{name}-%{version}.tar.gz
+Source0:       http://oss.linbit.com/drbd/8.2/%{pname}-%{version}.tar.gz
 # Source0-md5: 345c1056b2033184a7935c1bb79cc57e
-Patch0:                %{name}-Makefile.patch
+Patch0:                %{pname}-Makefile.patch
 URL:           http://www.drbd.org/
 %if %{with userspace}
 BuildRequires: bison
@@ -86,7 +97,7 @@ 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
+%setup -q -n %{pname}-%{version}
 %patch0 -p1
 
 %build
This page took 0.235385 seconds and 4 git commands to generate.