File kseexpr.spec of Package kseexpr
#
# spec file for package kseexpr
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#
%define kf6_version 6.2.0
%define qt6_version 6.6.0
%define sover 6
Name: kseexpr
Version: 6.0.0.0
Release: 0
Summary: The embeddable expression engine fork for Krita
License: GPL-3.0-or-later AND Apache-2.0 AND BSD-3-Clause AND MIT
URL: https://invent.kde.org/graphics/kseexpr/
Source0: https://download.kde.org/stable/kseexpr/4.0.3/%{name}-%{version}.tar.gz
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires: pkgconfig
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
BuildRequires: cmake(Qt6Gui) >= %{qt6_version}
BuildRequires: cmake(Qt6LinguistTools) >= %{qt6_version}
BuildRequires: cmake(Qt6Widgets) >= %{qt6_version}
%description
This is the fork of Disney Animation's SeExpr expression
library (https://wdas.github.io/SeExpr), that is used in Krita.
SeExpr is an embeddable, arithmetic expression language
that enables flexible artistic control and customization
in creating computer graphics images. Example uses
include procedural geometry synthesis, image synthesis,
simulation control, crowd animation, and geometry deformation.
%package -n libKSeExpr%{sover}
Summary: kseexpr libraries
Group: System/Libraries
# for the lang package to be installable
Provides: kseexpr = %{version}
%description -n libKSeExpr%{sover}
Runtime libraries for kseexpr.
%package devel
Summary: Development files for kseexpr
Group: Development/Libraries/C and C++
Requires: libKSeExpr%{sover} = %{version}
%description devel
Development headers and libraries for kseexpr.
%lang_package
%prep
%autosetup -p1
%build
%cmake_kf6
%kf6_build
%install
%kf6_install
%find_lang seexpr2 %{name}.lang --with-qt
# FIXME upstream issue
mkdir -p %{buildroot}%{_kf6_pkgconfigdir}
mv %{buildroot}%{_datadir}/pkgconfig/kseexpr.pc %{buildroot}%{_kf6_pkgconfigdir}/
%ldconfig_scriptlets -n libKSeExpr%{sover}
%files -n libKSeExpr%{sover}
%license LICENSES/*
%{_kf6_libdir}/libKSeExpr.so.*
%{_kf6_libdir}/libKSeExprUI.so.*
%files devel
%{_includedir}/KSeExpr/
%{_includedir}/KSeExprUI/
%{_kf6_cmakedir}/KSeExpr/
%{_kf6_libdir}/libKSeExpr.so
%{_kf6_libdir}/libKSeExprUI.so
%{_kf6_pkgconfigdir}/kseexpr.pc
%files lang -f %{name}.lang
%changelog