From 70c5fd9d5b18c1afd41aa5897aaee1365f14c753 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Wed, 4 Aug 2010 19:35:36 -0400 Subject: [PATCH] add more conditional flags to make building on el6 easier Signed-off-by: Jarod Wilson --- lirc.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lirc.spec b/lirc.spec index dc3c5bb..8c0a708 100644 --- a/lirc.spec +++ b/lirc.spec @@ -14,6 +14,8 @@ %bcond_without portaudio %bcond_without x %bcond_with svgalib +%bcond_without irman +%bcond_without ftdi %global released 0 %define pre pre2 @@ -48,8 +50,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{__perl} BuildRequires: libusb-devel, python-devel -BuildRequires: libftdi-devel, libirman-devel BuildRequires: automake libtool +%if %{with_irman} +BuildRequires: libirman-devel +%endif +%if %{with_ftdi} +BuildRequires: libftdi-devel +%endif %if %{with alsa} BuildRequires: alsa-lib-devel %endif