From 70c5fd9d5b18c1afd41aa5897aaee1365f14c753 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Wed, 4 Aug 2010 19:35:36 -0400 Subject: [PATCH 1/2] 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 From a971cba2fccc8550b3388976ecd04fb08d9da4c2 Mon Sep 17 00:00:00 2001 From: Jarod Wilson Date: Wed, 4 Aug 2010 19:45:30 -0400 Subject: [PATCH 2/2] fix up prior fix Signed-off-by: Jarod Wilson --- lirc.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lirc.spec b/lirc.spec index 8c0a708..d2e4a4a 100644 --- a/lirc.spec +++ b/lirc.spec @@ -51,10 +51,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{__perl} BuildRequires: libusb-devel, python-devel BuildRequires: automake libtool -%if %{with_irman} +%if %{with irman} BuildRequires: libirman-devel %endif -%if %{with_ftdi} +%if %{with ftdi} BuildRequires: libftdi-devel %endif %if %{with alsa}