SHA256
1
0
forked from pool/gwenview5
Christophe Giboudeaux 2020-03-28 14:34:12 +00:00 committed by Git OBS Bridge
parent 0e6a239481
commit d9016055cd

View File

@ -67,15 +67,6 @@ Obsoletes: gwenview < %{version}
Source1: https://download.kde.org/unstable/release-service/%{version}/src/%{rname}-%{version}.tar.xz.sig Source1: https://download.kde.org/unstable/release-service/%{version}/src/%{rname}-%{version}.tar.xz.sig
Source2: applications.keyring Source2: applications.keyring
%endif %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 %description
Gwenview is an image viewer for KDE. It features a folder tree Gwenview is an image viewer for KDE. It features a folder tree
@ -88,27 +79,17 @@ hierarchies.
%setup -q -n %{rname}-%{version} %setup -q -n %{rname}-%{version}
%build %build
%if 0%{?suse_version} < 1330 %cmake_kf5 -d build -- -DGWENVIEW_SEMANTICINFO_BACKEND="Baloo"
# It does not build with the default compiler (GCC 4.8) on Leap 42.x %cmake_build
%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
%install %install
%kf5_makeinstall -C build %kf5_makeinstall -C build
%if %{with lang} %if %{with lang}
%find_lang %{name} --with-man --all-name %find_lang %{name} --with-man --all-name
%{kf5_find_htmldocs} %{kf5_find_htmldocs}
%endif %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 %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig