%global appname org.gnome.gitlab.somas.Apostrophe Name: apostrophe Version: 2.2.0.3 Release: 2%{?dist} Summary: Distraction free Markdown editor for GNU/Linux made with GTK+ # Entire source code is GPLv3+ except: # * GPLv2: help/stump/ # * LGPLv2.1: apostrophe/plugins/bibtex/gi_composites.py # * MIT: apostrophe/latex_to_PNG.py # apostrophe/plugins/bibtex/fuzzywuzzy/ License: GPLv3+ and GPLv2 and LGPLv2.1 and MIT URL: https://gitlab.gnome.org/somas/apostrophe Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz Patch0: compat-with-old-pandoc.patch BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: intltool BuildRequires: libappstream-glib BuildRequires: meson >= 0.50.0 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gtk+-3.0) Recommends: gspell Requires: hicolor-icon-theme Requires: python3-cairo Requires: python3-enchant Requires: python3-Levenshtein Requires: python3-pypandoc Requires: python3-regex %description Apostrophe is a GTK+ based distraction free Markdown editor, mainly developed by Wolf Vollprecht and Manuel Genovés. It uses pandoc as backend for markdown parsing and offers a very clean and sleek user interface. %prep %autosetup -n %{name}-v%{version} -p1 # W: hidden-file-or-dir rm apostrophe/.pylintrc # E: non-executable-script for lib in %{name}/plugins/bibtex/{bibtexparser,fuzzywuzzy}/*.py; do sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done %build %meson %meson_build %install %meson_install %find_lang %{name} %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml desktop-file-validate %{buildroot}%{_datadir}/applications/%{appname}.desktop %files -f %{name}.lang %license LICENSE %doc README.md AUTHORS markdown_test.md %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/*.desktop %{_datadir}/glib-2.0/schemas/*.gschema.xml %{_datadir}/icons/hicolor/*/*/*.svg %{_metainfodir}/*.xml %{python3_sitelib}/%{name}/ %changelog * Fri May 08 2020 Artem Polishchuk - 2.2.0.3-2 - Add patch for compatibility with old pandoc | Thanks to @suve * Mon May 04 2020 Artem Polishchuk - 2.2.0.3-1 - Update to 2.2.0.3 * Thu Apr 23 2020 Artem Polishchuk - 2.2.0.2-2 - Add few recommended deps * Mon Apr 20 2020 Artem Polishchuk - 2.2.0.2-1 - Update to 2.2.0.2 * Mon Apr 20 2020 Artem Polishchuk - 2.2.0.1-3 - Update to 2.2.0.1 - Ported to Meson and renamed to Apostrophe now * Tue Jul 30 2019 Artem Polishchuk - 2.1.5-4 - Initial package