From: Szymon Siwek Date: Sat, 21 Sep 2013 16:05:38 +0000 (+0200) Subject: trying to avoid distifile error: "undefined macro _alt_kernel" X-Git-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?p=packages%2Facpi_call.git;a=commitdiff_plain;h=b9a5a3a1933770880826f3dbef775314462209e6 trying to avoid distifile error: "undefined macro _alt_kernel" --- 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}