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