Christophe Marin 2024-09-29 16:13:32 +00:00 committed by Git OBS Bridge
commit 7c574092a4
11 changed files with 3023 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,23 @@
From 2d71c47661d43a4e3c1ab0c27803de980bdf2bb2 Mon Sep 17 00:00:00 2001
From: Antonio Rojas <arojas@archlinux.org>
Date: Mon, 11 Dec 2023 20:26:13 +0100
Subject: [PATCH] Bump SIP ABI version to 12.8
Fixes build with SIP 6.8
---
cmake/modules/pyproject.toml.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/modules/pyproject.toml.in b/cmake/modules/pyproject.toml.in
index 44ca263..462063b 100644
--- a/cmake/modules/pyproject.toml.in
+++ b/cmake/modules/pyproject.toml.in
@@ -9,7 +9,7 @@ name = "@module_name_toml@"
sip-module = "@sip_name@"
sip-include-dirs = @sip_include_dirs@
sip-files-dir = "@module_srcs@"
-abi-version = "12"
+abi-version = "12.8"
[tool.sip.bindings.@module_name_toml@]
pep484-pyi = true

10
_constraints Normal file
View File

@ -0,0 +1,10 @@
<constraints>
<hardware>
<memory>
<size unit="G">4</size>
</memory>
<disk>
<size unit="G">10</size>
</disk>
</hardware>
</constraints>

3
krita-5.2.3.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cf78ddb39700c92928cf14d7611b8ef3870d8f5b83ef590d43e218bec5dafd54
size 186685456

BIN
krita-5.2.3.tar.xz.sig Normal file

Binary file not shown.

3
krita-5.2.5.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:da54d161c971d9e212d16bc150f36711d23044801157e5a860a56365d569bc15
size 186553868

16
krita-5.2.5.tar.xz.sig Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEBkGCRAxnTZ+ND2+LTaee2iMchSsFAmbtQ+IACgkQTaee2iMc
hSutABAAp6d0wCG2PUvS88WFcv8I7upNz7XB84N+TmT7XGFXSWkM/fMIuic/Tc/N
FSD9rlF5Kc4WEYx6qLEKkJPLwB/YYwpkV5qFFB7Sw7I1BIvhYzUJp4LW91vd1MP5
ZClAWqGBklge7BbwUMRLl+NmHp2ITW447iCzNTAeuwBB4aDJk9z5p360YkgKtozS
9yb1YpiDwANUbLq52nm6BT4F32o0piZ2SHBtrQ0VKXpZsR8AsE5KkikLlTAVAFc9
6WKxgXrqzeVkn/l9wNf1Qil7NvO5Rk50PyrWJuE1+aa2sXJqm2mR4jYR4gV3iZ/x
ACHd0z+bfyMPhnZrLVBUeFM1XexI8AInhd78iJMoffRDcSSB25dBLfY1Hy3E0Ua6
faD0u/34OwgmjE3q3Hu6v5I0qNYwNfOjbVs1imfiCJK/rSc5s9zEIXNFbbrFf1L4
8KPHnaH27nqZLfxpdhDvV8SuPAHBdpQzFUA3vP4MC27UPey2g+iTvEzB/BrbwtAe
qOQCQIEo1afsWzuq7RAWOPNJzd9T3S1AGtrzTy70Jq+dYqzmeeb+X/DOZXlakqDf
2Xnysmt8LqkxYGJhfcgP2AlRQpDEvYli7TYGLhnSCv30Up/dbMbGIF33EgjAWvcW
RnGVZC9lmZdI1bD5/Yh1nZ5uthX7knP4HdAdX26SMUe9O/RyHk4=
=NAXk
-----END PGP SIGNATURE-----

2746
krita.changes Normal file

File diff suppressed because it is too large Load Diff

BIN
krita.keyring Normal file

Binary file not shown.

198
krita.spec Normal file
View File

