SHA256
1
0
forked from pool/krita
krita/krita.spec
Luca Beltrame 27ab4de4a1 Accepting request 595702 from home:wolfi323:branches:KDE:Extra
- Update to 4.0.1:
  * See https://krita.org/en/item/krita-4-0-1-released/
  * Fix duplicate shortcut on Photoshop scheme
  * Alphabetize shortcut to make the diffs easier to read when
    doing changes
  * Make the triangles larger on the categorized list view so they
    are more visible
  * Disable the macro recorder and playback plugin
  * Remove the docker titlebar lock and collapse buttons
    (kde#385238, kde#392235)
  * Set the pixel grid to show up at 2400% zoom by default
    (kde#392161)
  * Improve the layout of the palette docker
  * Disable drag and drop in the palette view: moving swatches
    around did not actually change the palette (kde#392349)
  * Fix selecting the last used template in the new document
    dialog when using appimages (kde#391973)
  * Fix canvas lockup when using Guides at the top of the image
    (kde#391098)
  * Do not reset redo history when changing layer's visibility
    (kde#390581)
  * Fix shifting the pan position after using the popup widget
    rotation circle (kde#391921)
  * Fix height map to normal map in wraparound mode (kde#392191)
  * Make it possible to edit the font size in the svg text tool
    (kde#392714)
  * Let Text Shape have empty lines (kde#392471)
  * Fix updates of undo/redo actions (kde#392257)
  * Implement "Convert text into path" function (kde#391294)
  * Fix a crash in SvgTextTool when deleting hovered/selected shape
    (kde#392128)
  * Make the text editor window application modal (kde#392248)
  * Fix alignment of RTL text (kde#392065, kde#392064)
  * Fix painting parts of text outside the bounding box on the
    canvas (kde#392068)
  * Fix rendering of the text with relative offsets (kde#391160)
  * Fix crash when transforming text with Transform Tool twice
    (kde#392127)
  * Fix handling of keyframes when saving (kde#392233, kde#392559)
  * Keep show in timeline and onion skin options when merging layers
    (kde#377358)
  * Keep keyframe color labels when merging layers (kde#388913)
  * Fix exporting out audio with video formats MKV and OGV
  * Do not load/save layer channel flags anymore (channel flags were
    removed from the UI in Krita 2.9) (kde#392504)
  * Fix saving of Transform Mask into rendered formats (kde#392229)
  * Fix reporting errors when loading fails (kde#392413)
  * Fix a memory leak when loading file layers
  * Fix loading a krita file with a loop in the clone layers setup
    (kde#384587)
  * Fix showing a wait cursor after loading a PNG image (kde#392249)
  * Make bundle loading feedback a bit clearer regarding the bundle
  * Fix crash when creating a vector selection (kde#391292)
  * Fix crash when doing right-click on the gradient fill stop
    opacity input box of a vector (kde#392726)
  * Fix setting the aspect ratio of vector shapes (kde#391911)
  * Fix a crash if a certain shape is not valid when writing SVG
    (kde#392240)
  * Fix hidden stroke and fill widgets not to track current shape
    selection (kde#391990)
  * Fix crash when creating a new spray preset (kde#392869)
  * Fix rounding of the the pressure curve
  * Fix painting with colorsmudge brushes on transparency masks
    (kde#391268)
  * Fix uninitialized distance info for KisHairyPaintOp (kde#391940)
  * Fix rounding of intermediate pressure values
  * Fix the colorsmudge brush when painting in wraparound mode
    (kde#392312)
  * Fix flattening of group layers with Inherit Alpha property set
    (kde#390095)
  * Fix a crash when using a transformation mask on a file layer
    (kde#391270)
  * Improve performance of the transformation mask
- Recommend python3-qt5, required for python scripting
- BuildRequire python3-sip-devel instead of python3-sip, the former
  is needed for *building* (though it makes no difference in
  practice as both are pulled in by python3-qt5-devel anyway)
- Don't delete libkritacolord.so, we should not have to worry about
  a conflict with calligra-krita anymore
- Mark license files as %license instead of %doc
- Disable VC on non-x86* to fix builds
- Restore openSUSE Leap 42.3 support:
  * boost 1.61 presents in Leap 42.3 repo
  * Added fix_libgif_5_0_build.patch to make krita build against libgif 5.0.x
- Update to 4.0.0:
  * See https://krita.org/en/item/krita-4-0-0-released/
  * Highlights:
    + SVG support
    + A new text tool 
    + Python scripting
    + Easy coloring of line-art with the new Colorize Mask Tool
    + Masked brushes
    + New brush presets
  * Known issues:
    + Krita 4 uses SVG for vector layers. This means that Krita 3
      files with vector layers may not be loaded entirely
      correctly. Keep backups!
    + Krita 4's new text tool is still limited
    + The Reference Images Docker has been removed
- Drop conditionals for older distributions, it needs at least
  boost 1.55 now which is only available in Tumbleweed and Leap 15
- Update to 3.3.3:
  * See https://krita.org/en/item/krita-3-3-3/
  * Fix an issue where it would not be possible to select certain
    blending modes when the current layer is grayscale but the
    image is rgb.
  * Set the OS and platform when reporting a bug from within Krita
    on Windows.
  * Make it possible to enter color values as percentage in the
    specific color selector
  * Add OpenGL warnings and make ANGLE default on Intel GPUs
  * Add an Invert button to the levels filter
  * Implement loading and saving of styles for group layers to and
    from PSD
  * Fix the erase mode not showing correctly when returning to the
    brush tool
  * Save the visibility of individual assistants in .kra files
  * Add an option to draw ruler tips as a power of 2
  * Disable autoscroll on move and transform tools
  * Improve handling of native mouse events when using a pen and
    the Windows Ink API
  * Fix the focal point for the pinch zoom gesture
  * Fix loading netpbm files with comment
- Update to 3.3.2.1:
  * See https://krita.org/en/item/krita-3-3-2-release/
  * Krita 3.3.1 would read brush presets with textures incorrectly.
    This is now fixed.
  * Animation: make it possible to render up to a 10,000 frames
  * Add a command-line option to start Krita with a new, empty
    image: krita --new-image RGBA,8,5000,3000
  * Performance: improved caching for effect and selection masks
  * Performance: Fix a leak in the smudge brush
  * Performance: Improve performance when using the
    hardware-accelerated canvas
  * Performance, Windows: improve the performance when loading
    icons
  * Filters: it’s now possible to edit the filter’s settings
    directly in the xml that is used to save filter definitions to
    .krita files.
  * Filters: a new ASC_CDL color balance filter was added, with
    Slope, Offset and Power options.
  * Crashes: fix a crash that happened when closing a second
    document with infinite canvas active
  * Layers: Make it possible to copy group layers
  * UI: make it possible to use the scroll-wheel to scroll through
    patterns when the patterns palette is very narrow.
  * UI: Improve drag and drop feedback in the layer panel
  * UI: Hide the lock and collapse titlebar icons when a panel is
    floating
- Update to 3.3.1:
  * See https://krita.org/en/item/krita-3-3-1/
  * Krita would crash if you would restart Krita after closing
    Krita with the reference images docker set to floating
  * Krita 3.3.0 could not read .kra backup files or .kra files that
    were unzipped, then zipped up manually
  * Merge down does not remove locked layers anymore
  * Various performance improvements, especially for macOS
  * Improve the look and feel of dragging and dropping layers
  * Improve the tooltips in the brush preset selector
  * Fix a memory leak in the color selectors
  * Don't allow the fill tool to be used on group layers
  * Add brightness and contrast sliders for textured brushes
  * Add paste-at-cursor
  * Improve performance of the cpu canvas
  * Fix a crash on closing Krita when there is something on the
    clipboard
  * Add a button to open a file layer's image in Krita
- Update to 3.3.0:
  * Some visual glitches when using hi-dpi screens are fixed
    (remember: on Windows and Linux, you need to enable this in the
    settings dialog).
  * If you create a new image from clipboard, the image will have a
    title
  * Favorite blending modes and favorite brush presets are now
    loaded correctly on startup
  * GMIC
    + the plugin has been updated to the latest version for Windows
      and Linux.
    + the configuration for setting the path to the plugin has been
      removed. Krita looks for the plugin in the folder where the
      krita executable is, and optionally inside a folder with a
      name that starts with ‘gmic’ next to the krita executable.
    + there are several fixes for handling layers and communication
      between Krita and the plugin
  * Some websites save jpeg images with a .png extension: that used
    to confuse Krita, but Krita now first looks inside the file to
    see what kind of file it really is.
  * PNG: 
    + 16 and 32 bit floating point images are now converted to 16
      bit integer when saving the images as PNG.
    + It’s now possible to save the alpha channel to PNG images
      even if there are no (semi-) transparent pixels in the image
  * When hardware accelerated display is disabled, the color picker
    mode of the brush tool showed a broken cursor; this has been
    fixed.
  * The Reference Images docker now only starts loading images when
    it is visible, instead on Krita startup. Note: the reference
    images docker uses Qt’s imageio plugins to load images. If you
    are running on Linux, remove all Deepin desktop components.
    Deepin comes with severely broken qimageio plugins that will
    crash any Qt application that tries to display images.
  * File layers now correctly reload on change again
  * Add several new commandline options: 
    + –nosplash to start Krita without showing the splash screen
    + –canvasonly to start Krita in canvas-only mode
    + –fullscreen to start Krita full-screen
    + –workspace Workspace to start Krita with the given workspace
  * Selections 
    + The Select All action now first clears the selection before
      selecting the entire image
    + It is now possible to extend selections outside the canvas
      boundary
  * Performance improvements: in several places superfluous reads
    from the settings were eliminated, which makes generating a layer
    thumbnail faster and improves painting if display acceleration is
    turned off.
  * The smart number input boxes now use the current locale to follow
    desktop settings for numbers
  * The system information dialog for bug reports is improved
  * See also https://krita.org/en/item/krita-3-3-0/
- Update to version 3.2.1:
  * Crash on startup if only OpenGL 2.1 is found: if you had to
    disable opengl for 3.2.0, you can try to enable it again
  * A crash when changing layer types in the gmic-qt plugin
  * A bug where gmic-qt could crash on odd-sized images
  * A regression where using the text tool would break the brush tool
  * The option to use the native platform’s file dialogs was restored
  * A bug where selecting the line tool would disable the flow slider
  * Some issues with the LUT docker were fixed
- Remove no longer used libcurl-devel build requirement
- Use the %kf5_find_lang macro to get the file list for the lang
  package
- Update to version 3.2.0:
  * New G'Mic-qt plugin integration
  * Smart patch tool
  * Finger painting on touch screens
  * New brush presets
  * A lot of bug fixes
  * See also https://krita.org/en/release-notes-for-krita-3-2/
- Drop Drop-QForeachContainer-include.patch, merged upstream
- Remove build-compare workaround from the specfile, the
  corresponding source file doesn't exist anymore
- Build only against lcms2 and drop dependency over lcms1
- Remove filler wording from description.
- Update to version 3.1.4:
  * Fix a crash when trying to play an animation when OpenGL is
    disabled in Krita
  * Fix rendering animation frames if the directory you're trying
    to render to doesn't exist
  * Don't open the tablet/screen resolution conflict dialog
    multiple times
  * Don't scale down previews that are too small in the transform
    tool: this fixes a rare crash with the transform tool
  * Don't crash when trying to close the last view on the last
    document while the document is modified.
  * Fix a crash when cycling quickly through layers that have a
    color tag
  * Fix loading some Gimp 2.9 files: note that Gimp 2.9's file
    format is not officially supported in Krita
  * Fully remove the macro recorder plugin: in 3.1.4, only the
    menu entries had stayed around.
  * Make it impossible to hide the template selector in the new
    image dialog; hiding the template selector would also hide the
    cancel button in the dialog.
- Add Drop-QForeachContainer-include.patch to fix build with Qt 5.9
- Update to version 3.1.3:
  * New features:
    + implement context menu actions for default tool (cut, copy, paste, object ordering)
    + added option to allow multiple instances of krita (BUG 377199)
    + scale around pivot point added
  * Too many bugfixes to list here, see:
    https://krita.org/en/release-notes-for-3-1-3/
- Add _constraints: Needs at least 4 GiB RAM
- use individual libboost-*-devel packages instead of boost-devel
- Update to version 3.1.2.1:
  * Audio Support for Animations
  * Ctrl key continue mode for Outline Selection tool
  * Allow deselection by clicking with a selection tool
  * Added a checkbox for enabling HiDPI to the settings dialog
  * Remove the export to PDF functionality. It is having too many
    issues right now. (kde#372439)
  * a lot of bug fixes
  * More information on https://krita.org/en/release-notes-for-3-1-2/
- Add Qt5Multimedia build requirement to enable the new audio
  support for animations
- Delete /usr/lib64/libkritacolord.so do to conflict between
  calligra-krita and krita-devel
- Move libkritacolord.so to the -devel subpackage where it belongs
- Sync with KUE:
  * Add -devel subpackage
  * Use %bcond_without lang
  * Don't remove non-existing color schemes any more
- Require Qt 5.6
- Update to version 3.1.1:
  * Full Support for OSX
  * Render Animations to files
  * Animation Curves and Opacity
  * New Internal Color Picker
  * New Quick Brush Engine
  * Stop-Based Gradient Editor
  * Lazy Brush/Colorize Mask
  * More information on https://krita.org/en/release-notes-for-krita-3-1/
- Update package summary, description and RPM group (boo#1006479)
- Update to version 3.0.1.1
  Important bugfixes:
  * the brush-resize lag is gone
  * templates are there again
  * loading brush tags works again
  * the sobel filter is fixed.
- Do not install the BreezeDark and BreezeHighContrast color
  schemes, they are already included in breeze5-style (kde#368093)
- Update to version 3.0.1
  For a list of changes see:
  https://krita.org/en/item/krita-3-0-1-update-brings-numerous-fixes/
- Add lang subpackage
- Add kcrash-devel build requirement to enable the crash report
  dialog (not on 13.2 though as the available kcrash is too old)
- Add license files (as requested by legal review)
- Updates to the spec-file to resolve reported issues during
  Tumbleweed submission
- Only replace calligra-krita on Tumbleweed and Leap, not 13.2
- Use version requirements for Provides in calligra-krita
- Change conflicts to Obsoletes and Provides
- Remove libwacom2 recommends, it is not used anyway apparently
- No need to remove the kra and ora kimageformats plugins any more,
  they have been removed upstream (kde#359443)
- Do not build against Vc-devel-static on 13.2
- Conflict with calligra-krita, there are file overlaps (boo#968709)
- Mark /etc/xdg/kritarc as config file
- initial package of version 3.0

OBS-URL: https://build.opensuse.org/request/show/595702
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krita?expand=0&rev=67
2018-04-12 07:22:58 +00:00

196 lines
5.9 KiB
RPMSpec

#
# spec file for package krita
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://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.0.1
Release: 0
Summary: Digital Painting Application
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Productivity/Graphics/Bitmap Editors
Url: http://www.krita.org/
Source0: http://download.kde.org/stable/krita/%{version}/krita-%{version}.tar.gz
# PATCH-FIX-OPENSUSE fix_libgif_5_0_build.patch -- Trivial fix to make Krita link against libgif 5.0.x in openSUSE Leap 42.3
Patch1: fix_libgif_5_0_build.patch
BuildRequires: Mesa-devel
BuildRequires: OpenColorIO-devel
BuildRequires: OpenEXR-devel
%if %{with vc}
BuildRequires: Vc-devel-static
%endif
%if 0%{?suse_version} < 1320
BuildRequires: boost_1_61-devel
%else
BuildRequires: libboost_system-devel
%endif
BuildRequires: extra-cmake-modules
BuildRequires: fftw3-devel
BuildRequires: giflib-devel
BuildRequires: gsl-devel
BuildRequires: karchive-devel
BuildRequires: kcompletion-devel
BuildRequires: kconfig-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kcrash-devel
BuildRequires: kguiaddons-devel
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kio-devel
BuildRequires: kitemmodels-devel
BuildRequires: kitemviews-devel
BuildRequires: kwidgetsaddons-devel
BuildRequires: kwindowsystem-devel
BuildRequires: kxmlgui-devel
BuildRequires: libeigen3-devel
BuildRequires: libexiv2-devel
BuildRequires: libjpeg-devel
BuildRequires: libkdcraw-devel
BuildRequires: liblcms2-devel
BuildRequires: libpng-devel
BuildRequires: libpoppler-qt5-devel
BuildRequires: libraw-devel
BuildRequires: libtiff-devel
BuildRequires: openjpeg-devel
BuildRequires: perl
BuildRequires: python3-devel
BuildRequires: python3-qt5-devel
BuildRequires: python3-sip-devel
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core) >= 5.6
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(inputproto) >= 2.0.99.1
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb-atom)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xi) >= 1.4.99.1
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xorg-macros) >= 1.3
BuildRequires: pkgconfig(xrandr)
%if %{with lang}
Recommends: %{name}-lang = %{version}
%endif
Recommends: create-resources
Recommends: python3-qt5
Obsoletes: calligra-krita < %{version}
Provides: calligra-krita = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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}
Conflicts: calligra-devel
%description devel
Development headers and libraries for Krita.
%if %{with lang}
%lang_package
%endif
%prep
%setup -q -n krita-%{version}
%if 0%{?suse_version} < 1320
%patch1
%endif
%build
# 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
%defattr(-,root,root,-)
%license COPYING*
%doc AUTHORS HACKING README*
%{_kf5_bindir}/krita
%{_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/calligrakrita.*
%{_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