SHA256
1
0
forked from pool/kseexpr
kseexpr/kseexpr.spec
Luca Beltrame b1c0126d24 Accepting request 940837 from home:wolfi323:branches:KDE:Extra
- Update to 4.0.4.0
  * Add support for LLVM 13
  * Fix copy-paste typo in range comment parsing (kde#442853)
  * ExprEditor: replace index for line/column when reporting errors
  * Reject malformed curve and ccurve calls at parse time
  * Do not look LLVM up unless explicitly enabled
- Add signature file and keyring

OBS-URL: https://build.opensuse.org/request/show/940837
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kseexpr?expand=0&rev=10
2021-12-17 05:21:49 +00:00

106 lines
3.0 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
%bcond_without lang
Name: kseexpr
Version: 4.0.4.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.4/%{name}-%{version}.tar.gz
%if %{with lang}
Source1: https://download.kde.org/stable/%{name}/4.0.4/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
%endif
BuildRequires: extra-cmake-modules
BuildRequires: cmake(KF5I18n)
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.%{sover}
%{_libdir}/libKSeExpr.so.%{sover}.*
%{_libdir}/libKSeExprUI.so.%{sover}
%{_libdir}/libKSeExprUI.so.%{sover}.*
%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