15
0

Accepting request 901564 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/901564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/torbrowser-launcher?expand=0&rev=18
This commit is contained in:
2021-06-23 15:38:40 +00:00
committed by Git OBS Bridge
6 changed files with 48 additions and 23 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:58b17bd5a9a6f35fe78d83e69fdf77919ffa8c2492b1add1d47aed6237794f93
size 187239

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:783224924574410755b3fdedb24d3649deeb7bb8207b0acd6e00a66fdb284630
size 195096

View File

@@ -1,13 +0,0 @@
Index: torbrowser-launcher-0.3.3/setup.py
===================================================================
--- torbrowser-launcher-0.3.3.orig/setup.py
+++ torbrowser-launcher-0.3.3/setup.py
@@ -35,7 +35,7 @@ from distutils.core import setup
SHARE = "share"
# detect linux distribution
-distro = platform.dist()[0]
+distro = 'openSUSE'
def file_list(path):

View File

@@ -0,0 +1,23 @@
From 4baa4362ac15b5ef4dc71722f842739afc1c450c Mon Sep 17 00:00:00 2001
From: AsciiWolf <mail@asciiwolf.com>
Date: Sat, 19 Jun 2021 19:04:29 +0200
Subject: [PATCH] Fix pt_BR po file
---
po/pt_BR.po | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 735429d..f81f21b 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -145,7 +145,7 @@ msgid ""
"The version of Tor Browser you have installed is earlier than it should be, "
"which could be a sign of an attack!"
msgstr ""
-"A versão do Navegador Tor que você instalou é anterior ao que deveria ser,
+"A versão do Navegador Tor que você instalou é anterior ao que deveria ser, "
"o que poderia ser um sinal de ataque!"
#: launcher.py:446

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sat Jun 19 19:12:38 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 0.3.4:
* Ship with latest version of the Tor Browser Developers OpenPGP
public key.
* Add several translations.
* Various small bug fixes.
- Drop torbrowser-launcher-fix-distro-name.patch: distro name
detection fixed upstream, thus hack no longer needed.
- Add torbrowser-launcher-pt_BR-po-file-end-string.patch: Fix
missing quotation marks at the end of str line in pt_BR
translation file; patch taken from upstream merge request
[gh#micahflee/torbrowser-launcher#579].
-------------------------------------------------------------------
Wed Oct 7 12:14:53 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package torbrowser-launcher
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,20 +17,21 @@
Name: torbrowser-launcher
Version: 0.3.3
Version: 0.3.4
Release: 0
Summary: Tool for launching and easy-updates of Tor Browser
License: MIT
Group: Productivity/Networking/Web/Utilities
URL: https://github.com/micahflee/torbrowser-launcher
Source0: https://github.com/micahflee/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FEATURE-OPENSUSE pythontorbrowser-launcher-fix-distro-name.patch badshah400@gmail.com -- Use the correct distribution name (the setup.py code gives "SuSE" instead of "openSUSE")
Patch0: torbrowser-launcher-fix-distro-name.patch
# PATCH-FIX-UPSTREAM torbrowser-launcher-pt_BR-po-file-end-string.patch gh#micahflee/torbrowser-launcher#579 badshah400@gmail.com -- Fix missing quotation marks at the end of str line in pt_BR translation file; patch taken from upstream merge request
Patch0: torbrowser-launcher-pt_BR-po-file-end-string.patch
BuildRequires: apparmor-abstractions
BuildRequires: gpg2
BuildRequires: hicolor-icon-theme
BuildRequires: python3-PySocks
BuildRequires: python3-devel
BuildRequires: python3-distro
BuildRequires: python3-gpg
BuildRequires: python3-packaging
BuildRequires: python3-qt5
@@ -39,6 +40,7 @@ Requires: gpg2
Requires: hicolor-icon-theme
Requires: python3-Parsley
Requires: python3-PySocks
Requires: python3-distro
Requires: python3-gpg
Requires: python3-packaging
Requires: python3-qt5
@@ -79,6 +81,7 @@ This package provides the apparmor profiles to safeguard against
a Tor network compromise.
%lang_package
%prep
%autosetup -p1
@@ -93,9 +96,6 @@ python3 setup.py install --skip-build --root %{buildroot}
%find_lang %{name} %{?no_lang_C}
# REMOVE USELESS TOPLEVEL .mo FILE
rm -fr %{buildroot}%{_datadir}/locale/%{name}.mo
%if 0%{?suse_version} < 1500
%post
%desktop_database_post