Search
j0ke.net Open Build Service
>
Projects
>
ha
>
keepalived
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 27
[-]
[+]
Changed
keepalived.spec
@@ -15,12 +15,12 @@ BuildRequires: openssl-devel ipvsadm %if 0%{?suse_version} BuildRequires: kernel-source popt-devel -%define kver %(echo `rpm -q kernel-source --queryformat '%{VERSION}'`) +%define kver_minor %(echo `rpm -q kernel-source --queryformat '%{VERSION}' | awk -F. '{print $3}'`) %endif %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} BuildRequires: kernel-devel popt %define kdir %(echo `find /usr/src/kernels -maxdepth 1 -type d |grep "2.6"`) -%define kver %(echo `rpm -q kernel-devel --queryformat '%{VERSION}'`) +%define kver_minor %(echo `rpm -q kernel-devel --queryformat '%{VERSION}'| awk -F. '{print $3}'`) %endif Requires: ipvsadm @@ -31,7 +31,7 @@ rm -rf %{buildroot} %setup -q %patch0 -p1 -%if %{kver} < 2.6.27 +%if %{kver_minor} < 27 %patch1 -p0 %endif