File digikam-gmic-qt.spec of Package digikam-gmic-qt
#
# spec file for package digikam-gmic-qt
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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 https://bugs.opensuse.org/
#
Name: digikam-gmic-qt
Version: 3.6.0+20251021
Release: 0
Summary: Plugins for G'MIC-Qt integration into DigiKam
# gmic-qt is GPL-3.0-or-later, zart is CECILL-2.0, libgmic and cli program are
# CECILL-2.1
License: CECILL-2.1
URL: https://github.com/cgilles/digikam-gmic-qt
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake >= 3.16.0
BuildRequires: digikam
BuildRequires: digikam-devel
BuildRequires: extra-cmake-modules
BuildRequires: fftw3-threads-devel
%if 0%{?suse_version} == 1500
# Qt 6 requires c++-17, we'll use the latest version available on Leap 15
BuildRequires: gcc13-c++
BuildRequires: gcc13-PIE
%endif
BuildRequires: pkgconfig
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(Qt6Xml)
BuildRequires: pkgconfig(OpenEXR)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libheif)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(opencv4)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb-shm)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(zlib)
Supplements: digikam-plugins
%requires_eq digikam
%description
G'MIC is a framework for image processing, providing
several different user interfaces to convert/manipulate/filter/visualize
generic image datasets, from 1d scalar signals to 3d+t sequences of
multi-spectral volumetric images.
This package contains DigiKam plugins to integrate G'MIC functionality.
%prep
%autosetup -p1
%build
%if 0%{?suse_version} == 1500
export CC=gcc-13 CXX=g++-13
%endif
%if 0%{?suse_version} == 1600
# With LTO it fails with
# lto1: fatal error: multiple prevailing defs for 'call'
# possibly https://sourceware.org/bugzilla/show_bug.cgi?id=32083?
%define _lto_cflags %{nil}
%endif
%cmake -DENABLE_SYSTEM_GMIC=OFF -DENABLE_DYNAMIC_LINKING=OFF \
-DGMIC_QT_HOST=digikam -DBUILD_WITH_QT6=ON
%cmake_build
%install
%cmake_install
%files
%license LICENSES/*
%dir %{_qt6_pluginsdir}/digikam/
%{_qt6_pluginsdir}/digikam/bqm/
%{_qt6_pluginsdir}/digikam/editor/
%{_qt6_pluginsdir}/digikam/generic/
%changelog