summaryrefslogtreecommitdiffstats
path: root/redhat/applications/amarok
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2020-06-01 18:57:38 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2020-06-01 19:02:01 +0200
commit5695f918a861024d7a5ddcf08789851b11d61ae1 (patch)
tree12d5ba8d0cee1b2c819951633a5b7ba4eaa4d941 /redhat/applications/amarok
parent54f2742a8cc74c777596d4a292fbe1c265a71871 (diff)
downloadtde-packaging-5695f918a861024d7a5ddcf08789851b11d61ae1.tar.gz
tde-packaging-5695f918a861024d7a5ddcf08789851b11d61ae1.zip
RPM: fix xine dependencies
Diffstat (limited to 'redhat/applications/amarok')
-rw-r--r--redhat/applications/amarok/amarok.spec18
1 files changed, 11 insertions, 7 deletions
diff --git a/redhat/applications/amarok/amarok.spec b/redhat/applications/amarok/amarok.spec
index 2ac8a4c8d..c7c9513a2 100644
--- a/redhat/applications/amarok/amarok.spec
+++ b/redhat/applications/amarok/amarok.spec
@@ -210,17 +210,21 @@ BuildRequires: %{_lib}inotifytools-devel
%endif
# XINE support
-%if 0%{?suse_version} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?fedora} == 18 || 0%{?fedora} == 19 || 0%{?rhel} == 5 || 0%{?rhel} == 6 || 0%{?rhel} == 7
+%if 0%{?fedora} && 0%{?fedora} <= 31
%define with_xine 1
-%if 0%{?mgaversion} || 0%{?mdkversion}
-BuildRequires: %{_lib}xine1.2-devel
+BuildRequires: xine-lib-devel
%endif
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?rhel} && 0%{?rhel} <= 7
+#define with_xine 1
BuildRequires: xine-lib-devel
%endif
-%if 0%{?suse_version}
-BuildRequires: libxine-devel
+%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?pclinuxos}
+%define with_xine 1
+BuildRequires: %{_lib}xine1.2-devel
%endif
+%if 0%{?sle_version} && 0%{?sle_version} <= 150000
+%define with_xine 1
+BuildRequires: libxine-devel
%endif
# YAUAP support
@@ -471,7 +475,7 @@ fi
\
%{?with_libvisual:-DWITH_LIBVISUAL=ON} \
-DWITH_KONQSIDEBAR=ON \
- %{?with_xine:-DWITH_XINE=ON} \
+ %{?with_xine:-DWITH_XINE=ON} %{?!with_xine:-DWITH_XINE=OFF}\
%{?with_yauap:-DWITH_YAUAP=ON} \
-DWITH_AKODE=OFF \
%{?with_gpod:-DWITH_IPOD=ON} \