%bcond_with test %global forgeurl https://github.com/giuspen/cherrytree Version: 1.6.2 %global tag v%{version} %forgemeta Name: cherrytree Release: %autorelease Summary: Hierarchical note taking application License: GPL-3.0-or-later AND LGPL-2.1-or-later URL: https://www.giuspen.net/cherrytree/ Source0: %{forgesource} BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: pkgconfig(gtkmm-4.0) BuildRequires: pkgconfig(gtksourceview-5) BuildRequires: pkgconfig(glibmm-2.68) BuildRequires: pkgconfig(pangomm-2.48) BuildRequires: pkgconfig(gspell-1) BuildRequires: pkgconfig(libxml++-2.6) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(uchardet) BuildRequires: pkgconfig(fribidi) BuildRequires: pkgconfig(fmt) BuildRequires: pkgconfig(spdlog) BuildRequires: pkgconfig(vte-2.91-gtk4) %if %{with test} BuildRequires: gtest-devel BuildRequires: gmock-devel %endif BuildRequires: desktop-file-utils BuildRequires: libappstream-glib Requires: hicolor-icon-theme %description CherryTree is a hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single XML or SQLite file. %prep %forgeautosetup -p1 %build %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -DWITH_GTK4=ON \ %if %{with test} -DBUILD_TESTING=ON \ -DUSE_SHARED_GTEST_GMOCK=ON \ %else -DBUILD_TESTING=OFF %endif %cmake_build %install %cmake_install %find_lang %{name} %check %if %{with test} %ctest %endif desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.xml %files -f %{name}.lang %license license.txt %doc README.md %{_bindir}/cherrytree %{_datadir}/applications/cherrytree.desktop %dir %{_datadir}/cherrytree %{_datadir}/cherrytree/data/ %{_datadir}/cherrytree/icons/ %{_datadir}/cherrytree/language-specs/ %{_datadir}/cherrytree/styles/ %{_datadir}/icons/hicolor/scalable/apps/cherrytree.svg %{_mandir}/man1/cherrytree.1.gz %{_datadir}/metainfo/net.giuspen.cherrytree.metainfo.xml %{_datadir}/mime-info/cherrytree.keys %{_datadir}/mime-info/cherrytree.mime %changelog %autochangelog