commit 2fb3241f88158aa5d7b2d54962ae559e34952834
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Aug 31 22:24:57 2020 +0100
Use modern cmake macros and disable LTO (rfbz #5733)
kdenlive.spec | 20 +++++++++-----------
rttr.CMakeLists.patch | 2 +-
2 files changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/kdenlive.spec b/kdenlive.spec
index 7eb5610..4d013a3 100644
--- a/kdenlive.spec
+++ b/kdenlive.spec
@@ -1,10 +1,10 @@
-%global __cmake_in_source_build 1
-%global __cmake_in_source_build 1
+%undefine __cmake_in_source_build
+%global _lto_cflags %{nil}
Name: kdenlive
Summary: Non-linear video editor
Version: 20.08.0
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2+
URL:
http://www.kdenlive.org
@@ -102,19 +102,14 @@ recent video technologies.
%build
-mkdir %{_target_platform}
-pushd %{_target_platform}
-mv ../rttr-0.9.6/ rttr/
-
-%{cmake_kf5} .. \
+%{cmake_kf5} \
-DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=ON -Wno-dev
-popd
-%make_build -C %{_target_platform}
+%cmake_build
%install
-make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+%cmake_install
## unpackaged files
rm -rfv %{buildroot}%{_datadir}/doc/Kdenlive/
@@ -174,6 +169,9 @@ fi
%changelog
+* Mon Aug 31 2020 Sérgio Basto <sergio(a)serjux.com> - 20.08.0-2
+- Use modern cmake macros and disable LTO (rfbz #5733)
+
* Tue Aug 25 2020 Sérgio Basto <sergio(a)serjux.com> - 20.08.0-1
- Update kdenlive to 20.08.0
diff --git a/rttr.CMakeLists.patch b/rttr.CMakeLists.patch
index 849048a..8a9e9aa 100644
--- a/rttr.CMakeLists.patch
+++ b/rttr.CMakeLists.patch
@@ -5,7 +5,7 @@
ExternalProject_Add(rttr_project
PREFIX rttr
- URL
https://github.com/rttrorg/rttr/archive/v0.9.6.tar.gz
-+ SOURCE_DIR "rttr/"
++ SOURCE_DIR "../rttr-0.9.6"
UPDATE_COMMAND ""
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_INSTALL_LIBDIR=lib
-DBUILD_EXAMPLES=OFF -DBUILD_DOCUMENTATION=OFF -DBUILD_UNIT_TESTS=OFF -DBUILD_PACKAGE=OFF
-DBUILD_STATIC=ON
)