From b9a5a3a1933770880826f3dbef775314462209e6 Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Sat, 21 Sep 2013 18:05:38 +0200 Subject: [PATCH] trying to avoid distifile error: "undefined macro _alt_kernel" --- acpi_call.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/acpi_call.spec b/acpi_call.spec index a15b26c..88ddb88 100644 --- a/acpi_call.spec +++ b/acpi_call.spec @@ -25,7 +25,9 @@ Source0: http://sls.warszawa.pl/%{name}-%{version}.tar.gz # Source0-md5: f4eb8bb4d4413a5ae65aa7d77f4112c0 URL: https://github.com/mkottman/acpi_call %if %{with kernel} -%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2} +%if %{with dist_kernel} +BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2 +%endif BuildRequires: rpmbuild(macros) >= 1.379 %endif ExclusiveArch: %{ix86} %{x8664} -- 2.44.0