From 4a23c40ad3ce3409220daea47b2bcdb2914f78cbad0042cff9038194ca47d155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 8 Nov 2019 13:24:23 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-onionshare?expand=0&rev=14 --- onionshare-2.2.tar.gz | 4 ++-- python-onionshare.spec | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/onionshare-2.2.tar.gz b/onionshare-2.2.tar.gz index d0c8b6d..206d849 100644 --- a/onionshare-2.2.tar.gz +++ b/onionshare-2.2.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3a770e4aa99c5740fc62a15e8a3f4b48a47f21fadbc8fa666bbefd63f14e86f8 -size 5109760 +oid sha256:7173863d7582b05aa8fd0d2207236e3cbbb38d854aad65e3b98ec5baad521fc2 +size 3319589 diff --git a/python-onionshare.spec b/python-onionshare.spec index e806934..8c98e31 100644 --- a/python-onionshare.spec +++ b/python-onionshare.spec @@ -18,16 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} - %define skip_python2 1 - %define modname onionshare Name: python-%{modname} Version: 2.2 Release: 0 Summary: Self-hosting Tor Onion Service based file sharing License: GPL-3.0-or-later -Group: Development/Languages/Python URL: https://github.com/micahflee/onionshare Source0: https://github.com/micahflee/onionshare/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz Source1: %{modname}.desktop @@ -64,8 +61,8 @@ program is run on. The receiving user just needs to open the URL in Tor Browser to download the file. %prep -%setup -q -n %{modname} -cp %{S:1} . +%setup -q -n %{modname}-%{version} +cp %{SOURCE1} . %build %python_build @@ -82,7 +79,7 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications/ %{modname}.desk %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} tests +%pytest tests %files %{python_files} %python3_only %{_bindir}/%{modname}*