diff --git a/krita.spec b/krita.spec index d1899ab..7665a01 100644 --- a/krita.spec +++ b/krita.spec @@ -23,6 +23,7 @@ License: GPL-2.0+ and LGPL-2.1+ Group: Productivity/Office/Suite Url: http://www.krita.org/ Source0: http://download.kde.org/stable/krita/%{version}/krita-%{version}.tgz +Source99: %{name}.changes BuildRequires: Mesa-devel BuildRequires: OpenColorIO-devel BuildRequires: OpenEXR-devel @@ -101,6 +102,13 @@ Krita is the image manipulation application of the Calligra Suite. %prep %setup -q -n krita-%{version} +# Remove build time references so build-compare can do its work +FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{SOURCE99} '+%%b %%e %%Y') +FAKE_TIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M') +sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" plugins/extensions/gmic/3rdparty/gmic/CImg.h +sed -i "s/__TIME__/\"$FAKE_TIME\"/" plugins/extensions/gmic/3rdparty/gmic/CImg.h + + %build %cmake_kf5 -d build %make_jobs