d3155ee
%global		oname torbrowser_launcher
d3155ee
Name:		torbrowser-launcher
2f02e4f
Version:	0.3.6
2f02e4f
Release:	1%{?dist}
d3155ee
Summary:	Tor Browser Bundle managing tool
d3155ee
License:	MIT
2ca10d0
URL:		https://github.com/micahflee/torbrowser-launcher/
2ca10d0
Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz
d3155ee
BuildArch:	noarch
0cb58df
ExclusiveArch: %{ix86} x86_64
d3155ee
BuildRequires:	desktop-file-utils
aae8bd3
BuildRequires:	python3-devel
ea1545d
BuildRequires:	gettext
fc74e10
BuildRequires:	libappstream-glib
6ad4876
BuildRequires:  python3-distro
aae8bd3
Requires:	python3
aae8bd3
Requires:	gnupg2
aae8bd3
Requires:	tor
aae8bd3
Requires:	python3-pysocks
aae8bd3
Requires:	python3-gpg
aae8bd3
Requires:	python3-qt5
aae8bd3
Requires:	python3-requests
3eabb5b
Requires:       python3-packaging
d3155ee
d3155ee
%description
2f5b2c8
Tor Browser Launcher is intended to make Tor Browser easier to
2f5b2c8
install and use for GNU/Linux users. You install torbrowser-launcher
2f5b2c8
from your distribution's package manager and it handles everything else:
d3155ee
2f5b2c8
* Downloads and installs the most recent version of Tor Browser in your language
2f5b2c8
  and for your computer's architecture, or launches Tor Browser if it's already
2f5b2c8
  installed (Tor Browser will automatically update itself)
2f5b2c8
* Verifies Tor Browser's signature for you, to ensure the version you downloaded
2f5b2c8
  was cryptographically signed by Tor developers and was not tampered with
2f5b2c8
* Adds "Tor Browser" and "Tor Browser Launcher Settings" application launcher
2f5b2c8
  to your desktop environment's menu
2f5b2c8
* Optionally plays a modem sound when you open Tor Browser
2f5b2c8
  (because Tor is so slow)
d3155ee
d3155ee
%prep
2ca10d0
%setup -q -n %{name}-%{version}
d3155ee
d3155ee
# We need to specify the distro we are building on, Fedora!
d3155ee
sed -i 's#distro = .*#distro = "Fedora"#g' setup.py
d3155ee
sed -i 's/Ubuntu/Fedora/g' setup.py
5933689
sed -i "s#'update_over_tor': True#'update_over_tor': False#g" torbrowser_launcher/common.py
5933689
sed -i -r "s/^([ \t]+)self.label1 = gtk.Label\(_\('Not installed'\)\)/\
5933689
\1self.label1 = gtk.Label\(_\('Not installed'\)\)\n\1self.tor_update_checkbox.\
5933689
set_active\(False\)/g" torbrowser_launcher/settings.py
d3155ee
d3155ee
%build
32600a7
%py3_build
385cffc
desktop-file-validate share/applications/torbrowser.desktop
385cffc
desktop-file-validate share/applications/torbrowser-settings.desktop
d3155ee
d3155ee
%install
d3155ee
find . -name apparmor -type d -print0|xargs -0 rm -r --
36af9c4
%{__python3} setup.py install --skip-build --root %{buildroot} --prefix=%{_prefix} --install-data=%{_prefix}
8fb3135
install -m 644 -D share/metainfo/*.appdata.xml \
32afafe
    %{buildroot}%{_datadir}/appdata/torbrowser-launcher.appdata.xml
fc74e10
548a08d
if [ "%{_prefix}" != "/usr" ]; then
548a08d
  cp -ru %{buildroot}/usr/* %{buildroot}%{_prefix}/
548a08d
  rm -rf %{buildroot}/usr/*
11c6404
#  sed -i 's|\/usr|\${_prefix}|g' torbrowser-launcher.lang
b59b4fd
fi
b59b4fd
11c6404
%find_lang %{name}
11c6404
11c6404
fc74e10
%check
def1fda
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
d3155ee
ea1545d
%files -f %{name}.lang
d3155ee
%{_bindir}/%{name}
df8637b
%doc README.md
df8637b
%license LICENSE
d3155ee
%{_datadir}/applications/*
2c14e1a
%{_datadir}/appdata/*
f17a8c2
%{_datadir}/icons/hicolor/128x128/apps/torbrowser.png
d3155ee
%{_datadir}/%{name}/*
def1fda
%{python3_sitelib}/%{oname}-%{version}-py%{python3_version}.egg-info
aae8bd3
%{python3_sitelib}/%{oname}/*
def1fda
%{_metainfodir}/torbrowser.appdata.xml
eed7781
d3155ee
d3155ee
%changelog
2f02e4f
* Wed Dec 14 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.3.6-1
2f02e4f
- 0.3.6
2f02e4f
4c4e5f3
* Mon Dec 12 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.3.5-7
4c4e5f3
- URL patch
4c4e5f3
d578236
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-6
d578236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
d578236
8c90b57
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.3.5-5
8c90b57
- Rebuilt for Python 3.11
8c90b57
bf1085f
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-4
bf1085f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
bf1085f
e3adea2
* Sat Oct 02 2021 Łukasz Patron <priv.luk@gmail.com> - 0.3.5-3
e3adea2
- Add patch to fix startup with Python 3.10
e3adea2
b3a2ba0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-2
b3a2ba0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b3a2ba0
2ca10d0
* Mon Jun 21 2021 Gwyn Ciesla <gwync@protonmail.com> - 0.3.5-1
2ca10d0
- 0.3.5
2ca10d0
eeba450
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3.3-4
eeba450
- Rebuilt for Python 3.10
eeba450
e5b1055
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-3
e5b1055
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e5b1055
3eabb5b
* Thu Oct 08 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.3.3-2
3eabb5b
- Require python3-packaging
3eabb5b
f17a8c2
* Wed Oct 07 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.3.3-1
f17a8c2
- 0.3.3
f17a8c2
1e93bc1
* Wed Sep 23 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-17
1e93bc1
- Fix version comparison.
1e93bc1
68430b8
* Tue Sep 08 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-16
68430b8
- Update upstream key.
68430b8
8f918d7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-15
8f918d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8f918d7
afeda02
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-14
afeda02
- Rebuilt for Python 3.9
afeda02
0cb58df
* Tue Apr 28 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-13
0cb58df
- Make intel-only, to match torbrowser builds available.
0cb58df
39bf3ee
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-12
39bf3ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
39bf3ee
acfba87
* Sun Oct 27 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-11
acfba87
- Correct two appdata tags.
acfba87
def1fda
* Wed Oct 09 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-10
def1fda
- Fix appdata.
def1fda
5e1d9e2
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-9
5e1d9e2
- Rebuilt for Python 3.8.0rc1 (#1748018)
5e1d9e2
9d5f143
* Thu Sep 05 2019 Bhavin Gandhi <bhavin7392@gmail.com> - 0.3.2-8
9d5f143
- Use correct commit id of v0.3.2
9d5f143
3cf8903
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.2-7
3cf8903
- Rebuilt for Python 3.8
3cf8903
df8637b
* Thu Jul 25 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-6
df8637b
- Patch setup to honor prefix.
df8637b
966e8be
* Thu Jul 25 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-5
966e8be
- Appdata fix.
966e8be
e885fdb
* Thu Jul 25 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-4
e885fdb
- Create appdata dir.
e885fdb
385cffc
* Thu Jul 25 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-3
385cffc
- Validate desktop files in build.
385cffc
eed7781
* Thu Jul 25 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-2
eed7781
- Cleanup.
eed7781
d45e97a
* Wed Jul 24 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.2-1
d45e97a
- 0.3.2
d45e97a
32afafe
* Mon Apr 29 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.1-7
32afafe
- Fix appdata filename.
32afafe
aae8bd3
* Fri Mar 08 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.3.1-6
aae8bd3
- Switch to python3
aae8bd3
85920ee
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-5
85920ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
85920ee
28332bc
* Tue Jan 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-4
28332bc
- Require python2 variants of packages explicitly.
28332bc
195560e
* Wed Jan 09 2019 Gwyn Ciesla <limburgher@gmail.com> - 0.3.1-3
195560e
- Require python2-requests.
195560e
8a39d01
* Tue Jan 08 2019 Gwyn Ciesla <limburgher@gmail.com> - 0.3.1-2
8a39d01
- Fix dependencies.
8a39d01
907a1ec
* Wed Dec 26 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.3.1-1
907a1ec
- 0.3.1
907a1ec
0fe39a7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-3
0fe39a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0fe39a7
6121c9a
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.2.9-2
6121c9a
- Update Python 2 dependency declarations to new packaging standards
6121c9a
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
6121c9a
fc74e10
* Tue Feb 13 2018 Robert Mayr <robyduck@fedoraoproject.org> 0.2.9-1
fc74e10
- Updated AppStream metadata
fc74e10
- Add appdata check
d85cb59
507aec3
* Mon Aug 07 2017 Robert Mayr <robyduck@fedoraoproject.org> 0.2.8-1
507aec3
- Automatically refresh GPG keyring, to prevent signature verification false positives
507aec3
- Improve GnuPG code by using GPGME if available
507aec3
- Added Czech, Hungarian localization
cc499b0
ea1545d
* Fri Feb 03 2017 Robert Mayr <robyduck@fedoraoproject.org> 0.2.7-1
ea1545d
- Updated Tor Browser signing key because they added a new subkey and verification was failing
ea1545d
- Improved localization, and added Russian
ea1545d
780da26
* Thu Aug 11 2016 Robert Mayr <robyduck@fedoraoproject.org> 0.2.6-1
780da26
- Fix issue where Tor Browser Launcher failed to launch if currently installed version
780da26
  of Tor Browser was too old
780da26
- Fixed bug related to fallback to English feature that caused Settings to crash
780da26
5793576
* Mon Mar 14 2016 Robert Mayr <robyduck@fedoraoproject.org> 0.2.4-1
5793576
- Fix signature verification bypass attack, reported by Jann Horn
5793576
2f5b2c8
* Sat Mar 05 2016 Robert Mayr <robyduck@fedoraoproject.org> 0.2.3-1
2f5b2c8
- Removed certificate pinning to https://www.torproject.org to avoid issues with upcoming
2f5b2c8
  certificate change, and hard-coded minimum Tor Browser version in the release
2f5b2c8
- Fix issue with detecting language
2f5b2c8
- Make Tor SOCKS5 proxy configurable, for users not running on 9050
2f5b2c8
- Added translations
2f5b2c8
- Switched from xpm icons to png icons
2f5b2c8
- Changed "Exit" button to "Cancel" button
2f5b2c8
- New package description
07fb880
ba9c6e6
* Sat Nov 14 2015 Robert Mayr <robyduck@fedoraoproject.org> 0.2.2-1
ba9c6e6
- Torbrowser Launcher no longer attempts to auto-update, now that Tor Browser has this feature
ba9c6e6
- System Tor is now an optional dependency
ba9c6e6
- Fix issue where downloads fail because of unicode URLs
ba9c6e6
- Removed window management code that stopped working many releases ago, and removed wmctrl dependency
ba9c6e6
- Removed test code that caused signature verification to happen at the wrong time
ba9c6e6
5933689
* Sat Nov 07 2015 Robert Mayr <robyduck@fedoraoproject.org> 0.2.1-1
5933689
- Stop using RecommendedTBBVersions and start using more reliable "release" channel XML
5933689
- Converted settings file from pickle format to JSON
5933689
- Download tarball signatures to verify, rather than SHA256SUMS and signature
5933689
ba82ba4
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
ba82ba4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ba82ba4
d50b3f4
* Sat May 30 2015 Robert Mayr <robyduck@fedoraoproject.org> 0.2.0-1
d50b3f4
- bump release to version 0.2.0
d50b3f4
- no need to set active flags in settings
d50b3f4
- Added better support for updating over Tor
d50b3f4
- Print less console output
d50b3f4
e358a46
* Mon Mar 02 2015 Robert Mayr <robyduck@fedoraoproject.org> 0.1.9-2
e358a46
- bump release to version 0.1.9
e358a46
- fix bug when firefox browser is already open
e358a46
- don't check for updates at first install
e358a46
2c14e1a
* Wed Feb 25 2015 Robert Mayr <robyduck@fedoraoproject.org> 0.1.8-1
2c14e1a
- downgrade to latest working version and fix minor bugs
2c14e1a
- Import new TBB GPG keys for download
2c14e1a
- fix insane spec file and changelog
2c14e1a
f560bfe
* Sat Jan 24 2015 Robert Mayr <robyduck@fedoraoproject.org> 0.1.9-1
f560bfe
- fix required txsocksx and service-identity
f560bfe
- bump to last version available
ae44bb0
2c14e1a
* Wed Nov 26 2014 Robert Mayr <robyduck@fedoraoproject.org> 0.1.7-1
2c14e1a
- Fixes bug #1167576
2c14e1a
- You can now pass URLs into TBL, and set it as your default browser
2c14e1a
- Hides TBL window before launching TBB
2c14e1a
- Default mirror switched to https://dist.torproject.org/
2c14e1a
- Added AppData file to look better in software centers
2c14e1a
- Exclude AppArmor profiles in Ubuntu, where they're broken
2c14e1a
2c14e1a
* Thu Nov 06 2014 Robert Mayr <robyduck@fedoraoproject.org> 0.1.6-3
2c14e1a
- Fix broken dependencies bug
2c14e1a
d3155ee
* Sat Oct 18 2014 Robert Mayr <robyduck@fedoraoproject.org> 0.1.6-2
d3155ee
- Remove shortcommit from spec file
d3155ee
d3155ee
* Thu Oct 16 2014 Robert Mayr <robyduck@fedoraoproject.org> 0.1.6-1
d3155ee
- Fixed bug related to TBB 4.0's new folder structure
d3155ee
- Updated .desktop files to comply with standards
d3155ee
- Updated licensing confusion to just be MIT in all locations
d3155ee
d3155ee
* Sun Oct 12 2014 Robert Mayr <robyduck@fedoraoproject.org> 0.1.5-3
d3155ee
- Remove apparmor and bump release
d3155ee
d3155ee
* Sat Oct 11 2014 Robert Mayr <robyduck@fedoraoproject.org> 0.1.5-2
d3155ee
- License fix and Source URL commit
d3155ee
d3155ee
* Fri Oct 10 2014 Robert Mayr <robyduck@fedoraoproject.org> 0.1.5-1
9d5f143
- Initial package for Fedora