File dialect.spec of Package dialect

#
# spec file for package dialect
#
# Copyright (c) 2020 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:           dialect
Version:        2.3.0
Release:        0
Summary:        A translation app for GTK on Google Translate
License:        GPL-3.0-or-later
URL:            https://github.com/gi-lom/dialect
Source:         %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(pygobject-3.0)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(libadwaita-1)
BuildRequires:  pkgconfig(libsoup-3.0)
BuildRequires:  pkgconfig(blueprint-compiler)
BuildRequires:  python3-gobject-devel
BuildRequires:  desktop-file-utils
Requires:       python3-googletranslate
Requires:       python3-httpx
Requires:       python3-httpcore
Requires:       python3-langdetect
Requires:       python3-gTTS
Requires:       python3-beautifulsoup4
BuildArch:      noarch

%description
A translation app for GNOME based on Google Translate.

%lang_package

%prep
%autosetup
find dialect/main.py -type f -executable -exec chmod -x {} \+

%build
%meson
%meson_build

%install
%meson_install
%fdupes %{buildroot}%{_prefix}
%find_lang %{name}
%find_lang %{name}-cldr-langs

%check
%meson_test

%files
%license LICENSE
%doc README.md
%{_bindir}/dialect
%{_datadir}/applications/*.desktop
%{_datadir}/dialect/
%{_datadir}/dbus-1/services/*.service
%{_datadir}/gnome-shell
%{_datadir}/gnome-shell/search-providers/*.ini
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/metainfo/*.metainfo.xml
%{_datadir}/icons/hicolor
%{_datadir}/icons/hicolor/*/*/*.svg

%files lang -f %{name}.lang
%files lang -f %{name}-cldr-langs.lang

%changelog
openSUSE Build Service is sponsored by