SHA256
1
0
forked from pool/kseexpr
kseexpr/kseexpr.spec
Christophe Giboudeaux 03987bb2c3 Accepting request 899339 from home:wolfi323:branches:KDE:Extra
- Update to 4.0.2.0
  * Fix charconv support with MSVC/GCC11 (kde#437890)
  * Remove unnecessary parameters in CMakeLists
  * Fix translation lookup in stock Linux deployments (kde#429782)
  * Make reproducible tarballs
  * Add support for LLVM 11
- Drop patches merged upstream:
  * Fix-translation-lookup-in-stock-Linux-deployments.patch
  * 0001-Fix-charconv-support-with-MSVC-GCC11.patch

OBS-URL: https://build.opensuse.org/request/show/899339
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kseexpr?expand=0&rev=7
2021-06-10 20:00:08 +00:00

105 lines
2.9 KiB
RPMSpec

#
# spec file for package kseexpr
#
# Copyright (c) 2021 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 sover 4_0_2_0
%if %pkg_vcmp extra-cmake-modules >= 5.64
%bcond_without lang
%else
%bcond_with lang
%endif
Name: kseexpr
Version: 4.0.2.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
Group: Productivity/Graphics/Other
URL: https://invent.kde.org/graphics/kseexpr/
Source0: https://download.kde.org/stable/%{name}/4.0.2/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE
Patch0: Fix-possible-compiler-error.patch
BuildRequires: extra-cmake-modules
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: cmake(Qt5Widgets)
%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: %{name} libraries
Group: System/Libraries
# for the lang package to be installable
Provides: %{name} = %{version}
%description -n libKSeExpr%{sover}
Runtime libraries for %{name}.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: libKSeExpr%{sover} = %{version}
%description devel
Development headers and libraries for %{name}.
%lang_package
%prep
%autosetup -p1
%build
%cmake
%cmake_build
%install
%cmake_install
%if %{with lang}
%find_lang seexpr2 %{name}.lang --with-qt
%endif
%post -n libKSeExpr%{sover} -p /sbin/ldconfig
%postun -n libKSeExpr%{sover} -p /sbin/ldconfig
%files -n libKSeExpr%{sover}
%license LICENSES/*
%{_libdir}/libKSeExpr.so.%{version}
%{_libdir}/libKSeExprUI.so.%{version}
%files devel
%{_datadir}/pkgconfig/kseexpr.pc
%{_includedir}/KSeExpr/
%{_includedir}/KSeExprUI/
%{_libdir}/cmake/KSeExpr/
%{_libdir}/libKSeExpr.so
%{_libdir}/libKSeExprUI.so
%if %{with lang}
%files lang -f %{name}.lang
%endif
%changelog