SHA256
1
0
forked from pool/krita
krita/krita.spec

182 lines
5.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package krita
#
# Copyright (c) 2017 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
Name: krita
Accepting request 529160 from home:wolfi323:branches:KDE:Extra - 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/ OBS-URL: https://build.opensuse.org/request/show/529160 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krita?expand=0&rev=53
2017-09-30 00:28:54 +02:00
Version: 3.3.0
Release: 0
Summary: Digital Painting Application
License: GPL-2.0+ and LGPL-2.1+
Group: Productivity/Graphics/Bitmap Editors
Url: http://www.krita.org/
Source0: http://download.kde.org/stable/krita/%{version}/krita-%{version}.tar.gz
Source99: %{name}.changes
BuildRequires: Mesa-devel
BuildRequires: OpenColorIO-devel
BuildRequires: OpenEXR-devel
%if %{suse_version} != 1320
BuildRequires: Vc-devel-static
BuildRequires: kcrash-devel
%endif
%if 0%{?suse_version} > 1325
BuildRequires: libboost_system-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: extra-cmake-modules
BuildRequires: fftw3-devel
BuildRequires: gsl-devel
BuildRequires: karchive-devel
BuildRequires: kcompletion-devel
BuildRequires: kconfig-devel
BuildRequires: kcoreaddons-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: 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
%if %{suse_version} > 1320 || 0%{?is_opensuse}
Obsoletes: calligra-krita < %{version}
Provides: calligra-krita = %{version}
%else
Conflicts: calligra-krita
%endif
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}
%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
# Otherwise the devel package conflicts with calligra-krita, where it is *not* a devel file...
rm %{buildroot}/%{_kf5_libdir}/libkritacolord.so
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING* AUTHORS HACKING README*
%{_kf5_bindir}/krita
%{_kf5_applicationsdir}/*.desktop
%{_kf5_sharedir}/krita/
%{_kf5_appstreamdir}/
%{_kf5_libdir}/libkrita*.so.*
%{_kf5_libdir}/kritaplugins/
%{_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