From a2b212f0cd8eb05bd41ea82acc23720d2f0c3827 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= <albator78@libertysurf.fr>
Date: Sat, 24 Sep 2016 18:41:38 +0200
Subject: RPM packaging: fix tdelibs/tdebase build on opensuse 42.1/42.2

---
 redhat/main/tdebase/tdebase-14.0.0.spec | 4 ++--
 redhat/main/tdelibs/tdelibs-14.0.0.spec | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'redhat')

diff --git a/redhat/main/tdebase/tdebase-14.0.0.spec b/redhat/main/tdebase/tdebase-14.0.0.spec
index 539b29d62..b6fc673a8 100644
--- a/redhat/main/tdebase/tdebase-14.0.0.spec
+++ b/redhat/main/tdebase/tdebase-14.0.0.spec
@@ -309,7 +309,7 @@ Requires:	hicolor-icon-theme-branding
 %endif
 
 # OpenSuse 42.1 Theme
-%if "%{?suse_version}" == "4210"
+%if "%{?sle_version}" == "120100"
 Requires:	wallpaper-branding = 42.1
 %define tde_bg /usr/share/wallpapers/openSUSEdefault/contents/images/1600x1200.jpg
 Requires:	hicolor-icon-theme-branding
@@ -317,7 +317,7 @@ Requires:	hicolor-icon-theme-branding
 %endif
 
 # OpenSuse 42.2 Theme
-%if "%{?suse_version}" == "4220"
+%if "%{?sle_version}" == "120200"
 Requires:	wallpaper-branding = 42.2
 %define tde_bg /usr/share/wallpapers/openSUSEdefault/contents/images/1600x1200.jpg
 Requires:	hicolor-icon-theme-branding
diff --git a/redhat/main/tdelibs/tdelibs-14.0.0.spec b/redhat/main/tdelibs/tdelibs-14.0.0.spec
index cb04e8ffa..93b4112d2 100644
--- a/redhat/main/tdelibs/tdelibs-14.0.0.spec
+++ b/redhat/main/tdelibs/tdelibs-14.0.0.spec
@@ -352,7 +352,7 @@ BuildRequires:	libudev-devel
 
 # UDISKS support
 %if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} == 6
-%if 0%{?pclinuxos} == 0 && 0%{?suse_version} <= 1320
+%if 0%{?pclinuxos} == 0 && 0%{?suse_version} <= 1310
 %define with_udisks 1
 BuildRequires:	udisks-devel
 Requires:		udisks
-- 
cgit v1.2.1