File frog-ocr.spec of Package frog-ocr
#
# spec file for package frog-ocr
#
# Copyright (c) 2023 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: frog-ocr
Version: 1.4.2
Release: 0
Summary: Intuitive text extraction tool (OCR) for GNOME
License: MIT
URL: https://github.com/TenderOwl/Frog
Source: %{url}/archive/%{version}/Frog-%{version}.tar.gz
BuildRequires: meson
BuildRequires: appstream-glib
BuildRequires: desktop-file-utils
BuildRequires: blueprint-compiler
BuildRequires: pkgconfig(lept)
BuildRequires: pkgconfig(libadwaita-1)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libportal)
Requires: python3-gobject
Requires: python3-pydbus
Requires: python3-pytesseract
Requires: python3-packaging
Requires: python3-pyzbar
Requires: python3-gTTS
BuildArch: noarch
%description
Extract text from images, websites, videos, and QR codes by taking a
picture of the source.
%lang_package
%prep
%autosetup -n Frog-%{version}
%build
%meson
%meson_build
%install
%meson_install
# Fix path to appdata
sed -i 's|/app/share/|/usr/share/|g' frog/language_manager.py
rm -rf %{buildroot}%{_datadir}/locale/zh_Hans/LC_MESSAGES/frog.mo
%find_lang frog %{?no_lang_C}
%files
%license COPYING LICENSE
%doc README.md
%{_bindir}/frog
%{python_sitelib}/frog
%{_datadir}/frog/
%{_datadir}/appdata/
%{_datadir}/applications/
%{_datadir}/glib-2.0/schemas/
%{_datadir}/icons/hicolor/scalable/apps/
%files lang -f frog.lang
%changelog