@ -0,0 +1,198 @@
#
# spec file for package krita
#
# Copyright (c) 2024 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/
#
%bcond_without released
# Build fails on x86 and powerpc with xsimd (kde#462122)
%ifnarch %{ix86} ppc64 ppc64le
%bcond_without xsimd
%endif
# Default python version is too old in Leap 15
%{?sle15_python_module_pythons}
%if 0%{?suse_version} > 1500
%define pyver python3
%else
%define pyver python311
%endif
Name: krita
Version: 5.2.5
Release: 0
Summary: Digital Painting Application
License: BSD-2-Clause AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-3.0-or-later AND CC0-1.0 AND LGPL-2.0-only
URL: https://www.krita.org/
Source0: https://download.kde.org/stable/krita/%{version}/krita-%{version}.tar.xz
%if %{with released}
Source1: https://download.kde.org/stable/krita/%{version}/krita-%{version}.tar.xz.sig
Source2: krita.keyring
%endif
# PATCH-FIX-UPSTREAM
Patch0: 0004-Fix-build-with-sip6.8.patch
BuildRequires: %{pyver}-devel
BuildRequires: %{pyver}-qt5-devel
BuildRequires: %{pyver}-sip-devel
BuildRequires: OpenEXR-devel
BuildRequires: extra-cmake-modules
BuildRequires: fftw3-devel
BuildRequires: giflib-devel
BuildRequires: gsl-devel
%if 0%{?suse_version} > 1500
BuildRequires: libboost_system-devel
%else
BuildRequires: libboost_system1_75_0-devel
#!BuildIgnore: libboost_headers1_66_0-devel
%endif
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: libeigen3-devel
BuildRequires: libexiv2-devel
BuildRequires: libheif-devel
BuildRequires: libjpeg-devel
BuildRequires: liblcms2-devel
BuildRequires: libpng-devel
BuildRequires: libpoppler-qt5-devel
BuildRequires: libraw-devel
BuildRequires: libtiff-devel
BuildRequires: openjpeg2-devel
BuildRequires: perl
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
BuildRequires: cmake(Immer)
BuildRequires: cmake(KF5Completion)
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5Crash)
BuildRequires: cmake(KF5GuiAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5ItemModels)
BuildRequires: cmake(KF5ItemViews)
BuildRequires: cmake(KF5KDcraw)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(Lager)
BuildRequires: cmake(Mlt7)
BuildRequires: cmake(Qt5Concurrent)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5PrintSupport)
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5QuickWidgets)
BuildRequires: cmake(Qt5Sql)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5X11Extras)
BuildRequires: cmake(Qt5Xml)
BuildRequires: cmake(QuaZip-Qt5)
BuildRequires: cmake(Zug)
BuildRequires: cmake(kseexpr)
BuildRequires: cmake(sdl2)
%if %{with xsimd}
BuildRequires: cmake(xsimd)
%endif
BuildRequires: pkgconfig(OpenColorIO)
BuildRequires: pkgconfig(fontconfig) >= 2.13.1
BuildRequires: pkgconfig(freetype2) >= 2.11.0
BuildRequires: pkgconfig(fribidi) >= 1.0.6
BuildRequires: pkgconfig(harfbuzz) >= 4.0
BuildRequires: pkgconfig(libjxl)
BuildRequires: pkgconfig(libmypaint)
BuildRequires: pkgconfig(libunibreak)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(xcb-atom)
BuildRequires: pkgconfig(xcb-xinput)
BuildRequires: pkgconfig(xi) >= 1.4.99.1
Recommends: %{pyver}-qt5
Recommends: krita-plugin-gmic
Obsoletes: calligra-krita < %{version}
Provides: calligra-krita = %{version}
%description
Krita is a painting program. It supports concept art, texture and
matte painters, as well as illustrations and comics.
%package devel
Summary: Krita Build Environment
Requires: krita = %{version}
Requires: cmake(Qt5Core)
%description devel
Development headers and libraries for Krita.
%lang_package
%prep
%autosetup -p1
%build
%cmake_kf5 -d build -- -DKRITA_ENABLE_PCH:BOOL=OFF
%cmake_build
%install
%kf5_makeinstall -C build
%suse_update_desktop_file -r org.kde.krita Qt KDE Graphics RasterGraphics
%find_lang %{name}
chmod -x %{buildroot}%{_kf5_applicationsdir}/*.desktop
# remove shebang to avoid rpmlint warning, that file is not supposed to be run directly anyway
sed -i "/#!\/usr\/bin\/env/d" %{buildroot}%{_kf5_libdir}/krita-python-libs/krita/sceditor/highlighter.py
%ldconfig_scriptlets
%files
%license COPYING*
%doc AUTHORS HACKING README*
%{_kf5_bindir}/krita
%{_kf5_bindir}/krita_version
%{_kf5_bindir}/kritarunner
%{_kf5_applicationsdir}/*.desktop
%{_kf5_sharedir}/krita/
%{_kf5_appstreamdir}/
%{_kf5_libdir}/libkrita*.so.*
%{_kf5_libdir}/kritaplugins/
%{_kf5_libdir}/krita-python-libs/
%{_kf5_sharedir}/kritaplugins/
%{_kf5_sharedir}/color/
%{_kf5_sharedir}/color-schemes/
%{_kf5_iconsdir}/hicolor/*/apps/krita.*
%{_kf5_iconsdir}/hicolor/*/mimetypes/application-x-krita.png
%dir %{_kf5_iconsdir}/hicolor/1024x1024
%dir %{_kf5_iconsdir}/hicolor/1024x1024/apps
%dir %{_kf5_iconsdir}/hicolor/1024x1024/mimetypes
%dir %{_kf5_iconsdir}/hicolor/256x256
%dir %{_kf5_iconsdir}/hicolor/256x256/apps
%dir %{_kf5_iconsdir}/hicolor/256x256/mimetypes
%dir %{_kf5_iconsdir}/hicolor/512x512
%dir %{_kf5_iconsdir}/hicolor/512x512/apps
%dir %{_kf5_iconsdir}/hicolor/512x512/mimetypes
%config %{_kf5_configdir}/krita*
%files devel
%{_kf5_libdir}/libkrita*.so
%{_includedir}/kis_qmic_interface.h
%{_includedir}/kis_qmic_plugin_interface.h
%{_includedir}/kritaqmicinterface_export.h
%files lang -f %{name}.lang
%changelog