diff options
Diffstat (limited to 'redhat/applications/kaffeine')
-rw-r--r-- | redhat/applications/kaffeine/kaffeine.spec | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/redhat/applications/kaffeine/kaffeine.spec b/redhat/applications/kaffeine/kaffeine.spec index 39bc1362b..58e9424b3 100644 --- a/redhat/applications/kaffeine/kaffeine.spec +++ b/redhat/applications/kaffeine/kaffeine.spec @@ -114,8 +114,20 @@ BuildRequires: libXext-devel BuildRequires: libXtst-devel BuildRequires: libXinerama-devel %endif -%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 -BuildRequires: libxcb-devel + +# XCB support +%if 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?pclinuxos} || 0%{?mgaversion} || 0%{?mdkversion} +%if 0%{?pclinuxos} == 0 +%define with_xcb 1 +%endif +%if 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?pclinuxos} +BuildRequires: libxcb-devel +%endif +%if 0%{?mgaversion} || 0%{?mdkversion} +%if 0%{?pclinuxos} == 0 +BuildRequires: %{_lib}xcb-devel +%endif +%endif %endif # GSTREAMER support @@ -178,6 +190,11 @@ BuildRequires: lame-devel %endif %endif +# DVB support +%if 0%{?rhel} != 5 +%define with_dvb 1 +%endif + # WTF support %if 0%{?mgaversion} || 0%{?mdkversion} %if 0%{?pclinuxos} == 0 @@ -286,11 +303,13 @@ fi -DSHARE_INSTALL_PREFIX=%{tde_datadir} \ \ -DWITH_ALL_OPTIONS=ON \ + %{?!with_dvb:-DWITH_DVB=OFF} \ %{?!with_lame:-DWITH_LAME=OFF} \ + %{?!with_xcb:-DWITH_XCB=OFF} \ -DBUILD_ALL=ON \ .. -%__make %{?_smp_mflags} +%__make %{?_smp_mflags} || %__make %install |