File torbrowser-launcher.spec of Package torbrowser-launcher
#
# spec file for package torbrowser-launcher
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: torbrowser-launcher
Version: 0.2.9
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
Source: https://github.com/micahflee/%{name}/archive/v%{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
BuildRequires: apparmor-abstractions
BuildRequires: python-devel
BuildRequires: python-gtk
BuildRequires: python-psutil
BuildRequires: python-twisted
BuildRequires: update-desktop-files
BuildRequires: wmctrl
Requires: python-Parsley
Requires: python-gpg
Requires: python-gtk
Requires: python-psutil
Requires: python-pygame
Requires: python-pyliblzma
Requires: python-service_identity
Requires: python-twisted
Requires: python-txsocksx
Requires: wmctrl
Recommends: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Tor Browser Launcher is intended to make Tor Browser easier to
install and use for GNU/Linux users. You install
torbrowser-launcher from your distribution's package manager and
it handles everything else:
- Downloads and installs the most recent version of Tor Browser
in your language and for your computer's architecture, or
launches Tor Browser if it's already installed (Tor Browser
will automatically update itself)
- Certificate pins to https://www.torproject.org, so it doesn't
rely on certificate authorities
- Verifies Tor Browser's signature for you, to ensure the
version you downloaded was cryptographically signed by Tor
developers and was not tampered with
- Adds "Tor Browser" and "Tor Browser Launcher Settings"
application launcher to your desktop environment's menu
- Apparmor profile to limit effect of Tor network compromise
- Optionally plays a modem sound when you open Tor Browser
(because Tor is so slow).
%package -n torbrowser-apparmor-profile
Summary: Apparmor profile for Tor Browser
License: BSD-3-Clause
Group: Productivity/Security
Requires: apparmor-utils
%description -n torbrowser-apparmor-profile
This package provides the apparmor profiles to safeguard against
a Tor network compromise.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
python setup.py build
%install
python setup.py install --skip-build --root %{buildroot}
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/torbrowser.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/torbrowser-settings.desktop
%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
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
%doc LICENSE CHANGELOG.md README.md
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%if 0%{?suse_version} <= 1315
%dir %{_datadir}/metainfo
%endif
%{_datadir}/metainfo/torbrowser.appdata.xml
%{_datadir}/pixmaps/torbrowser*.png
%{_datadir}/%{name}/
%{python_sitelib}/torbrowser_launcher-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/torbrowser_launcher/
%files -n torbrowser-apparmor-profile
%defattr(-,root,root)
%doc apparmor/license.txt
%config %{_sysconfdir}/apparmor.d/torbrowser.*
%config %{_sysconfdir}/apparmor.d/local/torbrowser.*
%config %{_sysconfdir}/apparmor.d/tunables/torbrowser
%files lang -f %{name}.lang
%changelog