summaryrefslogtreecommitdiffstats
path: root/redhat/applications
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2021-05-13 22:37:43 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2021-05-13 22:40:34 +0200
commite992171187e448332d866ac9827f46b7632ce3fa (patch)
tree21afc436092e1bcb55834eb22ad3df9bdab883cb /redhat/applications
parentec1c5eaa0e86bf9f34c15e86675834683fbcbbfb (diff)
downloadtde-packaging-e992171187e448332d866ac9827f46b7632ce3fa.tar.gz
tde-packaging-e992171187e448332d866ac9827f46b7632ce3fa.zip
RPM: update build scripts for centos5
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/applications')
-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 971121e94..ecc2cfd85 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