File cherrytree.spec of Package cherrytree

# spec file for package cherrytree
# Copyright (c) 2024 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           cherrytree
Version:        1.1.2+0
Release:        0
Summary:        A hierarchical note taking application
License:        GPL-3.0-or-later AND LGPL-2.1-only
Group:          Productivity/Office/Other
Source0:        %{name}-%{version}.tar.xz
#PATCH-FIX-OPENSUSE cherrytree-set-git-version.patch -- Set git version in help about.
Patch0:         cherrytree-set-git-version.patch
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  ninja
BuildRequires:  python3-lxml
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(fmt)
BuildRequires:  pkgconfig(gspell-1)
BuildRequires:  pkgconfig(gtkmm-3.0)
BuildRequires:  pkgconfig(gtksourceviewmm-3.0)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libxml++-2.6)
BuildRequires:  pkgconfig(spdlog) >= 1.5
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(uchardet)
BuildRequires:  pkgconfig(vte-2.91)
# For password-protected format
Recommends:     p7zip-full

A hierarchical note taking application, featuring rich text and syntax
highlighting, storing all the data (including images) in a single xml
file with extension ".ctd".


%autosetup -p1

#Disable build tests as this needs cpputest and static development files!

# Remove old mime registration files
rm %{buildroot}%{_datadir}/mime-info/cherrytree.*
%suse_update_desktop_file -G "Hierarchical Notes Utility" cherrytree TextEditor
%find_lang %{name} %{?no_lang_C}
%fdupes -s %{buildroot}%{_datadir}

## Empty section added as per rpmlint report

%license license.txt
%doc changelog.txt
%dir %{_datadir}/metainfo

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by