forked from pool/krita
ff552b1792
- Update to 4.1.1: * See https://krita.org/en/item/krita-4-1-1-released/ * Fix loading PyKrita when using PyQt 5.11 (kde#396381) * Fix possible crashes with vector objects (kde#396145) * Fix an issue when resizing pixel brushes in the brush editor (kde#396136) * Don't show the unimplemented color picker button in the vector object tool properties docker (kde#389525) * Fix activation of the autosave time after a modify, save, modify cycle (kde#393266) * Fix out-of-range lookups in the cross-channel curve filter (kde#396244) * Fix an assert when pressing PageUp into the reference images layer * Avoid a crash when merging layers in isolated mode (kde#395981) * Fix loading files with a transformation mask that uses the box transformation filter (kde#395979) * Fix activating the transform tool if the Box transformation filter was selected (kde#395979) * Fix a crash when hiding the last visible channel (kde#395301) * Make it possible to load non-conforming GPL palettes like https://lospec.com/palette-list/endesga-16 * Simplify display of the warp transformation grid * Re-add the Invert Selection menu entry (kde#395764) * Use KFormat to show formatted numbers * Hide the color sliders config page * Don't pick colors from fully transparent reference images (kde#396358) * Fix a crash when embedding a reference image * Fix some problems when saving and loading reference images (kde#396143) * Fix the color picker tool not working on reference images (kde#396144) * Extend the panning range to include any reference images - Add fix-build-with-Qt5.6.patch to make it compile on Leap 42.3 (kde#396594) OBS-URL: https://build.opensuse.org/request/show/623921 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krita?expand=0&rev=79
198 lines
5.9 KiB
RPMSpec
198 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.1.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-UPSTREAM
|
|
Patch: fix-build-with-Qt5.6.patch
|
|
# 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: 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}
|
|
%patch -p1
|
|
%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
|