File ghostwriter.spec of Package ghostwriter

# spec file for package ghostwriter
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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:           ghostwriter
Version:        1.8.0
Release:        0
Summary:        A distraction-free Markdown editor
License:        GPL-3.0-or-later
Group:          Productivity/Text/Editors
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libqt5-linguist
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5MultimediaWidgets)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
#BuildRequires:  pkgconfig(Qt5WebKit)
#BuildRequires:  pkgconfig(Qt5WebKitWidgets)
BuildRequires:  pkgconfig(Qt5WebEngineCore)
BuildRequires:  pkgconfig(hunspell)
Recommends:     %{name}-lang
Recommends:     multimarkdown
Suggests:       MultiMarkdown-5
Suggests:       MultiMarkdown-6
Suggests:       cmark
Suggests:       discount
Suggests:       pandoc
Suggests:       texlive-context
Suggests:       wkhtmltopdf

ghostwriter is a text editor for Markdown, which is a plain text
markup format. For more information about Markdown, please visit John
Gruber’s website at ghostwriter
provides a relaxing, distraction-free writing environment.



lrelease-qt5 %{name}.pro
%qmake5 PREFIX=%{_prefix}

%suse_update_desktop_file -r %{name} TextEditor
%find_lang %{name} --with-qt

%license COPYING
%dir %{_datadir}/appdata

%files lang -f %{name}.lang
%dir %{_datadir}/ghostwriter
%dir %{_datadir}/ghostwriter/translations