diff --git a/0001-Fix-strict-parameters-for-gui.move.patch b/0001-Fix-strict-parameters-for-gui.move.patch new file mode 100644 index 0000000..36c09e1 --- /dev/null +++ b/0001-Fix-strict-parameters-for-gui.move.patch @@ -0,0 +1,27 @@ +From fcfae4c766b57b6288fed9179cb127368c8a0c44 Mon Sep 17 00:00:00 2001 +From: Erik Johnson +Date: Sat, 4 Sep 2021 00:34:50 +0200 +Subject: [PATCH] Fix strict parameters for gui.move + +--- + torbrowser_launcher/__init__.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/torbrowser_launcher/__init__.py b/torbrowser_launcher/__init__.py +index bff3e8e..115fd4f 100644 +--- a/torbrowser_launcher/__init__.py ++++ b/torbrowser_launcher/__init__.py +@@ -90,8 +90,8 @@ def main(): + desktop = app.desktop() + window_size = gui.size() + gui.move( +- (desktop.width() - window_size.width()) / 2, +- (desktop.height() - window_size.height()) / 2, ++ (desktop.width() - window_size.width()) // 2, ++ (desktop.height() - window_size.height()) // 2, + ) + gui.show() + +-- +2.32.0 + diff --git a/torbrowser-launcher.spec b/torbrowser-launcher.spec index 158ad8a..c623dcc 100644 --- a/torbrowser-launcher.spec +++ b/torbrowser-launcher.spec @@ -1,11 +1,12 @@ %global oname torbrowser_launcher Name: torbrowser-launcher Version: 0.3.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tor Browser Bundle managing tool License: MIT URL: https://github.com/micahflee/torbrowser-launcher/ Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: 0001-Fix-strict-parameters-for-gui.move.patch BuildArch: noarch ExclusiveArch: %{ix86} x86_64 BuildRequires: desktop-file-utils @@ -39,6 +40,7 @@ from your distribution's package manager and it handles everything else: %prep %setup -q -n %{name}-%{version} +%patch0 -p1 # We need to specify the distro we are building on, Fedora! sed -i 's#distro = .*#distro = "Fedora"#g' setup.py @@ -85,6 +87,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml %changelog +* Sat Oct 02 2021 Ɓukasz Patron - 0.3.5-3 +- Add patch to fix startup with Python 3.10 + * Fri Jul 23 2021 Fedora Release Engineering - 0.3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild