## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} # Git submodules %global qmarkdowntextedit_commit d8ab1dd8e851685e61d9ec9acd8cf8cce97e9628 %global qmarkdowntextedit_shortcommit %(c=%{qmarkdowntextedit_commit}; echo ${c:0:7}) %global qttoolbareditor_commit ca0728c9924c6464234f7e477aa9509293d0a324 %global qttoolbareditor_shortcommit %(c=%{qttoolbareditor_commit}; echo ${c:0:7}) %global qtcsv_commit ae15c33b066fea9373a07bed5dc898c10b45ce2a %global qtcsv_shortcommit %(c=%{qtcsv_commit}; echo ${c:0:7}) %global piwiktracker_commit 925272c2913932f7b0885ef41a12d2d07e9d215d %global piwiktracker_shortcommit %(c=%{piwiktracker_commit}; echo ${c:0:7}) %global qkeysequencewidget_commit 8cbb54a12f33e41bf7c4795405f4235db1ee8ff1 %global qkeysequencewidget_shortcommit %(c=%{qkeysequencewidget_commit}; echo ${c:0:7}) %global md4c_commit 8c23869db354572b9293f3d166557ad1720d0b51 %global md4c_shortcommit %(c=%{md4c_commit}; echo ${c:0:7}) %global qhotkey_commit 998c76c21bef8645802804d77e60a7dc8efcaf6f %global qhotkey_shortcommit %(c=%{qhotkey_commit}; echo ${c:0:7}) %global appname QOwnNotes %global url1 https://github.com/pbek %global forgeurl %{url1}/%{appname} Name: qownnotes Version: 23.11.2 Release: %autorelease Summary: Plain-text file markdown note taking with Nextcloud integration %forgemeta # The entire source code is MIT except bundled libs: # BSD: qdarkstyle # qkeysequencewidget # qmarkdowntextedit # singleapplication # simplecrypt # MIT: piwiktracker # md4c # GPL-2.0-only: versionnumber # GPL-3.0-or-later: qttoolbareditor # LGPL-2.1-or-later: fakevim # Apache-2.0: diff_match_patch License: MIT and BSD and GPL-2.0-only and GPL-3.0-or-later and LGPL-2.1-or-later and Apache-2.0 URL: https://www.qownnotes.org Source0: %{forgesource} Source1: %{url1}/qmarkdowntextedit/archive/%{qmarkdowntextedit_commit}/qmarkdowntextedit-%{qmarkdowntextedit_shortcommit}.tar.gz Source2: %{url1}/Qt-Toolbar-Editor/archive/%{qttoolbareditor_commit}/qttoolbareditor-%{qttoolbareditor_shortcommit}.tar.gz Source3: %{url1}/qtcsv/archive/%{qtcsv_commit}/qtcsv-%{qtcsv_shortcommit}.tar.gz Source5: %{url1}/qt-piwik-tracker/archive/%{piwiktracker_commit}/piwiktracker-%{piwiktracker_shortcommit}.tar.gz Source6: %{url1}/qkeysequencewidget/archive/%{qkeysequencewidget_commit}/qkeysequencewidget-%{qkeysequencewidget_shortcommit}.tar.gz Source7: https://github.com/%{name}/md4c/archive/%{md4c_commit}/md4c-%{md4c_shortcommit}.tar.gz Source8: https://github.com/%{name}/QHotkey/archive/%{qhotkey_commit}/qhotkey-%{qhotkey_shortcommit}.tar.gz BuildRequires: cmake3 BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: libappstream-glib BuildRequires: make BuildRequires: cmake(Qt5) BuildRequires: cmake(Qt5Concurrent) BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: cmake(Qt5Multimedia) BuildRequires: cmake(Qt5PrintSupport) BuildRequires: cmake(Qt5Sql) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(Qt5WebSockets) BuildRequires: cmake(Qt5X11Extras) BuildRequires: cmake(Qt5Xml) BuildRequires: cmake(Qt5XmlPatterns) # Switch to 'botan2' # * https://github.com/pbek/QOwnNotes/issues/1263 %if 0%{?fedora} >= 32 BuildRequires: pkgconfig(botan-2) >= 2.12.0 %endif Requires: hicolor-icon-theme Requires: qt5-qtbase%{?_isa} Recommends: %{name}-translations = %{version}-%{release} Provides: bundled(fakevim) = 0.0.1 Provides: bundled(md4c) = 0.4.2~git%{md4c_shortcommit} Provides: bundled(qhotkey) = 1.3.0~git%{qhotkey_commit} Provides: bundled(qkeysequencewidget) = 1.0.1 Provides: bundled(qmarkdowntextedit) = 2019.4.0~git%{qmarkdowntextedit_shortcommit} Provides: bundled(qt-piwik-tracker) = 0~git%{piwiktracker_shortcommit} Provides: bundled(qt-toolbar-editor) = 0~git%{qttoolbareditor_shortcommit} Provides: bundled(qtcsv) = 1.2.2 %if 0%{?fedora} < 32 Provides: bundled(botan) = 2.12.0 %endif %description QOwnNotes is the open source notepad with markdown support and todo list manager for GNU/Linux, Mac OS X and Windows, that works together with the default notes application of ownCloud and Nextcloud. 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 Syncthing or Dropbox can be used too. I like the concept of having notes accessible in plain text files, like it is done in the ownCloud/Nextcloud notes apps, 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. %package translations Summary: Translations files for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description translations Translations files for %{name}. %prep %forgeautosetup -p1 %autosetup -n %{appname}-%{version} -D -T -a1 %autosetup -n %{appname}-%{version} -D -T -a2 %autosetup -n %{appname}-%{version} -D -T -a3 %autosetup -n %{appname}-%{version} -D -T -a5 %autosetup -n %{appname}-%{version} -D -T -a6 %autosetup -n %{appname}-%{version} -D -T -a7 %autosetup -n %{appname}-%{version} -D -T -a8 mv qmarkdowntextedit-%{qmarkdowntextedit_commit}/* src/libraries/qmarkdowntextedit/ mv Qt-Toolbar-Editor-%{qttoolbareditor_commit}/* src/libraries/qttoolbareditor/ mv qtcsv-%{qtcsv_commit}/* src/libraries/qtcsv/ mv qt-piwik-tracker-%{piwiktracker_commit}/* src/libraries/piwiktracker/ mv qkeysequencewidget-%{qkeysequencewidget_commit}/* src/libraries/qkeysequencewidget/ mv md4c-%{md4c_commit}/* src/libraries/md4c/ mv QHotkey-%{qhotkey_commit}/* src/libraries/qhotkey/ mkdir -p src/%{_target_platform} %build # Build translations # * https://github.com/pbek/QOwnNotes/issues/1744 lrelease-qt5 src/%{appname}.pro pushd src/%{_target_platform} %qmake_qt5 \ PREFIX=%{buildroot}%{_prefix} \ %if 0%{?fedora} >= 32 USE_SYSTEM_BOTAN=1 \ %endif .. popd %make_build -C src/%{_target_platform} %install %make_install -C src/%{_target_platform} install -m 0644 -Dp obs/%{name}.appdata.xml %{buildroot}/%{_metainfodir}/%{name}.appdata.xml %find_lang %{appname} --with-qt %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/%{appname} %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/*/*/*.png %{_datadir}/icons/hicolor/scalable/*/*.svg %{_metainfodir}/*.xml %files -f %{appname}.lang translations %if 0%{?fedora} <= 34 %{_datadir}/qt5/translations/%{appname}_ceb.qm %{_datadir}/qt5/translations/%{appname}_fil.qm %{_datadir}/qt5/translations/%{appname}_hil.qm %endif %changelog * Sun Nov 19 2023 Packit - 23.11.2-1 - [packit] 23.11.2 upstream release - Resolves rhbz#2250546 * Sun Nov 12 2023 Packit - 23.11.1-1 - [packit] 23.11.1 upstream release - Resolves rhbz#2249330 * Thu Nov 02 2023 Artem Polishchuk - 23.11.0-3 - build: Upload source * Thu Nov 02 2023 Artem Polishchuk - 23.11.0-2 - packit: Update config * Thu Nov 02 2023 Packit - 23.11.0-1 - [packit] 23.11.0 upstream release - Resolves rhbz#2247528 * Sat Oct 14 2023 Artem Polishchuk - 23.10.1-1 - [packit] 23.10.1 upstream release * Mon Oct 09 2023 Artem Polishchuk - 23.10.0-1 - [packit] 23.10.0 upstream release * Sun Oct 08 2023 Artem Polishchuk - 23.9.7-5 - packit: Add upstream_tag_template: v{version} * Fri Oct 06 2023 Artem Polishchuk - 23.9.7-4 - build: Add Packit config * Fri Oct 06 2023 Artem Polishchuk - 23.9.7-3 - build: Use forge macros * Sat Sep 30 2023 Artem Polishchuk - 23.9.7-2 - license: Convert to SPDX * Sat Sep 30 2023 Artem Polishchuk - 23.9.7-1 - chore: Update to 23.9.7 (rh#2238097) * Sat Sep 02 2023 Artem Polishchuk - 23.9.0-1 - chore: Update to 23.9.0 (rh#2233783) * Sun Aug 06 2023 Artem Polishchuk - 23.8.0-1 - chore: Update to 23.8.0 (rh#2215687) * Fri Jul 21 2023 Fedora Release Engineering - 23.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jun 10 2023 Artem Polishchuk - 23.6.4-1 - chore: Update to 23.6.4 (rh#2193340) * Mon May 01 2023 Artem Polishchuk - 23.5.0-1 - chore: Update to 23.5.0 * Sat Mar 04 2023 Artem Polishchuk - 23.3.0-1 - chore: Update to 23.3.0 * Fri Jan 20 2023 Fedora Release Engineering - 23.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 18 2023 Artem Polishchuk - 23.1.1-1 - chore: Update to 23.1.1 * Sun Dec 11 2022 Artem Polishchuk - 22.12.2-1 - chore: Update to 22.12.2 * Sun Dec 04 2022 Artem Polishchuk - 22.12.0-1 - chore: Update to 22.12.0 * Wed Nov 30 2022 Artem Polishchuk - 22.11.9-1 - chore: Update to 22.11.9 * Thu Nov 24 2022 Artem Polishchuk - 22.11.8-2 - build: ExcludeArch: %%{ix86} * Thu Nov 24 2022 Artem Polishchuk - 22.11.8-1 - chore: Update to 22.11.8 (#2143091) * Mon Nov 14 2022 Artem Polishchuk - 22.11.5-1 - chore: Update to 22.11.5 (#2139885) * Fri Nov 04 2022 Artem Polishchuk - 22.11.3-1 - chore: Update to 22.11.3 (#2139885) * Tue Nov 01 2022 Artem Polishchuk - 22.11.1-1 - chore: Update to 22.11.1 (#2134175) * Fri Oct 28 2022 Artem Polishchuk - 22.10.3-1 - chore(update): 22.10.3 (#2134175) * Fri Oct 21 2022 Artem Polishchuk - 22.10.2-1 - chore(update): 22.10.2 * Mon Oct 17 2022 Artem Polishchuk - 22.10.1-1 - chore(update): 22.10.1 * Fri Oct 07 2022 Artem Polishchuk - 22.10.0-1 - chore(update): 22.10.0 * Tue Sep 27 2022 Artem Polishchuk - 22.9.2-1 - chore(update): 22.9.2 * Thu Sep 15 2022 Artem Polishchuk - 22.9.1-1 - chore(update): 22.9.1 * Sun Sep 11 2022 Artem Polishchuk - 22.9.0-1 - chore(update): 22.9.0 * Sat Aug 27 2022 Artem Polishchuk - 22.8.4-1 - chore(update): 22.8.4 * Sun Aug 21 2022 Artem Polishchuk - 22.8.3-1 - chore(update): 22.8.3 * Sat Aug 20 2022 Artem Polishchuk - 22.8.2-1 - chore(update): 22.8.2 * Fri Aug 12 2022 Artem Polishchuk - 22.8.1-1 - chore(update): 22.8.1 * Thu Jul 21 2022 Artem Polishchuk - 22.7.6-1 - chore(update): 22.7.6 * Fri Jul 01 2022 Artem Polishchuk - 22.6.2-1 - chore(update): 22.6.2 * Tue Jun 07 2022 Artem Polishchuk - 22.6.0-1 - chore(update): 22.6.0 * Tue May 24 2022 Artem Polishchuk - 22.5.3-1 - chore(update): 22.5.3 * Tue May 17 2022 Artem Polishchuk - 22.5.2-1 - chore(update): 22.5.2 * Mon May 16 2022 Artem Polishchuk - 22.5.1-1 - chore(update): 22.5.1 * Mon May 09 2022 Artem Polishchuk - 22.5.0-2 - build: Add condition for <=f34 build * Mon May 09 2022 Artem Polishchuk - 22.5.0-1 - chore(update): 22.5.0 * Wed Apr 27 2022 Artem Polishchuk - 22.4.2-1 - chore(update): 22.4.2 * Fri Apr 15 2022 Artem Polishchuk - 22.4.0-1 - chore(update): 22.4.0 * Wed Feb 16 2022 Artem Polishchuk - 22.1.12-2 - build(rebuild): 'botan2' soname bump * Sun Jan 30 2022 Artem Polishchuk - 22.1.12-1 - chore(update): 22.1.12 * Fri Jan 21 2022 Fedora Release Engineering - 21.9.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Oct 01 2021 Artem Polishchuk - 21.9.13-1 - build(update): 21.9.13 - build: Drop fakevim submodule which comes with sources now * Fri Jul 23 2021 Fedora Release Engineering - 21.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 16 2021 Artem Polishchuk - 21.5.3-1 - build(update): 21.5.3 * Sat May 08 2021 Artem Polishchuk - 21.5.1-1 - build(update): 21.5.1 * Tue Apr 27 2021 Artem Polishchuk - 21.3.1-2.20210312gitb71ba02 - build(rebuild): 'botan2' soname bump * Thu Mar 18 2021 Artem Polishchuk - 21.3.1-1.20210312gitb71ba02 - build(update): 21.3.1 * Wed Jan 27 2021 Fedora Release Engineering - 20.11.4-2.20201110git43d45dd - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Nov 12 2020 Artem Polishchuk - 20.11.4-1.20201110git43d45dd - build(update): 20.11.4 * Fri Oct 30 2020 Artem Polishchuk - 20.6.7-4.20200618gitb669baa - build(rebuild): 'botan2' soname bump | rh#1892897 * Wed Sep 2 2020 Artem Polishchuk - 20.6.7-3.20200618gitb669baa - Rebuild | Fix RH#1871615 * Wed Jul 29 2020 Fedora Release Engineering - 20.6.7-2.20200618gitb669baa - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 19 2020 Artem Polishchuk - 20.6.7-1.20200618gitb669baa - Update to 20.6.7 * Thu May 21 2020 Artem Polishchuk - 20.5.10-1.20200518gitcaa6d48 - Update to 20.5.10 - Add new submodule 'qhotkey' - Add new BR: Qt5X11Extras - Translations now compiles from sources | GH-1744 - Disable LTO * Sat Mar 28 2020 Artem Polishchuk - 20.3.7-1.20200328git7fe3aa6 - Update to 20.3.7 * Thu Jan 30 2020 Fedora Release Engineering - 20.1.11-2.20200119gitadec18b - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 19 2020 Artem Polishchuk - 20.1.11-1.20200119gitadec18b - Update to 20.1.11 - Add new submodule 'md4c' - Enable LTO * Tue Sep 17 2019 Artem Polishchuk - 19.9.12-2.20190912gitc33c89f - Update to 19.9.12 - Remove ExcludeArches: s390x ppc64le - Switch to botan2: https://github.com/pbek/QOwnNotes/issues/1263 * Sun Sep 08 2019 Artem Polishchuk - 19.9.5-1.20190905gitf62ac68 - Update to 19.9.5 * Sat Aug 10 2019 Artem Polishchuk - 1.8.4-7.20190810git0302b2c - Initial package - Thanks to Dead_Mozay for initial spec file