From d9016055cdb4952c29446f02569eabc0f210c0dd69954af927ed15a1532c86e7 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sat, 28 Mar 2020 14:34:12 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/gwenview5?expand=0&rev=170 --- gwenview5.spec | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/gwenview5.spec b/gwenview5.spec index d083d6c..daa7a49 100644 --- a/gwenview5.spec +++ b/gwenview5.spec @@ -67,15 +67,6 @@ Obsoletes: gwenview < %{version} Source1: https://download.kde.org/unstable/release-service/%{version}/src/%{rname}-%{version}.tar.xz.sig Source2: applications.keyring %endif -# Needed for 42.3 -%if 0%{?suse_version} < 1330 -# It does not build with the default compiler (GCC 4.8) on Leap 42.x -%if 0%{?sle_version} < 120300 -BuildRequires: gcc6-c++ -%else -BuildRequires: gcc7-c++ -%endif -%endif %description Gwenview is an image viewer for KDE. It features a folder tree @@ -88,27 +79,17 @@ hierarchies. %setup -q -n %{rname}-%{version} %build - %if 0%{?suse_version} < 1330 - # It does not build with the default compiler (GCC 4.8) on Leap 42.x - %if 0%{?sle_version} < 120300 - export CC=gcc-6 - export CXX=g++-6 - %else - export CC=gcc-7 - export CXX=g++-7 - %endif - %endif - %cmake_kf5 -d build -- -DGWENVIEW_SEMANTICINFO_BACKEND="Baloo" - %cmake_build +%cmake_kf5 -d build -- -DGWENVIEW_SEMANTICINFO_BACKEND="Baloo" +%cmake_build %install - %kf5_makeinstall -C build - %if %{with lang} - %find_lang %{name} --with-man --all-name - %{kf5_find_htmldocs} - %endif +%kf5_makeinstall -C build +%if %{with lang} + %find_lang %{name} --with-man --all-name + %{kf5_find_htmldocs} +%endif - %suse_update_desktop_file -r org.kde.gwenview Graphics RasterGraphics Viewer KDE +%suse_update_desktop_file -r org.kde.gwenview Graphics RasterGraphics Viewer KDE %post -p /sbin/ldconfig %postun -p /sbin/ldconfig