Name: qownnotes Version: 19.3.0 Release: 1%{?dist} Summary: Note-taking app and todo list manager with ownCloud/Nextcloud integration License: GPL-2.0-only URL: https://www.qownnotes.org/ Source0: %{name}-%{version}.tar.xz Patch0: translation.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc BuildRequires: ninja-build BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: desktop-file-utils BuildRequires: qt5-qtbase-devel BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(Qt5Sql) BuildRequires: cmake(Qt5Xml) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5WebSockets) BuildRequires: cmake(Qt5Multimedia) BuildRequires: cmake(Qt5XmlPatterns) BuildRequires: cmake(Qt5PrintSupport) BuildRequires: cmake(Qt5LinguistTools) Requires: hicolor-icon-theme %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. %prep %autosetup -p1 mkdir -p %{_target_platform} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/QOwnNotes/languages %build pushd %{_target_platform} %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_BUNDLED=OFF \ .. popd %ninja_build -C %{_target_platform} %install %ninja_install -C %{_target_platform} pushd %{_target_platform} install -D -m 0755 src/QOwnNotes $RPM_BUILD_ROOT%{_bindir}/QOwnNotes popd pushd src install -D -m 0644 images/icons/128x128/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/QOwnNotes.png install -D -m 0644 images/icons/16x16/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/16x16/apps/QOwnNotes.png install -D -m 0644 images/icons/24x24/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/24x24/apps/QOwnNotes.png install -D -m 0644 images/icons/32x32/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/QOwnNotes.png install -D -m 0644 images/icons/48x48/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/QOwnNotes.png install -D -m 0644 images/icons/64x64/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/64x64/apps/QOwnNotes.png install -D -m 0644 images/icons/96x96/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/96x96/apps/QOwnNotes.png install -D -m 0644 images/icons/128x128/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/128x128/apps/QOwnNotes.png install -D -m 0644 images/icons/256x256/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/256x256/apps/QOwnNotes.png install -D -m 0644 images/icons/512x512/apps/QOwnNotes.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/512x512/apps/QOwnNotes.png install -D -m 0644 PBE.QOwnNotes.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/PBE.QOwnNotes.desktop popd %find_lang QOwnNotes --with-qt %fdupes %{buildroot}/%{_prefix} %check desktop-file-validate %{buildroot}%{_datadir}/applications/PBE.QOwnNotes.desktop %files -f QOwnNotes.lang %license LICENSE %doc README.md CHANGELOG.md SHORTCUTS.md %{_bindir}/QOwnNotes %{_datadir}/pixmaps/QOwnNotes.png %{_datadir}/icons/hicolor/* %{_datadir}/applications/*.desktop %{_datadir}/qt5/translations %changelog