Name: cherrytree Version: 0.99.48 Release: 1%{?dist} Summary: A hierarchical note taking application License: GPL-3.0-or-later URL: https://www.giuspen.net/%{name}/ Source0: https://github.com/giuspen/%{name}/releases/download/%{version}/%{name}_%{version}.tar.xz Source1: https://github.com/giuspen/%{name}/releases/download/%{version}/%{name}_%{version}.tar.xz.asc Source2: https://keyserver.ubuntu.com/pks/lookup?op=get\&search=0xc7bf38ce0bd442c2369aa984049128a20ce0648d#/gpgkey-C7BF38CE0BD442C2369AA984049128A20CE0648D.gpg # add xml header to metainfo file Patch: metainfo_write.patch BuildRequires: gcc-c++ BuildRequires: gtkmm30-devel BuildRequires: gtksourceviewmm3-devel BuildRequires: libxml++-devel BuildRequires: libsq3-devel BuildRequires: gettext-devel BuildRequires: gspell-devel BuildRequires: cmake BuildRequires: ninja-build BuildRequires: libappstream-glib BuildRequires: libcurl-devel BuildRequires: uchardet-devel BuildRequires: fmt-devel BuildRequires: spdlog-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: gnupg2 Requires: hicolor-icon-theme %description A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single XML or SQLite file. The project home page is giuspen.net/cherrytree. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -n %{name}_%{version} -p1 %build %cmake -D BUILD_TESTING=OFF # we'll do tests later in %check so we can disable those that won't work in mock %cmake_build # skip tests until we can do so with shared gtest libs # https://github.com/giuspen/cherrytree/issues/2089 #%check #%%ctest --gtest-filter=*-ExportsMultipleParametersTests.ChecksExports # ExportsTests/ExportsMultipleParametersTests.ChecksExports require X and won't work in mock %install %cmake_install desktop-file-validate %{buildroot}/%{_datadir}/applications/cherrytree.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml %find_lang %{name} %files -f %{name}.lang %license license.txt %doc README.md changelog.txt %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_mandir}/man1/*.1* %{_datadir}/metainfo/net.giuspen.%{name}.metainfo.xml %{_datadir}/mime-info/%{name}* %{_datadir}/applications/%{name}.desktop %changelog * Wed Aug 03 2022 Jonathan Wright - 0.99.48-1 - Initial package build