File kuickshow.spec of Package kuickshow

#
# spec file for package confine
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define kf6_version 6.0.0
%define qt6_version 6.9.0

Name:           kuickshow
%if 0%{?suse_version} >= 1600
Version:        0.11.0
%else
Version:        0.10.2
%endif
Release:        0
Summary:        A fast and convenient image viewer
License:        GPL-2.0
Group:          Productivity/Graphics/Viewers
Url:            https://invent.kde.org/graphics/kuickshow
%if 0%{?suse_version} >= 1600
Source:         %{name}-master.tar.gz
%else
Source:         %{name}-0.10.2.tar.gz
%endif
%if 0%{?suse_version} >= 1600
BuildRequires:  kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires:	cmake(KF6DocTools) >= %{kf6_version}
BuildRequires:	cmake(KF6I18n) >= %{kf6_version}
BuildRequires:	cmake(KF6IconThemes) >= %{kf6_version}
BuildRequires:	cmake(KF6KIO) >= %{kf6_version}
BuildRequires:	cmake(KF6WindowSystem) >= %{kf6_version}
BuildRequires:	cmake(KF6XmlGui) >= %{kf6_version}
BuildRequires:	cmake(Qt6Core) >= %{qt6_version}
BuildRequires:	cmake(Qt6Gui) >= %{qt6_version}
BuildRequires:	cmake(Qt6PrintSupport) >= %{qt6_version}
%else
BuildRequires:  extra-cmake-modules
BuildRequires:  kf5-filesystem
BuildRequires:	cmake(KF5DocTools)
BuildRequires:	cmake(KF5I18n)
BuildRequires:	cmake(KF5IconThemes)
BuildRequires:	cmake(KF5Init)
BuildRequires:	cmake(KF5KIO)
BuildRequires:	cmake(KF5WindowSystem)
BuildRequires:	cmake(KF5XmlGui)
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5Gui)
BuildRequires:	cmake(Qt5PrintSupport)
BuildRequires:	cmake(Qt5X11Extras)
%endif
BuildRequires:  imlib2-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
KuickShow is a very fast image viewer, that lets you easily
browse large galleries. A builtin filebrowser and manager
is also available. Usage is somewhat inspired by ACDSee.
It supports many fileformats, e.g. jpeg, gif, png, psd, bmp, 
tiff, xpm, xbm, xcf, eim, ...

KuickShow has a nice user interface, that allows you to browse large amounts
of images in a short time. It can zoom, mirror, rotate images, adjust
brightness, contrast and gamma and can do a slideshow, of course.
It is fully configurable through dialogs.
 
Besides that, it offers a nice filebrowser with basic filemanager capabilities
like renaming, deleting, creating directories, ...

%lang_package

%prep
%if 0%{?suse_version} >= 1600
%setup -q -n %{name}-master
%else
%setup -q -n %{name}-%{version}
%endif

%build
%if 0%{?suse_version} >= 1600
%cmake_kf6
%kf6_build
%else
%cmake_kf5 -d build
%make_jobs
%endif

%install
%if 0%{?suse_version} >= 1600
%kf6_install
%else
%kf5_makeinstall -C build
%endif
%find_lang %{name} --with-man --all-name

%files
%defattr(-,root,root)
%license COPYING
%_bindir/kuickshow
%_datadir/applications/org.kde.kuickshow.desktop
%_datadir/kuickshow
%if 0%{?suse_version} >= 1600
%{_kf6_sharedir}/qlogging-categories6/kuickshow.categories
%else
%{_libdir}/libkdeinit5_kuickshow.so
%{_kf5_sharedir}/qlogging-categories5/kuickshow.categories
%endif
%_datadir/icons/hicolor/*/apps/kuickshow.png
%_datadir/doc/HTML/*

%files lang -f %{name}.lang
%if 0%{?suse_version} >= 1600
%exclude %{_kf6_htmldir}/*
%else
%exclude %{_kf5_htmldir}/*
%endif

%changelog
* Sun Mar 02 2025 - chrgerloff
  - bump version to 0.11.0 
* Mon Jan 13 2025 - chrgerloff
  - Updated to prerelease port to kde6
  - from https://invent.kde.org/graphics/kuickshow/-/archive/work/chore/prerelease-cleanup/

openSUSE Build Service is sponsored by