qownnotes/qownnotes.spec
Your Name 899b02fc82
Some checks failed
Run CI/CD... / main (push) Failing after 8m45s
25.2.1
2025-02-04 10:24:36 +00:00

71 lines
1.8 KiB
RPMSpec

%define oname QOwnNotes
%define debug %nil
%define debug_package %nil
%define with_qt515 1
Name: qownnotes
Version: 25.2.1
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
%if %{with_qt515}
BuildRequires: qt515
%else
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)
%endif
BuildRequires: pkgconfig(libdrm)
%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
%if %{with_qt515}
#/opt/qt5/5.15/bin/lrelease QOwnNotes.pro
export LD_LIBRARY_PATH=/opt/qt5/5.15/lib:/opt/openssl3.3/lib64:${LD_LIBRARY_PATH}
/opt/qt5/5.15/bin/qmake
%else
lrelease-qt5 QOwnNotes.pro
%qmake_qt5
%endif
%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