File markdown-tools.spec of Package markdown-tools
#
# spec file for package markdown-tools
#
# Copyright (c) 2025 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 https://bugs.opensuse.org/
#
Name:           markdown-tools
Version:        @SERVICE@
Release:        0
Summary:        Tools for work with Markdown
License:        GPL-3.0-or-later
Group:          Productivity/Other
URL:            https://github.com/igormironchik/markdown-tools
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  kf6-extra-cmake-modules
BuildRequires:  pkgconfig
BuildRequires:  resvg-c-api-devel
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF6Sonnet)
BuildRequires:  cmake(KF6SyntaxHighlighting)
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6Svg)
BuildRequires:  cmake(Qt6Test)
BuildRequires:  cmake(Qt6WebEngineWidgets)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  pkgconfig(libpodofo) >= 1.0.2
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(tinyxml2)
%requires_eq    libresvg
Recommends:     myspell-ru_RU
Provides:       bundled(libmarkdown-widgets)
Provides:       bundled(libLaTeX)
Provides:       bundled(libmd-editor-lib)
%description
This is a set of applications to work with Markdown, including editor, HTML
preview viewer, converter to PDF.
%prep
%autosetup -p1
%build
%cmake_qt6 \
    -DBUILD_WITH_SYSTEM_LIBS:BOOL=ON
%qt6_build
%install
%qt6_install
%files
%doc README.md
%{_bindir}/md-editor
%{_bindir}/md-launcher
%{_bindir}/md-pdf-gui
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
#%%{_datadir}/metainfo/%%{_name}.metainfo.xml
#%%{_mandir}/man?/%%{name}.?%%{?ext_man}
%license LICENSES/GPL-3.0-or-later.txt
%changelog