SHA256
1
0
forked from pool/krita

- Disable PCH to drastically reduce the required disk space

needed to build krita
- Update _constraints
- Spec cleanup

OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krita?expand=0&rev=179
This commit is contained in:
Christophe Giboudeaux 2022-11-28 10:49:24 +00:00 committed by Git OBS Bridge
parent ee78c03b8d
commit 81d604f0ca
3 changed files with 17 additions and 11 deletions

View File

@ -4,7 +4,7 @@
<size unit="G">4</size> <size unit="G">4</size>
</memory> </memory>
<disk> <disk>
<size unit="G">28</size> <size unit="G">10</size>
</disk> </disk>
</hardware> </hardware>
</constraints> </constraints>

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Nov 28 09:27:13 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Disable PCH to drastically reduce the required disk space
needed to build krita
- Update _constraints
- Spec cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 22 12:51:18 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr> Tue Nov 22 12:51:18 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -19,8 +19,7 @@
%bcond_without released %bcond_without released
# Build fails on x86 and powerpc with xsimd (kde#462122) # Build fails on x86 and powerpc with xsimd (kde#462122)
%ifnarch %ix86 ppc64 ppc64le %ifnarch %ix86 ppc64 ppc64le
# TODO: Check if xsimd gets into 15.5 %if 0%{?suse_version} > 1500 || (0%{?is_opensuse} && 0%{?sle_version} > 150400)
%if 0%{?suse_version} > 1500
%bcond_without xsimd %bcond_without xsimd
%endif %endif
%endif %endif
@ -29,7 +28,6 @@ Version: 5.1.3
Release: 0 Release: 0
Summary: Digital Painting Application Summary: Digital Painting Application
License: BSD-2-Clause AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-3.0-or-later AND CC0-1.0 AND LGPL-2.0-only License: BSD-2-Clause AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-3.0-or-later AND CC0-1.0 AND LGPL-2.0-only
Group: Productivity/Graphics/Bitmap Editors
URL: https://www.krita.org/ URL: https://www.krita.org/
Source0: https://download.kde.org/stable/krita/%{version}/krita-%{version}.tar.xz Source0: https://download.kde.org/stable/krita/%{version}/krita-%{version}.tar.xz
%if %{with released} %if %{with released}
@ -116,7 +114,6 @@ matte painters, as well as illustrations and comics.
%package devel %package devel
Summary: Krita Build Environment Summary: Krita Build Environment
Group: Development/Libraries/KDE
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: cmake(Qt5Core) Requires: cmake(Qt5Core)
@ -129,16 +126,17 @@ Development headers and libraries for Krita.
%autosetup -p1 %autosetup -p1
%build %build
# install translations to %%{_kf5_localedir} so they don't clash with the krita translations in calligra-l10n (KDE4 based) %cmake_kf5 -d build -- -DKRITA_ENABLE_PCH:BOOL=OFF
# can probably be changed back to the standard location when calligra is KF5 based...
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir} %cmake_build
%make_jobs
%install %install
%kf5_makeinstall -C build %kf5_makeinstall -C build
%suse_update_desktop_file -r org.kde.krita Qt KDE Graphics RasterGraphics
%suse_update_desktop_file -r org.kde.krita Qt KDE Graphics RasterGraphics
%if %{with released} %if %{with released}
%kf5_find_lang %{name} %find_lang %{name}
%endif %endif
chmod -x %{buildroot}%{_kf5_applicationsdir}/*.desktop chmod -x %{buildroot}%{_kf5_applicationsdir}/*.desktop