File qownnotes.spec of Package qownnotes
#
# spec file for package qownnotes
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define lrelease_qt6 /usr/bin/lrelease6
Name: qownnotes
Version: 25.12.7
Release: 0
Summary: Note-taking app and todo list manager with ownCloud/Nextcloud integration
License: GPL-2.0-only
Group: Productivity/Office/Other
URL: https://www.qownnotes.org/
Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: ccache
BuildRequires: ninja
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: desktop-file-utils
BuildRequires: update-desktop-files
BuildRequires: qt6-base-common-devel
BuildRequires: cmake(Qt6Svg)
BuildRequires: cmake(Qt6Qml)
BuildRequires: cmake(Qt6Sql)
BuildRequires: cmake(Qt6Xml)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6Multimedia)
BuildRequires: cmake(Qt6Xml)
BuildRequires: cmake(Qt6PrintSupport)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6WebSockets)
BuildRequires: cmake(Qt6Core5Compat)
BuildRequires: cmake(Qt6QuickControls2)
Requires: qt6-sql-sqlite
Requires: sqlite3
Recommends: %{name}-lang
%description
QOwnNotes is the open source notepad and todo list manager, that works together with the default notes application of ownCloud.
So you are able to write down your thoughts with QOwnNotes and edit or search for them later from your mobile device (like with CloudNotes or the ownCloud/Nextcloud web-service.
The notes are stored as plain text files and are synced with ownCloud's/Nextcloud's file sync functionality. Of course other software, like Dropbox can be used too.
I like the concept of having notes accessible in plain text files, like it is done in the ownCloud notes app, to gain a maximum of freedom, but I was not able to find a decent desktop note taking tool or a text editor, that handles them well. Out of this need QOwnNotes was born.
%lang_package
%prep
%autosetup -p1
rm -rf src/languages/*.qm
# scripts executable under /usr/share/doc
find CHANGELOG.md -type f -perm /111 -exec chmod 644 {} \;
find README.md -type f -perm /111 -exec chmod 644 {} \;
find LICENSE -type f -perm /111 -exec chmod 644 {} \;
sed -i "s|qt5|qt6|g" src/QOwnNotes.pro
%build
mkdir -p build
pushd build
%{lrelease_qt6} ../src/QOwnNotes.pro
%qmake6 ../src/QOwnNotes.pro
%make_jobs
%install
pushd build
%qmake6_install
popd
%find_lang QOwnNotes --with-qt
%suse_update_desktop_file -c PBE.QOwnNotes QOwnNotes QOwnNotes QOwnNotes QOwnNotes "Utility;SyncUtility;"
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}/%{_datadir}
%files
%license LICENSE
%doc README.md CHANGELOG.md
%{_bindir}/QOwnNotes
%dir %{_datadir}/icons/hicolor
%{_datadir}/icons/hicolor/*
%{_datadir}/applications/*.desktop
%files lang -f QOwnNotes.lang
%changelog