File marker.spec of Package marker
#
# spec file for package marker
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: marker
Version: 2023.05.02
Release: 0
Summary: A gtk3 markdown editor
License: GPL-3.0-only
URL: https://fabiocolacio.github.io/Marker/
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: itstool
BuildRequires: fdupes
BuildRequires: pandoc
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtksourceview-3.0)
BuildRequires: pkgconfig(gtkspell3-3.0)
BuildRequires: pkgconfig(webkit2gtk-4.1)
Recommends: %{name}-lang
%description
Marker is a markdown editor for linux made with Gtk+-3.0.
%lang_package
%prep
%autosetup -p1
sed -i "s|Marker|marker|g" meson.build
sed -i "s|2020.04.04|2023.05.02|g" meson.build
%build
export CFLAGS="-Wno-error"
export CXXFLAGS="-Wno-error"
%meson
%meson_build
%install
%meson_install
%suse_update_desktop_file -r com.github.fabiocolacio.marker TextEditor
%find_lang %{name} %{?no_lang_C}
find README.md -type f -perm /111 -exec chmod 644 {} \;
find LICENSE.md -type f -perm /111 -exec chmod 644 {} \;
find %{buildroot}%{_datadir}/* -type f -perm /111 -exec chmod 644 {} \;
chmod +x %{buildroot}%{_datadir}/com.github.fabiocolacio.marker/icons/hicolor/generate.sh
%fdupes %{buildroot}%{_datadir}
%files
%license LICENSE.md
%doc README.md
%doc %{_datadir}/help/C/marker/
%{_bindir}/%{name}
%{_prefix}/lib/marker.extensions
%{_datadir}/com.github.fabiocolacio.marker
%{_datadir}/applications/com.github.fabiocolacio.marker.desktop
%{_datadir}/glib-2.0/schemas/com.github.fabiocolacio.marker.gschema.xml
%{_datadir}/metainfo/com.github.fabiocolacio.marker.appdata.xml
%{_datadir}/icons/hicolor/*/*/*.svg
%files lang -f %{name}.lang
%changelog