File geany-preview.spec of Package geany-preview

#
# spec file for package geany-preview
#
# 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 https://bugs.opensuse.org/
#


Name:           geany-preview
Version:        0.1.3+git20240609.818a147
Release:        0
Summary:        Turns Geany into a markdown editor
License:        GPL-3.0
URL:            https://github.com/xiota/geany-preview
Source:         %{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gtk3-devel
BuildRequires:  make
BuildRequires:  meson
BuildRequires:  pkgconfig(geany)
BuildRequires:  pkgconfig(libcmark-gfm)
BuildRequires:  pkgconfig(libpodofo)
BuildRequires:  pkgconfig(webkit2gtk-4.1)

%description
Turns Geany into a markdown editor by providing a preview pane in the sidebar
to show the formatting of several light-weight languages as they are edited.
Supported document types include AsciiDoc, DocBook, Fountain, HTML, LaTeX,
Markdown, MediaWiki, reStructuredText, Textile, and Txt2Tags.

%prep
%autosetup -p1

%build
#export DOCDIR=%%{_defaultdocdir}
meson setup build
meson compile -C build

%install
%make_install

mv -v "%{buildroot}%{_datadir}/doc/%{name}" _doc

%fdupes -s %{buildroot}

%files
%license License.md
%doc _doc/*
%{_libdir}/geany/preview.so
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.css

%changelog

openSUSE Build Service is sponsored by