krita/krita.spec
Luca Beltrame 3843ea0816 Accepting request 899340 from home:wolfi323:branches:KDE:Extra
- Update to 4.4.5:
  * See https://krita.org/en/item/krita-4-4-5-released/
  * Set ElideRight for the tabs in the mdiarea (kde#433640)
  * If loading the image fails too often, stop retrying
    (kde#433652)
  * Use QVersionNumber to compare versions
  * Fix oilpaint filter's tiling artifacts
  * Only open the bug dialog when Krita is in alpha or beta
  * Fix crash on popup palette on 125% scale (kde#431944)
  * Fix compilation for GCC11 (kde#434150)
  * Use opengl ES on Arm Linux (kde#421136)
  * Fix crash on importing a broken icc profile (kde#434273)
  * Remove the hello world demo plugin (kde#422380)
  * Bugfix: Crash with crop tool (kde#433770)
  * Bugfix: Transform (Shear) tool doesn't use pivot (kde#427462)
  * Fix angle range in the angle selector in status bar and
    overview docker (kde#434993)
  * Implement "Scale handles proportionally" feature for the mesh
    transform
  * Bugfix: Crop tool doesn't respond to some events (kde#435201)
  * Remove JPG from the list of supported clipboard image formats
    (kde#431310)
  * Don't set the menu text on the action if it's empty
    (kde#437036)
  * Expose the node's unique id to libkis
  * Fix quicklook generator (kde#436224)
  * Fix data corruption on pressing Ctrl+Z while crop action is
    active (kde#433770)
  * Fix zooming of the palette in Lazy Fill Tool (kde#410997)
  * Fix outline-selection precision when shift-modifier is pressed
    (kde#437048)
  * Fix crash when closing Krita too quickly while some stroke is
    still rendering (kde#419021)
  * Fix incorrect memory access in KisCanvas2::setProofingOptions()
  * Fix a race condition when starting spontaneous jobs
    (kde#434648)
  * Fix display color management in Overview docker (kde#428605)
  * Fix Nearest Neighbour filter of the perspective transform mode
    (kde#420811)
  * Fix drift of the transformed image when moving mouse too
    quickly (kde#416899)
  * Fix smoothness of Free Transform mode (kde#416899)
  * Fix input method not working on popup widgets (kde#395598)
  * Fix export in Krita using CLI
  * Fix order of arguments in OverviewThumbnailStrokeStrategy
    (CID 310957)
  * Do not rely on endianness in psd_image_data (CID 35080)
  * Widen variables before making calculations (CID 248925)
  * Override patchWidth and patchHeight being 0 with defaults
    (CID 248441, CID 248622)
  * Check value after dynamic cast in ConvertColorSpacePr.Vis.
    (CID 304985)
  * Properly bound values on conversions (CID 248629, CID 248458)
  * Initialize propertyType in KisMetaData::TypeInfo::Private
    (CID 35498)
  * Initialize variables in KoRuler and KisFullRefreshWalker
    (CID 35523, CID 35612)
  * Initialize members of KisImagePyramid (CID 36041)
  * Initialize members of DlgOffsetImage and DeformBrush
    (CID 36144, CID 36265)
  * Initialize members in KCanvasPreview (CID 36395)
  * Initialize members in DlgClonesArray (CID 248509)
  * Initialize members in KisShadeSelectorLine (CID 36338)
  * Initialize members of assistant classes (CID 248502,
    CID 248916)
  * Initialize members in spin box related classes (CID 248555,
    CID 248871)
  * Fix xyYtoXYZ color conversion formula
  * Make the code in the triangle color selector cleaner
  * Fix updates in Channels docker
  * Fix updates in Histogram docker
  * Fix multithreading in Histogram widget
  * Change typedef to using in HistogramDockerWidget
  * Fix referencing of null value in SvgStyleWriter (CID 329512)
  * Fix uninitialized values in HistogramDockerWidget (CID 329509)
  * Fix High DPI for canvas previews in Undo History docker
  * Fix crash on saving a huge image to .kra (kde#432182)
  * Ensure that transform worker won't try to scale to 0
    (kde#432182)
  * Fix KoQuaZipStore error checking
  * Show country in language list for disambiguation (kde#437994)
  * Fix failing update when transforming a shape layer with a
    Transform Tool (kde#437886)
  * Do not append country name to zh_CN and zh_TW (kde#437994)
  * Add more checks on saving to kra
  * Fix non-float results in expressions for float values
    (CID 329390, CID 329448, CID 329482)
  * Fix uninitialized values in various classes (CID 329508,
    CID 329504, CID 329503, CID 329502, CID 329501)
  * Don't assert on invalid 0-bytes palettes
  * Initialize members of SVG Symbols classes (CID 304987)
  * Initialize members of KisColorSelector classes (CID 36349,
    CID 248848, CID 248452, CID 248707)
  * Bugfix: Artifact with more than one active assitant
    (kde#401940)
  * Bugfix: Inconsistent stroke fill and shape fill (kde#399127,
    kde#422204, kde#434828)

OBS-URL: https://build.opensuse.org/request/show/899340
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krita?expand=0&rev=146
2021-06-10 20:28:48 +00:00

183 lines
5.7 KiB
RPMSpec

#
# spec file for package krita
#
# 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/
#
%bcond_without lang
# Enable VC only on x86*
%ifarch %{ix86} x86_64
%bcond_without vc
%else
%bcond_with vc
%endif
Name: krita
Version: 4.4.5
Release: 0
Summary: Digital Painting Application
License: GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND CC0-1.0 AND LGPL-2.0-only
Group: Productivity/Graphics/Bitmap Editors
URL: https://www.krita.org/
Source0: https://download.kde.org/stable/krita/%{version}/krita-%{version}.tar.xz
%ifnarch %{arm} aarch64
# causes build failure on ARM currently
BuildRequires: OpenColorIO-devel
%endif
BuildRequires: OpenEXR-devel
BuildRequires: extra-cmake-modules
BuildRequires: fftw3-devel
BuildRequires: giflib-devel
BuildRequires: gsl-devel
BuildRequires: kseexpr-devel
BuildRequires: libboost_system-devel
BuildRequires: libeigen3-devel
BuildRequires: libexiv2-devel
%if 0%{?suse_version} > 1500 || (0%{?is_opensuse} && 0%{?sle_version} >= 150300)
BuildRequires: libheif-devel
%endif
BuildRequires: libjpeg-devel
BuildRequires: liblcms2-devel
BuildRequires: libpng-devel
BuildRequires: libpoppler-qt5-devel
BuildRequires: libquazip-qt5-devel
BuildRequires: libraw-devel
BuildRequires: libtiff-devel
BuildRequires: openjpeg2-devel
BuildRequires: perl
BuildRequires: pkgconfig
# SECTION python build requirements
BuildRequires: python3-devel
BuildRequires: python3-qt5-devel
# Krita's CMake requires the command `sip5` from SIP v5 or `sip` from SIP v4.
# Neither is available in SIP v6. A simple sip-devel < 6 build requirement would
# install a non-conflicting SIP v4 in parallel to v6 pulled in by qt5-devel.
# But then CMake does not find the old sip executable.
BuildConflicts: python3-sip-devel >= 6
BuildRequires: python3-sip-devel
# /SECTION
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
BuildRequires: cmake(KF5Archive)
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(KF5WidgetsAddons)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(Qt5Concurrent)
BuildRequires: cmake(Qt5Core) >= 5.9
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Multimedia)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5PrintSupport)
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5X11Extras)
BuildRequires: cmake(Qt5Xml)
BuildRequires: pkgconfig(xcb-atom)
BuildRequires: pkgconfig(xi) >= 1.4.99.1
Recommends: %{name}-lang = %{version}
Recommends: python3-qt5
Obsoletes: calligra-krita < %{version}
Provides: calligra-krita = %{version}
%if %{with vc}
BuildRequires: Vc-devel-static
%endif
%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
Group: Development/Libraries/KDE
Requires: %{name} = %{version}
%description devel
Development headers and libraries for Krita.
%lang_package
%prep
%autosetup -p1
%build
%ifarch %{arm} aarch64
# workaround to avoid build failure on ARM, see https://bugs.kde.org/show_bug.cgi?id=421136
export CXXFLAGS="%{optflags} -DHAS_ONLY_OPENGL_ES"
%endif
# install translations to %%{_kf5_localedir} so they don't clash with the krita translations in calligra-l10n (KDE4 based)
# can probably be changed back to the standard location when calligra is KF5 based...
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
%make_jobs
%install
%kf5_makeinstall -C build
%suse_update_desktop_file -r org.kde.krita Qt KDE Graphics RasterGraphics
%if %{with lang}
%kf5_find_lang %{name}
%endif
chmod -x %{buildroot}/%{_kf5_applicationsdir}/*.desktop
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%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_qmldir}
%{_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
%if %{with lang}
%files lang -f %{name}.lang
%endif
%changelog