14
0
Tomáš Chvátal
2019-11-08 13:24:23 +00:00
committed by Git OBS Bridge
parent b67adc4eea
commit 4a23c40ad3
2 changed files with 5 additions and 8 deletions

View File

@@ -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}*