%define majver %(echo %version | cut -d. -f1-2) %define dirver %(echo %version | cut -d. -f1-3) Name: krita Version: 5.1.0 Release: 1mamba Summary: A free and open source painting tool Group: Graphical Desktop/Applications/Graphics Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://kde.org/ Source: https://download.kde.org/stable/krita/%{version}/krita-%{version}.tar.xz Patch0: krita-5.0.0-gcc-11.2.0.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libICE-devel BuildRequires: libQt5Multimedia-devel BuildRequires: libQt5Svg-devel BuildRequires: libQt5X11Extras-devel BuildRequires: libSM-devel BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libXi-devel BuildRequires: libboost-devel BuildRequires: libexiv2-devel BuildRequires: libfftw-devel BuildRequires: libgcc BuildRequires: libgif-devel BuildRequires: libgsl-devel BuildRequires: libheif-devel BuildRequires: libimath-devel BuildRequires: libjpeg-devel BuildRequires: libkcompletion-devel BuildRequires: libkconfig-devel BuildRequires: libkcoreaddons-devel BuildRequires: libkcrash-devel BuildRequires: libkguiaddons-devel BuildRequires: libki18n-devel BuildRequires: libkitemviews-devel BuildRequires: libkwidgetsaddons-devel BuildRequires: libkwindowsystem-devel BuildRequires: liblcms2-devel BuildRequires: libmypaint-devel BuildRequires: libopencolorio-devel BuildRequires: libopenexr-devel BuildRequires: libopenjpeg-devel BuildRequires: libpng-devel BuildRequires: libpoppler-devel BuildRequires: libpoppler-qt5-devel BuildRequires: libpython310-devel BuildRequires: libquazip-devel BuildRequires: libraw-devel BuildRequires: libstdc++6-devel BuildRequires: libtiff-devel BuildRequires: libwebp-devel BuildRequires: libz-devel BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtdeclarative-devel ## AUTOBUILDREQ-END BuildRequires: libpoppler-devel >= 22.06.0-1mamba BuildRequires: cmake BuildRequires: rpm-macros-kde5 BuildRequires: extra-cmake-modules Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Provides: calligra-krita Obsoletes: calligra-krita < 4.4.3 %description Krita is a FREE and open source painting tool designed for concept artists, illustrators, matte and texture artists, and the VFX industry. %package -n lib%{name} Group: System/Libraries Summary: Shared libraries for %{name} Provides: libcalligra-krita Obsoletes: libcalligra-krita < 4.4.3 %description -n lib%{name} This package contains shared libraries for %{name}. %package -n lib%{name}-devel Group: Development/Libraries Summary: Development files for %{name} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-devel This package contains the development files for %{name}. %package color-schemes Group: Graphical Desktop/Look 'n' feel Summary: Color schemes provided with %{name} %description color-schemes This package contains the color schemes provided with %{name}. %debug_package %prep %setup -q %patch0 -p1 %build %cmake_kde5 -d build \ -DBUILD_TESTING=OFF \ -DBUILD_KRITA_QT_DESIGNER_PLUGINS=ON %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build %find_lang %{name}5_qt --with-qt --with-man --all-name || touch %{name}5_qt.lang %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files -f %{name}5_qt.lang %defattr(-,root,root) %{_sysconfdir}/xdg/kritarc %{_bindir}/krita %{_bindir}/krita_version %{_bindir}/kritarunner %{_datadir}/applications/krita_*.desktop %{_datadir}/applications/org.kde.krita.desktop %dir %{_datadir}/color/icc/krita %{_datadir}/color/icc/krita/* %{_datadir}/icons/hicolor/*/apps/krita.png %{_datadir}/icons/hicolor/*/mimetypes/application-x-krita.png %{_datadir}/icons/hicolor/scalable/apps/krita.svgz %dir %{_datadir}/krita %{_datadir}/krita/* %dir %{_datadir}/kritaplugins %{_datadir}/kritaplugins/* %{_datadir}/metainfo/org.kde.krita.appdata.xml %doc AUTHORS COPYING %files -n lib%{name} %defattr(-,root,root) %dir %{_libdir}/kritaplugins %{_libdir}/kritaplugins/krita*.so %{_libdir}/libkrita*.so.* %dir %{_libdir}/krita-python-libs %dir %{_libdir}/krita-python-libs/PyKrita %{_libdir}/krita-python-libs/PyKrita/krita.so %dir %{_libdir}/krita-python-libs/krita %{_libdir}/krita-python-libs/krita/* %dir %{_libdir}/qt5/qml/org/krita %{_libdir}/qt5/qml/org/krita/* %files -n lib%{name}-devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/libkrita*.so %files color-schemes %defattr(-,root,root) %{_datadir}/color-schemes/Krita*.colors %changelog * Sat Aug 20 2022 Automatic Build System 5.1.0-1mamba - automatic version update by autodist * Thu Jul 28 2022 Silvan Calarco 5.0.8-3mamba - moved color schemes to a -color-schemes subpackage * Tue Jun 07 2022 Silvan Calarco 5.0.8-2mamba - rebuilt by autoport with build requirements: libpoppler-devel>=22.06.0-1mamba * Thu May 26 2022 Automatic Build System 5.0.8-1mamba - automatic version update by autodist * Wed Apr 27 2022 Automatic Build System 5.0.6-1mamba - automatic version update by autodist * Thu Apr 14 2022 Automatic Build System 5.0.5-1mamba - automatic version update by autodist * Tue Jan 11 2022 Silvan Calarco 5.0.2-1mamba - update to 5.0.2 * Thu Mar 25 2021 Automatic Build System 4.4.3-1mamba - automatic version update by autodist * Tue Jan 19 2021 Automatic Build System 4.4.2-1mamba - automatic version update by autodist * Fri Oct 30 2020 Automatic Build System 4.4.1-1mamba - automatic version update by autodist * Thu Oct 15 2020 Automatic Build System 4.4.0-1mamba - automatic version update by autodist * Thu Jun 18 2020 Automatic Build System 4.3.0-1mamba - automatic version update by autodist * Tue Mar 24 2020 Automatic Build System 4.2.9-1mamba - automatic version update by autodist * Tue Nov 26 2019 Automatic Build System 4.2.8.2-1mamba - automatic version update by autodist * Tue Nov 26 2019 Automatic Build System 4.2.8.1-1mamba - automatic version update by autodist * Wed Oct 02 2019 Automatic Build System 4.2.7.1-1mamba - automatic version update by autodist * Tue Oct 01 2019 Automatic Build System 4.2.7-1mamba - automatic version update by autodist * Wed Sep 11 2019 Automatic Build System 4.2.6-1mamba - automatic version update by autodist * Fri Aug 02 2019 Automatic Build System 4.2.5-1mamba - automatic version update by autodist * Fri Aug 02 2019 Automatic Build System 4.2.4-1mamba - automatic version update by autodist * Thu Mar 07 2019 Automatic Build System 4.1.8-1mamba - automatic version update by autodist * Wed Mar 06 2019 Silvan Calarco 4.1.7.101-1mamba - package created using the webbuild interface