public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/qownnotes] f45: Build with cmake
Date: Tue, 20 Oct 2026 03:00:58 GMT	[thread overview]
Message-ID: <179246525843.1.2947809697395591927.rpms-qownnotes-d80d12005c0c@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-20  3:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179246525843.1.2947809697395591927.rpms-qownnotes-d80d12005c0c@fedoraproject.org \
    --to=yselkowi@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox