2018-12-10 12:44:34 +00:00
|
|
|
#
|
2024-01-30 09:28:50 +00:00
|
|
|
# spec file for package python-onionshare
|
2018-12-10 12:44:34 +00:00
|
|
|
#
|
Accepting request 1248926 from home:DocB:branches:devel:languages:python
- version 2.9.3
* relax-async-mode.patch removed (in source)
* Feature: It is now possible to view what URLs are visited in Share/Website mode using the CLI tool, with --log-filenames.
* Feature: It is now possible to automatically start a saved persistent onion tab, once OnionShare itself starts and once Tor is connected.
* Bug fix: It is now once again possible to request bridges and use meek as a Pluggable Transport.
* Bug fix: Fixed a fatal error with Censorship Circumvention when no bridges are returned.
* Bug fix: Fixed an issue with lack of gevent with SocketIO on systems that don't have it.
* Bug fix: Fixed a thread-related race condition segfault with the CLI tool on shutdown.
* Bug fix: Fixed an issue with the 'auto-stop timer' when the CLI tool is being used in 'Share mode' and someone has visited the share at least once. Desktop was unaffected, as were all other modes.
* Locales: Gaeilge, Slovenčina and Tamil languages introduced, and various other translations in existing languages added or improved (thanks to the translators!)
* Documentation: Added examples of using a systemd unit file for persistent onions, and various other clarifications.
* Documentation: Documented all the config file parameters and what they mean, as well as that for persistent onion json files.
* Packaging: Built the snap with a cleanup step in such a way that it should work on Ubuntu 24.04 and higher. Unfortunately, we have to drop support for armhf for now, as there are no PySide6 packages available on Pypi to install for that architecture. However, ARM64 is supported.
* Packaging: Fixed ARM64 packaging for Flatpak.
* Packaging: Many internal packaging improvements that make it easier for us to release snap and flatpak.
* Miscellaneous: Many dependency updates to Python libraries, Tor, Snowflake
* Miscellaneous: Various minor bug fixes/warning messages resolved, and minor changes to some wording for the 'Save this tab' option to make it clearer that this means 'persistent onion address'.
* Miscellaneous: Nicer and more intuitive icons with better dark mode support.
OBS-URL: https://build.opensuse.org/request/show/1248926
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-onionshare?expand=0&rev=56
2025-03-03 10:15:12 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
|
# Copyright (c) 2018-2025 Dr. Axel Braun
|
2018-12-10 12:44:34 +00:00
|
|
|
#
|
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2024-01-30 09:28:50 +00:00
|
|
|
# Always only build one flavor
|
|
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
|
%define pythons python3
|
|
|
|
|
%else
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
%endif
|
|
|
|
|
%global mypython %pythons
|
|
|
|
|
%global mysitelib %{expand:%%{%{mypython}_sitelib}}
|
|
|
|
|
%define plainpython python
|
|
|
|
|
|
|
|
|
|
Name: python-onionshare
|
Accepting request 1248926 from home:DocB:branches:devel:languages:python
- version 2.9.3
* relax-async-mode.patch removed (in source)
* Feature: It is now possible to view what URLs are visited in Share/Website mode using the CLI tool, with --log-filenames.
* Feature: It is now possible to automatically start a saved persistent onion tab, once OnionShare itself starts and once Tor is connected.
* Bug fix: It is now once again possible to request bridges and use meek as a Pluggable Transport.
* Bug fix: Fixed a fatal error with Censorship Circumvention when no bridges are returned.
* Bug fix: Fixed an issue with lack of gevent with SocketIO on systems that don't have it.
* Bug fix: Fixed a thread-related race condition segfault with the CLI tool on shutdown.
* Bug fix: Fixed an issue with the 'auto-stop timer' when the CLI tool is being used in 'Share mode' and someone has visited the share at least once. Desktop was unaffected, as were all other modes.
* Locales: Gaeilge, Slovenčina and Tamil languages introduced, and various other translations in existing languages added or improved (thanks to the translators!)
* Documentation: Added examples of using a systemd unit file for persistent onions, and various other clarifications.
* Documentation: Documented all the config file parameters and what they mean, as well as that for persistent onion json files.
* Packaging: Built the snap with a cleanup step in such a way that it should work on Ubuntu 24.04 and higher. Unfortunately, we have to drop support for armhf for now, as there are no PySide6 packages available on Pypi to install for that architecture. However, ARM64 is supported.
* Packaging: Fixed ARM64 packaging for Flatpak.
* Packaging: Many internal packaging improvements that make it easier for us to release snap and flatpak.
* Miscellaneous: Many dependency updates to Python libraries, Tor, Snowflake
* Miscellaneous: Various minor bug fixes/warning messages resolved, and minor changes to some wording for the 'Save this tab' option to make it clearer that this means 'persistent onion address'.
* Miscellaneous: Nicer and more intuitive icons with better dark mode support.
OBS-URL: https://build.opensuse.org/request/show/1248926
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-onionshare?expand=0&rev=56
2025-03-03 10:15:12 +00:00
|
|
|
Version: 2.6.3
|
2018-12-10 12:44:34 +00:00
|
|
|
Release: 0
|
2018-12-13 06:24:00 +00:00
|
|
|
Summary: Self-hosting Tor Onion Service based file sharing
|
2018-12-10 12:44:34 +00:00
|
|
|
License: GPL-3.0-or-later
|
2021-06-06 13:14:41 +00:00
|
|
|
Group: Productivity/Networking/File-Sharing
|
2022-02-25 06:44:57 +00:00
|
|
|
URL: https://github.com/onionshare/onionshare
|
2024-01-30 09:28:50 +00:00
|
|
|
Source0: https://github.com/onionshare/onionshare/archive/v%{version}.tar.gz#/onionshare-%{version}.tar.gz
|
|
|
|
|
Source99: python-onionshare.rpmlintrc
|
2021-08-22 06:15:41 +00:00
|
|
|
# PATCH-FIX-OPENSUSE skip test_large_download in gui tests
|
2021-06-08 12:09:10 +00:00
|
|
|
Patch0: 0001-adjust_tests.diff
|
Accepting request 1248926 from home:DocB:branches:devel:languages:python
- version 2.9.3
* relax-async-mode.patch removed (in source)
* Feature: It is now possible to view what URLs are visited in Share/Website mode using the CLI tool, with --log-filenames.
* Feature: It is now possible to automatically start a saved persistent onion tab, once OnionShare itself starts and once Tor is connected.
* Bug fix: It is now once again possible to request bridges and use meek as a Pluggable Transport.
* Bug fix: Fixed a fatal error with Censorship Circumvention when no bridges are returned.
* Bug fix: Fixed an issue with lack of gevent with SocketIO on systems that don't have it.
* Bug fix: Fixed a thread-related race condition segfault with the CLI tool on shutdown.
* Bug fix: Fixed an issue with the 'auto-stop timer' when the CLI tool is being used in 'Share mode' and someone has visited the share at least once. Desktop was unaffected, as were all other modes.
* Locales: Gaeilge, Slovenčina and Tamil languages introduced, and various other translations in existing languages added or improved (thanks to the translators!)
* Documentation: Added examples of using a systemd unit file for persistent onions, and various other clarifications.
* Documentation: Documented all the config file parameters and what they mean, as well as that for persistent onion json files.
* Packaging: Built the snap with a cleanup step in such a way that it should work on Ubuntu 24.04 and higher. Unfortunately, we have to drop support for armhf for now, as there are no PySide6 packages available on Pypi to install for that architecture. However, ARM64 is supported.
* Packaging: Fixed ARM64 packaging for Flatpak.
* Packaging: Many internal packaging improvements that make it easier for us to release snap and flatpak.
* Miscellaneous: Many dependency updates to Python libraries, Tor, Snowflake
* Miscellaneous: Various minor bug fixes/warning messages resolved, and minor changes to some wording for the 'Save this tab' option to make it clearer that this means 'persistent onion address'.
* Miscellaneous: Nicer and more intuitive icons with better dark mode support.
OBS-URL: https://build.opensuse.org/request/show/1248926
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-onionshare?expand=0&rev=56
2025-03-03 10:15:12 +00:00
|
|
|
|
2024-03-04 17:25:50 +00:00
|
|
|
BuildRequires: %{mypython}-devel >= 3.8
|
2024-01-30 09:28:50 +00:00
|
|
|
BuildRequires: %{mypython}-pip
|
|
|
|
|
BuildRequires: %{mypython}-setuptools
|
|
|
|
|
BuildRequires: %{mypython}-wheel
|
2018-12-10 12:44:34 +00:00
|
|
|
BuildRequires: fdupes
|
2022-02-25 06:44:57 +00:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2018-12-10 12:44:34 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-01-30 09:28:50 +00:00
|
|
|
|
|
|
|
|
BuildRequires: %{mypython}-poetry-core
|
2023-11-23 14:28:36 +00:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
|
# SECTION test
|
2024-01-30 09:28:50 +00:00
|
|
|
BuildRequires: %{mypython}-pytest
|
|
|
|
|
BuildRequires: %{mypython}-pytest-qt
|
|
|
|
|
BuildRequires: %{mypython}-pytest-xvfb
|
2023-11-23 14:28:36 +00:00
|
|
|
# /SECTION
|
|
|
|
|
# SECTION runtime test
|
2024-03-04 17:25:50 +00:00
|
|
|
BuildRequires: %{mypython}-Cython >= 3.0.2
|
2024-01-30 09:28:50 +00:00
|
|
|
BuildRequires: %{mypython}-Flask >= 2.3.2
|
|
|
|
|
BuildRequires: %{mypython}-Flask-Compress >= 1.13
|
2024-02-29 12:47:45 +00:00
|
|
|
BuildRequires: %{mypython}-Flask-SocketIO >= 5.3.4
|
2024-01-30 09:28:50 +00:00
|
|
|
BuildRequires: %{mypython}-PyNaCl
|
|
|
|
|
BuildRequires: %{mypython}-PySocks
|
|
|
|
|
BuildRequires: %{mypython}-Unidecode
|
|
|
|
|
BuildRequires: %{mypython}-Werkzeug >= 2.3.4
|
|
|
|
|
BuildRequires: %{mypython}-cepa
|
|
|
|
|
BuildRequires: %{mypython}-click
|
|
|
|
|
BuildRequires: %{mypython}-colorama
|
|
|
|
|
BuildRequires: %{mypython}-eventlet
|
2024-03-04 17:25:50 +00:00
|
|
|
BuildRequires: %{mypython}-gevent >= 23.9.1
|
2024-01-30 09:28:50 +00:00
|
|
|
BuildRequires: %{mypython}-gevent-websocket
|
2024-03-04 17:25:50 +00:00
|
|
|
BuildRequires: %{mypython}-packaging >= 23.1
|
2024-01-30 09:28:50 +00:00
|
|
|
BuildRequires: %{mypython}-psutil
|
2024-02-29 12:47:45 +00:00
|
|
|
BuildRequires: %{mypython}-pyside6 >= 6.5.2
|
2024-01-30 09:28:50 +00:00
|
|
|
BuildRequires: %{mypython}-python-gnupg
|
|
|
|
|
BuildRequires: %{mypython}-qrcode
|
|
|
|
|
BuildRequires: %{mypython}-requests
|
|
|
|
|
BuildRequires: %{mypython}-urllib3
|
|
|
|
|
BuildRequires: %{mypython}-waitress >= 2.1.2
|
2021-06-06 13:14:41 +00:00
|
|
|
BuildRequires: tor
|
2023-11-23 14:28:36 +00:00
|
|
|
# /SECTION
|
2024-03-04 17:25:50 +00:00
|
|
|
Requires: python-Cython >= 3.0.2
|
2024-01-30 09:28:50 +00:00
|
|
|
Requires: python-Flask >= 2.3.2
|
|
|
|
|
Requires: python-Flask-Compress >= 1.13
|
2024-02-29 12:47:45 +00:00
|
|
|
Requires: python-Flask-SocketIO >= 5.3.4
|
2024-01-30 09:28:50 +00:00
|
|
|
Requires: python-PyNaCl
|
|
|
|
|
Requires: python-PySocks
|
|
|
|
|
Requires: python-Unidecode
|
|
|
|
|
Requires: python-Werkzeug >= 2.3.4
|
|
|
|
|
Requires: python-cepa >= 1.8.1
|
|
|
|
|
Requires: python-click
|
|
|
|
|
Requires: python-colorama
|
|
|
|
|
Requires: python-eventlet
|
2024-03-04 17:25:50 +00:00
|
|
|
Requires: python-gevent >= 23.9.1
|
2024-01-30 09:28:50 +00:00
|
|
|
Requires: python-gevent-websocket
|
2024-03-04 17:25:50 +00:00
|
|
|
Requires: python-packaging >= 23.1
|
2024-01-30 09:28:50 +00:00
|
|
|
Requires: python-psutil
|
2024-02-29 12:47:45 +00:00
|
|
|
Requires: python-pyside6 >= 6.5.2
|
2024-01-30 09:28:50 +00:00
|
|
|
Requires: python-python-gnupg
|
|
|
|
|
Requires: python-qrcode
|
|
|
|
|
Requires: python-requests
|
|
|
|
|
Requires: python-setuptools
|
|
|
|
|
Requires: python-urllib3
|
|
|
|
|
Requires: python-waitress >= 2.1.2
|
2024-03-04 17:25:50 +00:00
|
|
|
Requires: python-wheel >= 0.41.2
|
2018-12-10 12:44:34 +00:00
|
|
|
Requires: tor
|
2024-01-30 09:28:50 +00:00
|
|
|
Provides: python-onionshare = %{version}-%{release}
|
|
|
|
|
Provides: python-onionshare_cli = %{version}-%{release}
|
|
|
|
|
# Obsolete old multiflavor packages
|
|
|
|
|
Obsoletes: %{plainpython}-onionshare-data < 2.3.1
|
2023-11-23 14:31:18 +00:00
|
|
|
Obsoletes: python310-onionshare < 2.3.1
|
|
|
|
|
Obsoletes: python36-onionshare < 2.3.1
|
|
|
|
|
Obsoletes: python38-onionshare < 2.3.1
|
|
|
|
|
Obsoletes: python39-onionshare < 2.3.1
|
2024-01-30 09:28:50 +00:00
|
|
|
%if %{suse_version} >= 1500
|
|
|
|
|
# incorrect package name was used until 2024-01-24
|
|
|
|
|
Obsoletes: %{plainpython}-onionshare <= 2.6
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?sle_version} >= 150600 && "%pythons" != "python3"
|
|
|
|
|
# obsolete python 3.6 package
|
|
|
|
|
Obsoletes: python3-onionshare <= 2.6
|
|
|
|
|
%endif
|
2022-02-25 06:44:57 +00:00
|
|
|
BuildArch: noarch
|
2024-01-30 09:28:50 +00:00
|
|
|
%python_subpackages
|
2021-06-09 18:07:26 +00:00
|
|
|
|
2018-12-10 12:44:34 +00:00
|
|
|
%description
|
2018-12-13 06:24:00 +00:00
|
|
|
OnionShare lets the user share files securely and anonymously. It
|
|
|
|
|
works by starting a web server, making it accessible as a Tor Onion
|
|
|
|
|
Service, and generating an unguessable URL to access and download the
|
|
|
|
|
files. It does not require setting up a separate server or using a
|
|
|
|
|
third party file-sharing service. Files are hosted on the machine the
|
|
|
|
|
program is run on. The receiving user just needs to open the URL in
|
|
|
|
|
Tor Browser to download the file.
|
2018-12-10 12:44:34 +00:00
|
|
|
|
|
|
|
|
%prep
|
2024-01-30 09:28:50 +00:00
|
|
|
%autosetup -p1 -n onionshare-%{version}
|
2025-03-11 13:57:41 +00:00
|
|
|
# enable python 3.13
|
|
|
|
|
sed -i 's/python = ">=3.10,<3.13"/python = ">=3.10,<3.14"/g' */pyproject.toml
|
2021-06-06 13:14:41 +00:00
|
|
|
|
2018-12-10 12:44:34 +00:00
|
|
|
%build
|
2022-02-25 06:44:57 +00:00
|
|
|
pushd cli
|
2024-01-30 09:28:50 +00:00
|
|
|
%pyproject_wheel
|
2022-02-25 06:44:57 +00:00
|
|
|
popd
|
|
|
|
|
pushd desktop
|
2024-01-30 09:28:50 +00:00
|
|
|
%pyproject_wheel
|
2018-12-10 12:44:34 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-02-25 06:44:57 +00:00
|
|
|
pushd cli
|
2024-01-30 09:28:50 +00:00
|
|
|
%pyproject_install
|
2022-02-25 06:44:57 +00:00
|
|
|
popd
|
|
|
|
|
pushd desktop
|
2024-01-30 09:28:50 +00:00
|
|
|
%pyproject_install
|
2018-12-10 12:44:34 +00:00
|
|
|
|
2022-02-25 06:44:57 +00:00
|
|
|
install -Dm 0644 org.onionshare.OnionShare.appdata.xml \
|
|
|
|
|
%{buildroot}%{_datadir}/metainfo/org.onionshare.OnionShare.metainfo.xml
|
|
|
|
|
install -Dm 0644 org.onionshare.OnionShare.svg \
|
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/org.onionshare.OnionShare.svg
|
|
|
|
|
%suse_update_desktop_file -i org.onionshare.OnionShare
|
2020-05-21 08:52:37 +00:00
|
|
|
|
2024-01-30 09:28:50 +00:00
|
|
|
%fdupes %{buildroot}%{mysitelib}
|
2020-05-21 08:52:37 +00:00
|
|
|
|
2021-06-06 13:14:41 +00:00
|
|
|
%check
|
2024-01-30 09:28:50 +00:00
|
|
|
export PYTHONPATH=%{buildroot}%{mysitelib}
|
2021-06-06 13:14:41 +00:00
|
|
|
# we don't trust the update-alternatives priority: pytest could point to the wrong python3 flavor.
|
|
|
|
|
# (https://github.com/openSUSE/python-rpm-macros/issues/109)
|
|
|
|
|
mkdir testbin
|
2024-01-30 09:28:50 +00:00
|
|
|
ln -s %{_bindir}/pytest-%{%{mypython}_bin_suffix} testbin/pytest
|
2021-06-06 13:14:41 +00:00
|
|
|
export PATH=$PWD/testbin:$PATH
|
|
|
|
|
|
|
|
|
|
pushd cli
|
2021-06-08 12:09:10 +00:00
|
|
|
pytest -v -k 'not test_large_download' -rs tests
|
2021-06-06 13:14:41 +00:00
|
|
|
popd
|
|
|
|
|
|
2022-05-25 17:42:00 +00:00
|
|
|
#Desktop tests disabled. The 'server' tests seem to fail
|
|
|
|
|
# pushd desktop
|
2021-06-06 13:14:41 +00:00
|
|
|
# the gui test files need to be called separately upstream's way for application setup and teardown in between
|
|
|
|
|
# this script calls pytest from the PATH defined above.
|
2022-05-25 17:42:00 +00:00
|
|
|
# ./tests/run.sh
|
|
|
|
|
# popd
|
2021-06-06 13:14:41 +00:00
|
|
|
|
2024-01-30 09:28:50 +00:00
|
|
|
%files %python_files
|
|
|
|
|
%{_bindir}/onionshare
|
|
|
|
|
%{_bindir}/onionshare-cli
|
2024-02-29 12:47:45 +00:00
|
|
|
%license LICENSE.txt
|
2018-12-10 12:44:34 +00:00
|
|
|
%doc README.md
|
2022-02-25 06:44:57 +00:00
|
|
|
%{_datadir}/applications/org.onionshare.OnionShare.desktop
|
|
|
|
|
%{_datadir}/metainfo/org.onionshare.OnionShare.metainfo.xml
|
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/org.onionshare.OnionShare.svg
|
2024-01-30 09:28:50 +00:00
|
|
|
%{mysitelib}/onionshare
|
|
|
|
|
%{mysitelib}/onionshare-%{version}*-info
|
|
|
|
|
%{mysitelib}/onionshare_cli
|
|
|
|
|
%{mysitelib}/onionshare_cli-%{version}*-info
|
2020-05-21 08:52:37 +00:00
|
|
|
|
2018-12-10 12:44:34 +00:00
|
|
|
%changelog
|