summaryrefslogtreecommitdiffstats
path: root/redhat/applications/kaffeine
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2021-05-13 22:37:43 +0200
committerFrançois Andriot <[email protected]>2021-05-13 22:39:10 +0200
commit1b7fda4f91482574988731a5753c9bbd40dee0e7 (patch)
treee5c8a43a217a26ea1d37a1f5f80a5a72fdb7b1fb /redhat/applications/kaffeine
parent8e3510f75a34c04dcf4503c15d4cfa85c92ed0e4 (diff)
downloadtde-packaging-1b7fda4f91482574988731a5753c9bbd40dee0e7.tar.gz
tde-packaging-1b7fda4f91482574988731a5753c9bbd40dee0e7.zip
RPM: update build scripts for centos5
Signed-off-by: François Andriot <[email protected]>
Diffstat (limited to 'redhat/applications/kaffeine')
-rw-r--r--redhat/applications/kaffeine/kaffeine.spec25
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