2016-06-01 10:39:47 +02:00
|
|
|
#
|
2016-07-29 21:34:02 +02:00
|
|
|
# spec file for package krita
|
2016-06-01 10:39:47 +02:00
|
|
|
#
|
2018-01-14 18:49:01 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-06-01 10:39:47 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2016-12-16 11:34:07 +01:00
|
|
|
|
|
|
|
%bcond_without lang
|
|
|
|
|
2016-06-01 10:39:47 +02:00
|
|
|
Name: krita
|
2018-03-22 13:51:51 +01:00
|
|
|
Version: 4.0.0
|
2016-06-01 10:39:47 +02:00
|
|
|
Release: 0
|
2016-11-06 20:05:59 +01:00
|
|
|
Summary: Digital Painting Application
|
2016-06-01 10:39:47 +02:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2016-11-06 20:05:59 +01:00
|
|
|
Group: Productivity/Graphics/Bitmap Editors
|
2016-06-01 10:39:47 +02:00
|
|
|
Url: http://www.krita.org/
|
2018-01-14 18:49:01 +01:00
|
|
|
Source0: http://download.kde.org/stable/krita/%{version}/krita-%{version}.tar.gz
|
2018-03-24 22:08:58 +01:00
|
|
|
# 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
|
2016-06-01 10:39:47 +02:00
|
|
|
BuildRequires: Mesa-devel
|
|
|
|
BuildRequires: OpenColorIO-devel
|
|
|
|
BuildRequires: OpenEXR-devel
|
|
|
|
BuildRequires: Vc-devel-static
|
2018-03-24 22:08:58 +01:00
|
|
|
%if 0%{?suse_version} < 1320
|
|
|
|
BuildRequires: boost_1_61-devel
|
|
|
|
%else
|
2017-02-06 13:59:40 +01:00
|
|
|
BuildRequires: libboost_system-devel
|
2018-03-24 22:08:58 +01:00
|
|
|
%endif
|
2016-06-01 10:39:47 +02:00
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
BuildRequires: fftw3-devel
|
2018-03-22 13:51:51 +01:00
|
|
|
BuildRequires: giflib-devel
|
2016-06-01 10:39:47 +02:00
|
|
|
BuildRequires: gsl-devel
|
|
|
|
BuildRequires: karchive-devel
|
|
|
|
BuildRequires: kcompletion-devel
|
|
|
|
BuildRequires: kconfig-devel
|
|
|
|
BuildRequires: kcoreaddons-devel
|
2018-03-22 13:51:51 +01:00
|
|
|
BuildRequires: kcrash-devel
|
2016-06-01 10:39:47 +02:00
|
|
|
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
|
2018-03-22 13:51:51 +01:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-sip
|
|
|
|
BuildRequires: python3-qt5-devel
|
2016-06-01 10:39:47 +02:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
2016-12-16 11:34:07 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.6
|
2016-06-01 10:39:47 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
2017-02-01 16:12:04 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Multimedia)
|
2016-06-01 10:39:47 +02:00
|
|
|
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)
|
2016-12-16 11:34:07 +01:00
|
|
|
%if %{with lang}
|
2016-09-09 19:14:51 +02:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2016-12-16 11:34:07 +01:00
|
|
|
%endif
|
2016-06-01 10:39:47 +02:00
|
|
|
Recommends: create-resources
|
2016-06-02 12:25:07 +02:00
|
|
|
Obsoletes: calligra-krita < %{version}
|
|
|
|
Provides: calligra-krita = %{version}
|
2016-06-01 10:39:47 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2017-06-09 11:00:40 +02:00
|
|
|
Krita is a painting program. It supports concept art, texture and
|
|
|
|
matte painters, as well as illustrations and comics.
|
2016-06-01 10:39:47 +02:00
|
|
|
|
2016-12-16 11:34:07 +01:00
|
|
|
%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}
|
2016-09-09 19:14:51 +02:00
|
|
|
%lang_package
|
2016-12-16 11:34:07 +01:00
|
|
|
%endif
|
2016-09-09 19:14:51 +02:00
|
|
|
|
2016-06-01 10:39:47 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n krita-%{version}
|
2018-03-24 22:08:58 +01:00
|
|
|
%if 0%{?suse_version} < 1320
|
|
|
|
%patch1
|
|
|
|
%endif
|
2016-06-14 21:07:33 +02:00
|
|
|
|
2016-06-01 10:39:47 +02:00
|
|
|
%build
|
2017-08-23 11:02:35 +02:00
|
|
|
# install translations to %%{_kf5_localedir} so they don't clash with the krita translations in calligra-l10n (KDE4 based)
|
2016-09-09 19:14:51 +02:00
|
|
|
# can probably be changed back to the standard location when calligra is KF5 based...
|
|
|
|
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
|
2016-06-01 10:39:47 +02:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
2016-06-14 11:55:43 +02:00
|
|
|
%kf5_makeinstall -C build
|
2016-09-09 19:14:51 +02:00
|
|
|
%suse_update_desktop_file -r org.kde.krita Qt KDE Graphics RasterGraphics
|
2017-08-23 11:02:35 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%kf5_find_lang %{name}
|
|
|
|
%endif
|
2016-06-01 10:39:47 +02:00
|
|
|
|
2016-06-14 11:55:43 +02:00
|
|
|
chmod -x %{buildroot}/%{_kf5_applicationsdir}/*.desktop
|
2016-12-21 20:38:37 +01:00
|
|
|
# Otherwise the devel package conflicts with calligra-krita, where it is *not* a devel file...
|
|
|
|
rm %{buildroot}/%{_kf5_libdir}/libkritacolord.so
|
2016-06-14 11:55:43 +02:00
|
|
|
|
2016-06-01 10:39:47 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2016-07-20 09:44:38 +02:00
|
|
|
%doc COPYING* AUTHORS HACKING README*
|
2016-06-01 10:39:47 +02:00
|
|
|
%{_kf5_bindir}/krita
|
2018-03-22 13:51:51 +01:00
|
|
|
%{_kf5_bindir}/kritarunner
|
2016-06-01 10:39:47 +02:00
|
|
|
%{_kf5_applicationsdir}/*.desktop
|
|
|
|
%{_kf5_sharedir}/krita/
|
2016-09-09 19:14:51 +02:00
|
|
|
%{_kf5_appstreamdir}/
|
2016-12-16 11:34:07 +01:00
|
|
|
%{_kf5_libdir}/libkrita*.so.*
|
2016-06-01 10:39:47 +02:00
|
|
|
%{_kf5_libdir}/kritaplugins/
|
2018-03-22 13:51:51 +01:00
|
|
|
%{_kf5_libdir}/krita-python-libs/
|
|
|
|
%{_kf5_qmldir}
|
2016-06-01 10:39:47 +02:00
|
|
|
%{_kf5_sharedir}/kritaplugins/
|
|
|
|
%{_kf5_sharedir}/color/
|
|
|
|
%{_kf5_sharedir}/color-schemes/
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/apps/calligrakrita.*
|
2016-12-16 11:34:07 +01:00
|
|
|
%{_kf5_iconsdir}/hicolor/*/mimetypes/application-x-krita.png
|
2016-06-01 10:39:47 +02:00
|
|
|
%dir %{_kf5_iconsdir}/hicolor/1024x1024
|
|
|
|
%dir %{_kf5_iconsdir}/hicolor/1024x1024/apps
|
2016-12-16 11:34:07 +01:00
|
|
|
%dir %{_kf5_iconsdir}/hicolor/1024x1024/mimetypes
|
2016-06-01 10:39:47 +02:00
|
|
|
%dir %{_kf5_iconsdir}/hicolor/256x256
|
|
|
|
%dir %{_kf5_iconsdir}/hicolor/256x256/apps
|
2016-12-16 11:34:07 +01:00
|
|
|
%dir %{_kf5_iconsdir}/hicolor/256x256/mimetypes
|
2016-06-01 10:39:47 +02:00
|
|
|
%dir %{_kf5_iconsdir}/hicolor/512x512
|
|
|
|
%dir %{_kf5_iconsdir}/hicolor/512x512/apps
|
2016-12-16 11:34:07 +01:00
|
|
|
%dir %{_kf5_iconsdir}/hicolor/512x512/mimetypes
|
2016-06-01 17:51:04 +02:00
|
|
|
%config %{_kf5_configdir}/krita*
|
2016-06-01 10:39:47 +02:00
|
|
|
|
2016-12-16 11:34:07 +01:00
|
|
|
%files devel
|
|
|
|
%{_kf5_libdir}/libkrita*.so
|
|
|
|
|
|
|
|
%if %{with lang}
|
2017-08-23 11:02:35 +02:00
|
|
|
%files lang -f %{name}.lang
|
2016-12-16 11:34:07 +01:00
|
|
|
%endif
|
2016-09-09 19:14:51 +02:00
|
|
|
|
2016-06-01 10:39:47 +02:00
|
|
|
%changelog
|