2023-10-19 15:05:19 +03:00
|
|
|
%define oname QOwnNotes
|
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
2024-12-23 21:51:16 +00:00
|
|
|
%define with_qt515 1
|
2023-10-19 15:05:19 +03:00
|
|
|
|
|
|
|
Name: qownnotes
|
2025-01-17 20:44:07 +00:00
|
|
|
Version: 25.1.4
|
2023-10-19 15:05:19 +03:00
|
|
|
Release: 1
|
|
|
|
Summary: A notepad and todo-list manager with markdown support and cloud integration
|
|
|
|
URL: https://www.qownnotes.org
|
|
|
|
Source0: https://github.com/pbek/QOwnNotes/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
|
|
License: GPLv2
|
|
|
|
Group: Office
|
|
|
|
BuildRequires: xz
|
2024-12-23 21:51:16 +00:00
|
|
|
%if %{with_qt515}
|
|
|
|
BuildRequires: qt515
|
|
|
|
%else
|
2024-12-23 13:15:43 +00:00
|
|
|
BuildRequires: qt5-linguist-tools
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Sql)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
|
|
|
BuildRequires: pkgconfig(Qt5WebSockets)
|
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
|
|
|
BuildRequires: pkgconfig(Qt5Qml)
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
2024-12-23 21:51:16 +00:00
|
|
|
%endif
|
2023-10-19 15:05:19 +03:00
|
|
|
BuildRequires: pkgconfig(libdrm)
|
|
|
|
|
2024-12-23 13:15:43 +00:00
|
|
|
|
2023-10-19 15:05:19 +03:00
|
|
|
%description
|
|
|
|
QOwnNotes is the open source notepad with markdown support
|
|
|
|
and todo list manager for GNU/Linux, macOS and Windows,
|
|
|
|
that works together with Nextcloud Notes and ownCloud Notes.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-12-23 21:51:16 +00:00
|
|
|
%if %{with_qt515}
|
2024-12-21 22:37:14 +00:00
|
|
|
#/opt/qt5/5.15/bin/lrelease QOwnNotes.pro
|
2024-12-23 21:51:16 +00:00
|
|
|
export LD_LIBRARY_PATH=/opt/qt5/5.15/lib:/opt/openssl3.3/lib64:${LD_LIBRARY_PATH}
|
2024-12-23 10:24:39 +00:00
|
|
|
|
2024-12-23 21:51:16 +00:00
|
|
|
/opt/qt5/5.15/bin/qmake
|
|
|
|
%else
|
|
|
|
lrelease-qt5 QOwnNotes.pro
|
|
|
|
%qmake_qt5
|
|
|
|
%endif
|
2024-12-21 21:33:43 +00:00
|
|
|
|
2023-10-19 15:05:19 +03:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
%find_lang %{oname} --with-qt
|
|
|
|
|
|
|
|
%files -f %{oname}.lang
|
|
|
|
%doc README.md LICENSE
|
|
|
|
%{_bindir}/%{oname}
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_iconsdir}/hicolor/*/apps/*.png
|
|
|
|
%{_iconsdir}/hicolor/scalable/apps/*.svg
|
|
|
|
# не попадает в find_lang
|
|
|
|
%{_datadir}/qt5/translations/QOwnNotes_ceb.qm
|
|
|
|
%{_datadir}/qt5/translations/QOwnNotes_fil.qm
|
|
|
|
%{_datadir}/qt5/translations/QOwnNotes_hil.qm
|
|
|
|
|
|
|
|
|