public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/qownnotes] f45: Build with cmake
@ 2026-10-20 3:00 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-20 3:00 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/qownnotes
Branch : f45
Commit : d80d12005c0c990958191beafefe4efdcbc73bd5
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-10-19T22:58:26-04:00
Stats : +24/-15 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/qownnotes/c/d80d12005c0c990958191beafefe4efdcbc73bd5?branch=f45
Log:
Build with cmake
---
diff --git a/qownnotes.spec b/qownnotes.spec
index 17382dd..d225acc 100644
--- a/qownnotes.spec
+++ b/qownnotes.spec
@@ -62,7 +62,6 @@ BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: git-core
BuildRequires: libappstream-glib
-BuildRequires: make
BuildRequires: cmake(Qt6)
BuildRequires: cmake(Qt6Concurrent)
@@ -137,26 +136,18 @@ mv qtcsv-%{qtcsv_commit}/* src/libraries/qtcsv/
mv qt-piwik-tracker-%{piwiktracker_commit}/* src/libraries/piwiktracker/
mv qkeysequencewidget-%{qkeysequencewidget_commit}/* src/libraries/qkeysequencewidget/
mv QHotkey-%{qhotkey_commit}/* src/libraries/qhotkey/
-mkdir -p src/%{_target_platform}
%build
-# Build translations
-# * https://github.com/pbek/QOwnNotes/issues/1744
-lrelease-qt6 src/%{appname}.pro
-
-pushd src/%{_target_platform}
-%qmake_qt6 \
- PREFIX=%{buildroot}%{_prefix} \
- USE_SYSTEM_BOTAN=1 \
- CONFIG+=c++20 \
- ..
-popd
-%make_build -C src/%{_target_platform}
+%cmake \
+ -DQON_QT6_BUILD=ON \
+ -DBUILD_WITH_SYSTEM_BOTAN=ON \
+ -S src
+%cmake_build
%install
-%make_install -C src/%{_target_platform}
+%cmake_install
# AppData manifest
install -D -p -m 0644 %{SOURCE100} -t %{buildroot}%{_metainfodir}/
%find_lang %{appname} --with-qt
diff --git a/system-qtkeychain.patch b/system-qtkeychain.patch
index 27039a7..33463b7 100644
--- a/system-qtkeychain.patch
+++ b/system-qtkeychain.patch
@@ -1,3 +1,21 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 039c624..44752b4 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -159,12 +159,7 @@ if(NOT QON_QT6_BUILD)
+ COMPONENTS Core
+ REQUIRED)
+ endif()
+-add_subdirectory(libraries/qtkeychain EXCLUDE_FROM_ALL)
+-if(QT_VERSION_MAJOR EQUAL 5 AND Qt5Core_VERSION VERSION_LESS 5.15.0)
+- # qtkeychain references QDataStream::Qt_5_15, which is unavailable in legacy
+- # Qt 5 builds.
+- target_compile_definitions(qt5keychain PRIVATE Qt_5_15=Qt_5_0)
+-endif()
++find_package(Qt${QT_VERSION_MAJOR}Keychain REQUIRED)
+
+ set(QHOTKEY_EXAMPLES OFF)
+ add_subdirectory(libraries/qhotkey EXCLUDE_FROM_ALL)
diff --git a/src/QOwnNotes.pro b/src/QOwnNotes.pro
index 1ad1807..3cb8ffc 100644
--- a/src/QOwnNotes.pro
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-20 3:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20 3:00 [rpms/qownnotes] f45: Build with cmake Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox