[lirc] add more conditional flags to make building on el6 easier
Jarod Wilson
jwilson at fedoraproject.org
Wed Aug 4 23:35:53 UTC 2010
commit 70c5fd9d5b18c1afd41aa5897aaee1365f14c753
Author: Jarod Wilson <jarod at redhat.com>
Date: Wed Aug 4 19:35:36 2010 -0400
add more conditional flags to make building on el6 easier
Signed-off-by: Jarod Wilson <jarod at redhat.com>
lirc.spec | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
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
More information about the scm-commits
mailing list