%global debug_package %{nil} Name: foliate Version: 2.6.4 Release: 6 Summary: A simple and modern GTK eBook reader Group: Office/Utilities License: GPLv3 URL: https://johnfactotum.github.io/foliate/ Source0: https://github.com/johnfactotum/foliate/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: gjs BuildRequires: meson BuildRequires: gettext BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(webkit2gtk-4.0) BuildRequires: pkgconfig(iso-codes) BuildRequires: xdg-dbus-proxy Requires: gjs Requires: typelib(WebKit2) = 4.0 # Needed for mobipocket (.mobi) and Kindle File Format (.azw, .azw3) Requires: python Requires: iso-codes # Optional for text-to-speech Recommends: espeak Recommends: gspell-i18n Recommends: noto-coloremoji-fonts %description A simple and modern GTK eBook viewer, built with GJS and Epub.js. %prep %setup -q 2to3 --write --nobackups --no-diffs src/assets/KindleUnpack/mobiml2xhtml.py sed -i -e '1s/python$/python3/' src/assets/KindleUnpack/*.py %autopatch -p1 %build %meson %meson_build %install %meson_install pushd %{buildroot}%{_bindir} ln -s com.github.johnfactotum.Foliate foliate popd %find_lang com.github.johnfactotum.Foliate %files -f com.github.johnfactotum.Foliate.lang %doc README.md COPYING %{_bindir}/foliate %{_bindir}/com.github.johnfactotum.Foliate %{_datadir}/applications/com.github.johnfactotum.Foliate.desktop %{_datadir}/com.github.johnfactotum.Foliate/* %{_datadir}/glib-2.0/schemas/com.github.johnfactotum.Foliate.gschema.xml %{_iconsdir}/hicolor/*/apps/com.github.johnfactotum.Foliate*.svg %{_datadir}/metainfo/com.github.johnfactotum.Foliate.metainfo.xml