aboutsummaryrefslogtreecommitdiff
path: root/rhel
diff options
context:
space:
mode:
authorAlexey I. Froloff <raorn@altlinux.org>2011-09-01 18:56:29 +0400
committerBen Pfaff <blp@nicira.com>2011-09-08 12:45:08 -0700
commit1821f032e0b621dad19750da2fc8f346c6007a7e (patch)
treee5559bff965be9cec36bdbaa6ce136d64b7b2995 /rhel
parent0a397a2fcafd3915433d4d476d41da53b07282d2 (diff)
rhel: rename RHEL6 kmod source package
Rename RHEL6 source package to openvswitch-kmod, so it doesn't intersect with main package. Signed-off-by: Alexey I. Froloff <raorn@altlinux.org> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'rhel')
-rw-r--r--rhel/openvswitch-kmod-rhel6.spec.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/rhel/openvswitch-kmod-rhel6.spec.in b/rhel/openvswitch-kmod-rhel6.spec.in
index 1d1955d6..3a1102d8 100644
--- a/rhel/openvswitch-kmod-rhel6.spec.in
+++ b/rhel/openvswitch-kmod-rhel6.spec.in
@@ -8,7 +8,9 @@
# notice and this notice are preserved. This file is offered as-is,
# without warranty of any kind.
-Name: openvswitch
+%define oname openvswitch
+
+Name: %{oname}-kmod
Version: @VERSION@
Release: 1%{?dist}
Summary: Open vSwitch kernel module
@@ -16,7 +18,7 @@ Summary: Open vSwitch kernel module
Group: System/Kernel
License: GPLv2
URL: http://openvswitch.org/
-Source0: %{name}-%{version}.tar.gz
+Source0: %{oname}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: %kernel_module_package_buildreqs
@@ -28,14 +30,14 @@ BuildRequires: %kernel_module_package_buildreqs
#kernel_module_package default debug
# Build only for standard kernel variant(s)
-%kernel_module_package default
+%kernel_module_package -n %{oname} default
%description
Open vSwitch Linux kernel module.
%prep
-%setup
+%setup -n %{oname}-%{version}
%build
for flavor in %flavors_to_build; do
@@ -46,7 +48,7 @@ done
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
-export INSTALL_MOD_DIR=extra/%{name}
+export INSTALL_MOD_DIR=extra/%{oname}
for flavor in %flavors_to_build ; do
make -C %{kernel_source $flavor} modules_install \
M=$PWD/_$flavor/datapath/linux