SHA256
1
0
forked from pool/krita
krita/krita.spec
Luca Beltrame 9f96861f6e Accepting request 970132 from home:wolfi323:branches:KDE:Extra
- Update to 5.0.5
  * See https://krita.org/en/item/krita-5-0-5-released/
  * Fix artefacts when using the color smudge brush on CMYK images
    (kde#447211)
  * Fix blurry results in 4-point perspective transform
    (kde#447255)
  * Fix undo of liquify transform properties (kde#447314)
  * Fix the size of the About Krita dialog
  * Fix a crash when changing the Instant Preview settings of a
    brush preset
  * Fix use of layer names when using the G'Mic plugin (kde#447293,
    kde#429851)
  * Add missing blending modes for G'Mic filters (kde#447293)
  * Fix issues with resource libraries with upper-case filename
    extensions (kde#447454)
  * Fix crashes when undoing multiple layer operations too quickly
    (kde#447462)
  * Work around a crash in the transform mask applied to a
    passthrough group (kde#447506)
  * Fix the photoshop compatible shortcuts (kde#447771)
  * Show the correct number of layers in the Image Properties
    dialog
  * Fix the layout of the docker titlebars
  * Disable automatically assigning accelerator keys for selecting
    dockers
  * Fix a memory leak in the color history display
  * Fix a race condition in the metadata system initialization
  * Fix animation playback when having multiple views on an
    animation (kde#450425)
  * Fix dataloss when scaling an image with animated transform
    masks (kde#450781)
  * Fix incorrect basename for an animation when filepath or
    filename changes (kde#451654)
  * Fix restoring the default values for canvas input settings
    (kde#396064)
  * Update gradient colors correctly in layer styles (kde#452066)
  * Fix a crash when handling touch events
  * Fix a large number of defects found by Coverity
  * Fix the hitboxes in the curve widget being too small on HiDPI
    screens (kde#446755)
  * Fix saving over deactivated resources
  * Fix the Advanced Color Selector's hsySH square element
    (kde#452422)
  * Fix issues with cursors being too small on HiDPI screens
    (kde#448107, kde#447314)
  * Fix problems with animating transparency and filter masks
    (kde#452170)
  * Opacity now loads correctly for animated vector layers
    (kde#452144)
  * Stop the storyboard docker creating frames on locked layers
    (kde#447396)
  * Storyboards: add the ability to duplicate existing scenes
  * Improve the interaction with ffmpeg when rendering animations
    or recordings
  * Improve detection of broken video sequences on import as
    animation
  * Work around a problem where not all pixels got copied when
    copying a mask (kde#453164)
  * Make it possible to save and load gradients on non-UTF8 locales
    (kde#447730)
  * Fix issue with masks and layers being broken after changing
    the colorspace
  * Update to LittleCMS 2.13.1 to fix a bug in the grayscale
    colorspace and fix conversion between 8 bits and 16 bits
    grayscale images (kde#447484)
  * Fix a delay on autobrush strokes with randomness (kde#446663)
  * Improve performance when moving a layer in a layer group
    (kde#450957)
  * Fix brush outline precision for pixel-art brushes (kde#447466)
  * Improve the brush outline for low-density brushes (kde#447045)
  * Set .apng as the default file extension for APNG files instead
    of PNG (kde#451473)
  * Fix crash when using the smart patch tool on HDR images
    (kde#451912)
  * Make it possible to set Weighted Distance to values larger than
    100 (kde#451874)
  * Fix the the fuzziness setting for the contiguous selection tool
    (kde#447524)
  * Fix the default eraser preset (kde#447650)
  * Add missing shortcuts for the following filters:
    slope/offset/power, cross-channel adjustment curves, halftone,
    gaussian high pass, height to normal map, gradient map,
    normalize and palettize (kde#451337)
  * Fix saving new workspaces (kde#446985)
  * Correctly handle the ICC profile blacklist
  * Fix the "Photoshop signature verification failed!"  warning if
    there are zero sized blocks in the PSD file (kde#450983)
  * Make starting Krita more robust if the configuration file is
    corrupted (kde#449983)
  * Add pressure and rotation to touch support
  * Handle flags in SVG paths in vector layers correctly
    (kde#447417)
  * Fix crash when the selected gradient isn't shown in the
    gradient selector in the Layer Style dialog. Similar for
    patterns. (kde#448296, kde#445922)
  * Fix an issue in the brush preset selector if no brush preset
    has been selected (kde#449226, kde#450121)
  * Fix the menubar height in MDI mode with maximized subwindow on
    HiDPI screens (kde#449118)
  * Fix the speed sensor in the line tool (kde#434488)
  * Fix a crash in the raindrops filter when applied to an empty
    layer (kde#449408)
  * Fix a race condition in Select All (kde#449122)
  * Improve thread handling when painting, improving performance
    and energy efficiency (kde#367901, kde#360677)
  * Improve the performance of the resource selectors if there are
    many resource libraries installed
  * Fix issues with saving tags when updating the database schema
  * Make it possible to tag and untag multiple resources at once
  * Reset the painting assistant after each stroke (kde#448187)
  * Fix issues with the color smudge radius range (kde#441682)
  * Remove broken resource files after importing them fails
    (kde#446279)
  * Fix reference image update on resizing in HiDPI (kde#430988)
  * Fix issue with MyPaint presets when Slow Tracking interacts
    with the Stabilizer (kde#447562)
  * Fix banding when rendering in HDR mode (kde#445672)
  * Fix rendering SVG file layers (kde#448256)
  * Fix the small color selector on OpenGL 2.1 (kde#447868)
  * Fix using the default theme if there is no theme configured
    (kde#448483)
  * Fix sizing of preview images in the non-native file dialog
    (kde#447805)
  * Improve handling of the CTRL modifier key (kde#438784)
  * Fix update of brush outline when switching brush preset or tool
    (kde#428988, kde#442343)
  * Improve handling the thumbnails for the recent files list
  * Fix setting the configuration of a fill layer from the
    scripting API (kde#447807)

OBS-URL: https://build.opensuse.org/request/show/970132
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krita?expand=0&rev=161
2022-04-14 11:49:26 +00:00

186 lines
5.9 KiB
RPMSpec

#
# spec file for package krita
#
# Copyright (c) 2022 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
# Enable VC only on x86*
%ifarch %{ix86} x86_64
%bcond_without vc
%else
%bcond_with vc
%endif
Name: krita
Version: 5.0.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
Group: Productivity/Graphics/Bitmap Editors
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
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
BuildRequires: python3-devel
BuildRequires: python3-qt5-devel
BuildRequires: python3-sip-devel
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(OpenColorIO)
BuildRequires: pkgconfig(libmypaint)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(xcb-atom)
BuildRequires: pkgconfig(xi) >= 1.4.99.1
Recommends: python3-qt5
Obsoletes: calligra-krita < %{version}
Provides: calligra-krita = %{version}
%if %{with vc}
BuildRequires: Vc-devel-static
%endif
Recommends: krita-plugin-gmic
%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}
Requires: cmake(Qt5Core)
%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 released}
%kf5_find_lang %{name}
%endif
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
%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
%{_includedir}/kis_qmic_interface.h
%{_includedir}/kis_qmic_plugin_interface.h
%{_includedir}/kritaqmicinterface_export.h
%if %{with released}
%files lang -f %{name}.lang
%endif
%changelog