krita/krita.spec

300 lines
9.8 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version | cut -d. -f1-2)
%define dirver %(echo %version | cut -d. -f1-3)
Name: krita
Version: 5.2.7
Release: 1mamba
Summary: A free and open source painting tool
Group: Graphical Desktop/Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://krita.org/en/
Source: https://invent.kde.org/graphics/krita.git/v%{version}/krita-%{version}.tar.bz2
Patch0: krita-5.0.0-gcc-11.2.0.patch
Patch1: krita-5.2.2-sip-6.8.2.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libICE-devel
BuildRequires: libQt5Concurrent
BuildRequires: libQt5Core
BuildRequires: libQt5DBus
BuildRequires: libQt5Gui
BuildRequires: libQt5Network
BuildRequires: libQt5PrintSupport
BuildRequires: libQt5Sql
BuildRequires: libQt5Svg-devel
BuildRequires: libQt5Widgets
BuildRequires: libQt5X11Extras-devel
BuildRequires: libQt5Xml
BuildRequires: libSDL2-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXi-devel
BuildRequires: libbzip2-devel
BuildRequires: libexiv2-devel
BuildRequires: libfftw-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libfribidi-devel
BuildRequires: libgcc
BuildRequires: libgif-devel
BuildRequires: libglib-devel
BuildRequires: libgsl-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libheif-devel
BuildRequires: libimath-devel
BuildRequires: libjpeg-turbo
BuildRequires: libjson-c-devel
BuildRequires: libjxl-devel
BuildRequires: libkcompletion-devel
BuildRequires: libkconfig-devel
BuildRequires: libkcoreaddons-devel
BuildRequires: libkcrash-devel
BuildRequires: libkdcraw5-devel
BuildRequires: libkguiaddons-devel
BuildRequires: libki18n-devel
BuildRequires: libkitemviews-devel
BuildRequires: libkwidgetsaddons-devel
BuildRequires: libkwindowsystem-devel
BuildRequires: liblcms2-devel
BuildRequires: libmlt-devel
BuildRequires: libmypaint-devel
BuildRequires: libopencolorio-devel
BuildRequires: libopenexr-devel
BuildRequires: libopenjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libpoppler-devel
BuildRequires: libpoppler-qt5-devel
BuildRequires: libpython3-devel
BuildRequires: libquazip-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
BuildRequires: libunibreak-devel
BuildRequires: libwebp-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libopencolorio-devel >= 1:2.4.0-1mamba
BuildRequires: libunibreak-devel >= 6.0-1mamba
BuildRequires: libpoppler-devel >= 24.02.0-1mamba
BuildRequires: libquazip-devel >= 0:1.4-1mamba
BuildRequires: cmake
BuildRequires: immer-devel
BuildRequires: rpm-macros-kde5
BuildRequires: extra-cmake-modules
BuildRequires: lager-devel
BuildRequires: zug-devel
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
#-D -T
#:<< _EOF
%patch 0 -p1
%patch 1 -p1 -b .sip-6.8.2
%build
%cmake_kde5 -d build \
-DBUILD_TESTING=OFF \
-DPython_EXECUTABLE=%{__python3} \
-DPython_INCLUDEDIR=%{python3_inc} \
-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}"
%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
%{_datadir}/metainfo/org.kde.krita.appdata.xml
%dir %{_datadir}/color/icc/krita
%{_datadir}/color/icc/krita/*
%dir %{_datadir}/krita
%{_datadir}/krita/*
%dir %{_datadir}/kritaplugins
%{_datadir}/kritaplugins/*
%{_datadir}/icons/hicolor/*/apps/krita.png
%{_datadir}/icons/hicolor/*/mimetypes/application-x-krita.png
%{_datadir}/icons/hicolor/scalable/apps/krita.svgz
%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
%{_libdir}/krita-python-libs/PyKrita/krita.pyi
%dir %{_libdir}/krita-python-libs/krita
%{_libdir}/krita-python-libs/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
* Thu Nov 21 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.7-1mamba
- update to 5.2.7
* Sun Oct 27 2024 Automatic Build System <autodist@mambasoft.it> 5.2.6-2mamba
- rebuilt by autoport with build requirements: libopencolorio-devel>=1:2.4.0-1mamba
* Wed Oct 02 2024 Automatic Build System <autodist@openmamba.org> 5.2.6-1mamba
- automatic version update by autodist
* Fri Sep 20 2024 Automatic Build System <autodist@openmamba.org> 5.2.5-1mamba
- automatic version update by autodist
* Fri Jun 28 2024 Automatic Build System <autodist@openmamba.org> 5.2.3-1mamba
- automatic version update by autodist
* Tue Mar 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.2-4mamba
- rebuilt with qt 5.15.7
* Sun Mar 03 2024 Automatic Build System <autodist@mambasoft.it> 5.2.2-3mamba
- rebuilt by autoport with build requirements: libunibreak-devel>=6.0-1mamba
* Sun Feb 25 2024 Automatic Build System <autodist@mambasoft.it> 5.2.2-2mamba
- rebuilt by autoport with build requirements: libpoppler-devel>=24.02.0-1mamba
* Mon Feb 05 2024 Automatic Build System <autodist@openmamba.org> 5.2.2-1mamba
- automatic version update by autodist
* Wed Feb 15 2023 Sdk Build System <sdk@mambasoft.it> 5.1.5-2mamba
- rebuilt by autoport with build requirements: libquazip-devel>=0:1.4-1mamba
* Sat Jan 07 2023 Automatic Build System <autodist@mambasoft.it> 5.1.5-1mamba
- automatic version update by autodist
* Sat Dec 17 2022 Automatic Build System <autodist@mambasoft.it> 5.1.4-1mamba
- automatic version update by autodist
* Tue Nov 08 2022 Automatic Build System <autodist@mambasoft.it> 5.1.3-1mamba
- automatic version update by autodist
* Fri Nov 04 2022 Automatic Build System <autodist@mambasoft.it> 5.1.2-1mamba
- automatic version update by autodist
* Wed Sep 14 2022 Automatic Build System <autodist@mambasoft.it> 5.1.1-1mamba
- automatic version update by autodist
* Sat Aug 20 2022 Automatic Build System <autodist@mambasoft.it> 5.1.0-1mamba
- automatic version update by autodist
* Thu Jul 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.8-3mamba
- moved color schemes to a -color-schemes subpackage
* Tue Jun 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.8-2mamba
- rebuilt by autoport with build requirements: libpoppler-devel>=22.06.0-1mamba
* Thu May 26 2022 Automatic Build System <autodist@mambasoft.it> 5.0.8-1mamba
- automatic version update by autodist
* Wed Apr 27 2022 Automatic Build System <autodist@mambasoft.it> 5.0.6-1mamba
- automatic version update by autodist
* Thu Apr 14 2022 Automatic Build System <autodist@mambasoft.it> 5.0.5-1mamba
- automatic version update by autodist
* Tue Jan 11 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.2-1mamba
- update to 5.0.2
* Thu Mar 25 2021 Automatic Build System <autodist@mambasoft.it> 4.4.3-1mamba
- automatic version update by autodist
* Tue Jan 19 2021 Automatic Build System <autodist@mambasoft.it> 4.4.2-1mamba
- automatic version update by autodist
* Fri Oct 30 2020 Automatic Build System <autodist@mambasoft.it> 4.4.1-1mamba
- automatic version update by autodist
* Thu Oct 15 2020 Automatic Build System <autodist@mambasoft.it> 4.4.0-1mamba
- automatic version update by autodist
* Thu Jun 18 2020 Automatic Build System <autodist@mambasoft.it> 4.3.0-1mamba
- automatic version update by autodist
* Tue Mar 24 2020 Automatic Build System <autodist@mambasoft.it> 4.2.9-1mamba
- automatic version update by autodist
* Tue Nov 26 2019 Automatic Build System <autodist@mambasoft.it> 4.2.8.2-1mamba
- automatic version update by autodist
* Tue Nov 26 2019 Automatic Build System <autodist@mambasoft.it> 4.2.8.1-1mamba
- automatic version update by autodist
* Wed Oct 02 2019 Automatic Build System <autodist@mambasoft.it> 4.2.7.1-1mamba
- automatic version update by autodist
* Tue Oct 01 2019 Automatic Build System <autodist@mambasoft.it> 4.2.7-1mamba
- automatic version update by autodist
* Wed Sep 11 2019 Automatic Build System <autodist@mambasoft.it> 4.2.6-1mamba
- automatic version update by autodist
* Fri Aug 02 2019 Automatic Build System <autodist@mambasoft.it> 4.2.5-1mamba
- automatic version update by autodist
* Fri Aug 02 2019 Automatic Build System <autodist@mambasoft.it> 4.2.4-1mamba
- automatic version update by autodist
* Thu Mar 07 2019 Automatic Build System <autodist@mambasoft.it> 4.1.8-1mamba
- automatic version update by autodist
* Wed Mar 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.7.101-1mamba
- package created using the webbuild interface