Blob Blame History Raw
%global         uuid com.github.gi_lom.dialect
%global         forgeurl0 https://github.com/dialect-app/dialect
%global         forgeurl1 https://github.com/dialect-app/po

Name:           dialect
Version:        1.4.1
Release:        3%{?dist}
Summary:        A translation app for GNOME based on Google Translate

%global         tag0 %{version}
%global         tag1 %{version}
%forgemeta -a

License:        GPLv3+
URL:            %{forgeurl}
Source0:        %{forgesource0}
Source1:        %{forgesource1}

BuildArch:      noarch

BuildRequires:  meson
BuildRequires:  desktop-file-utils
BuildRequires:  libappstream-glib
BuildRequires:  gstreamer1-devel
BuildRequires:  gtk3-devel
BuildRequires:  libhandy1-devel
BuildRequires:  python3-devel
BuildRequires:  python3-gobject-devel

Requires:       hicolor-icon-theme
Requires:       gstreamer1-plugins-base
Requires:       gtk3
Requires:       libhandy1
Requires:       python3-gobject
Requires:       python3dist(dbus-python)
Requires:       python3dist(googletrans)
Requires:       python3dist(gtts)
Requires:       python3dist(httpx)

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

Features:
* Text translation up to 5000 chars
* Text to speech
* History
* Automatic language detection
* Clipboard buttons


%prep
%forgesetup -z 0
gzip -dc %{SOURCE1} | tar -xof -
rmdir po
mv po-%{tag1} po


%build
%meson
%meson_build


%install
%meson_install

%find_lang %{name}


%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{uuid}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{uuid}.metainfo.xml


%files -f %{name}.lang
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{uuid}.desktop
%{_datadir}/%{name}
%{_datadir}/dbus-1/services/%{uuid}.SearchProvider.service
%{_datadir}/glib-2.0/schemas/%{uuid}.gschema.xml
%{_datadir}/gnome-shell/search-providers/%{uuid}.SearchProvider.ini
%{_datadir}/icons/hicolor/scalable/apps/%{uuid}*.svg
%{_metainfodir}/%{uuid}.metainfo.xml


%changelog
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Wed Oct 20 2021 Lyes Saadi <fedora@lyes.eu> - 1.4.1-1
- Updating to 1.4.1

* Tue Oct 19 2021 Lyes Saadi <fedora@lyes.eu> - 1.4.0-1
- Updating to 1.4.0 (Fix #2015384)

* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Wed Jul 07 2021 Lyes Saadi <fedora@lyes.eu> - 1.3.0-3
- Fixing the search_provider with libretranslate backend (Fix #1961802)

* Tue Jul 06 2021 Gustavo Costa <xfgusta@fedoraproject.org> - 1.3.0-2
- Remove unnecessary dependencies

* Sat May 08 2021 Lyes Saadi <fedora@lyes.eu> - 1.3.0-1
- Updating to 1.3.0 (Fix #1958511)

* Fri Mar 19 2021 Lyes Saadi <fedora@lyes.eu> - 1.2.0-1
- Updating to 1.2.0 (Fix #1936578)

* Sat Feb 20 2021 Lyes Saadi <fedora@lyes.eu> - 1.1.1-5
- Fixing Dialect's error messages by using the translate_legacy function

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Mon Dec 14 2020 Lyes Saadi <fedora@lyes.eu> - 1.1.1-1
- Updating to 1.1.1 (Fix #1905428)

* Mon Nov 02 2020 Lyes Saadi <fedora@lyes.eu> - 1.1.0-3
- Adding python3-dbus as a dependency

* Sun Nov 01 2020 Lyes Saadi <fedora@lyes.eu> - 1.1.0-2
- Adding some unpackaged files

* Sun Nov 01 2020 Lyes Saadi <fedora@lyes.eu> - 1.1.0-1
- Updating to 1.1.0 (Fix #1893399)

* Thu Oct 15 2020 Lyes Saadi <fedora@lyes.eu> - 1.0.0-1
- Initial package