2018-03-12 09:06:27 +00:00
|
|
|
#
|
2018-03-12 09:08:39 +00:00
|
|
|
# spec file for package python-magic-wormhole
|
2018-03-12 09:06:27 +00:00
|
|
|
#
|
2024-02-27 08:39:40 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-03-12 09:06:27 +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.
|
|
|
|
|
2018-12-04 13:39:29 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-12 09:08:39 +00:00
|
|
|
#
|
2018-03-12 09:06:27 +00:00
|
|
|
|
|
|
|
|
2018-03-12 09:08:39 +00:00
|
|
|
%define modname magic-wormhole
|
|
|
|
Name: python-magic-wormhole
|
2024-05-02 09:30:57 +00:00
|
|
|
Version: 0.14.0
|
2018-03-12 09:06:27 +00:00
|
|
|
Release: 0
|
2019-06-03 08:04:56 +00:00
|
|
|
Summary: Tool for transferring files through a secure channel
|
2018-03-12 09:08:39 +00:00
|
|
|
License: MIT
|
2024-05-02 09:30:57 +00:00
|
|
|
URL: https://github.com/magic-wormhole/magic-wormhole
|
2018-03-12 09:08:39 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/magic-wormhole/%{modname}-%{version}.tar.gz
|
2019-05-17 13:50:08 +00:00
|
|
|
BuildRequires: %{python_module Automat}
|
|
|
|
BuildRequires: %{python_module PyNaCl}
|
2023-09-19 15:25:19 +00:00
|
|
|
BuildRequires: %{python_module Twisted}
|
|
|
|
BuildRequires: %{python_module attrs >= 19.2.0}
|
|
|
|
BuildRequires: %{python_module autobahn}
|
2019-05-17 13:50:08 +00:00
|
|
|
BuildRequires: %{python_module click}
|
2023-09-19 15:25:19 +00:00
|
|
|
BuildRequires: %{python_module cryptography}
|
2019-05-17 13:50:08 +00:00
|
|
|
BuildRequires: %{python_module humanize}
|
2024-05-02 09:30:57 +00:00
|
|
|
BuildRequires: %{python_module iterable-io >= 1.0.0}
|
2019-05-17 13:50:08 +00:00
|
|
|
BuildRequires: %{python_module magic-wormhole-mailbox-server}
|
|
|
|
BuildRequires: %{python_module magic-wormhole-transit-relay}
|
2023-09-19 15:25:19 +00:00
|
|
|
BuildRequires: %{python_module noiseprotocol}
|
2024-02-27 08:39:40 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-10-07 10:41:34 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-03-12 09:08:39 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-05-17 13:50:08 +00:00
|
|
|
BuildRequires: %{python_module spake2 >= 0.8}
|
|
|
|
BuildRequires: %{python_module tqdm >= 4.13.0}
|
2023-09-19 15:25:19 +00:00
|
|
|
BuildRequires: %{python_module txtorcon >= 18.0.2}
|
2024-02-27 08:39:40 +00:00
|
|
|
BuildRequires: %{python_module versioneer}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2024-05-02 09:30:57 +00:00
|
|
|
BuildRequires: %{python_module zipstream-ng >= 1.7.1}
|
2021-03-22 23:12:53 +00:00
|
|
|
BuildRequires: %{pythons}
|
2018-03-12 09:06:27 +00:00
|
|
|
BuildRequires: fdupes
|
2022-01-11 21:10:30 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-05-02 09:30:57 +00:00
|
|
|
# Shell completions
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
BuildRequires: fish
|
|
|
|
BuildRequires: zsh
|
2018-03-12 09:08:39 +00:00
|
|
|
Requires: python-Automat
|
|
|
|
Requires: python-PyNaCl
|
2023-09-19 15:25:19 +00:00
|
|
|
Requires: python-Twisted
|
2024-05-02 09:30:57 +00:00
|
|
|
Requires: python-attrs >= 19.2.0
|
2023-09-19 15:25:19 +00:00
|
|
|
Requires: python-autobahn
|
2018-03-12 09:06:27 +00:00
|
|
|
Requires: python-click
|
2023-09-19 15:25:19 +00:00
|
|
|
Requires: python-cryptography
|
2018-03-12 09:06:27 +00:00
|
|
|
Requires: python-humanize
|
2024-05-02 10:22:02 +00:00
|
|
|
Requires: python-iterable-io >= 1.0.0
|
2019-05-17 13:50:08 +00:00
|
|
|
Requires: python-spake2 >= 0.8
|
2018-03-12 09:06:27 +00:00
|
|
|
Requires: python-tqdm >= 4.13.0
|
2023-09-19 15:25:19 +00:00
|
|
|
Requires: python-txtorcon >= 18.0.2
|
2024-05-02 10:22:02 +00:00
|
|
|
Requires: python-zipstream-ng >= 1.7.1
|
2020-03-25 08:13:01 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-05-02 09:30:57 +00:00
|
|
|
Requires(preun): update-alternatives
|
2023-09-19 15:25:19 +00:00
|
|
|
Suggests: python-magic-wormhole-mailbox-server
|
2019-05-17 13:50:08 +00:00
|
|
|
Suggests: python-magic-wormhole-transit-relay
|
2023-09-19 15:25:19 +00:00
|
|
|
Suggests: python-noiseprotocol
|
2018-03-12 09:06:27 +00:00
|
|
|
BuildArch: noarch
|
2018-03-12 09:20:22 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2018-03-12 09:06:27 +00:00
|
|
|
%description
|
2018-03-12 09:08:39 +00:00
|
|
|
This package provides a library and a command-line tool named wormhole,
|
|
|
|
which makes it possible to get arbitrary-sized files and directories from
|
|
|
|
one computer to another. The two endpoints are identified by using identical
|
|
|
|
"wormhole codes": in general, the sending machine generates and displays
|
2018-03-12 09:06:27 +00:00
|
|
|
the code, which must then be typed into the receiving machine.
|
|
|
|
|
2024-05-02 09:30:57 +00:00
|
|
|
%package -n %{name}-bash-completion
|
|
|
|
Summary: Bash Completion for %{name}
|
|
|
|
Group: System/Shells
|
|
|
|
Supplements: (%{name} and bash-completion)
|
|
|
|
Requires: bash-completion
|
2024-05-23 12:09:18 +00:00
|
|
|
Requires: python3dist(magic-wormhole)
|
2024-05-02 09:30:57 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}-bash-completion
|
|
|
|
Bash command-line completion support for %{name}.
|
|
|
|
|
|
|
|
%package -n %{name}-fish-completion
|
|
|
|
Summary: Fish Completion for %{name}
|
|
|
|
Group: System/Shells
|
|
|
|
Supplements: (%{name} and fish)
|
|
|
|
Requires: fish
|
2024-05-23 12:09:18 +00:00
|
|
|
Requires: python3dist(magic-wormhole)
|
2024-05-02 09:30:57 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}-fish-completion
|
|
|
|
Fish command-line completion support for %{name}.
|
|
|
|
|
|
|
|
%package -n %{name}-zsh-completion
|
|
|
|
Summary: Zsh Completion for %{name}
|
|
|
|
Group: System/Shells
|
|
|
|
Supplements: (%{name} and zsh)
|
|
|
|
Requires: zsh
|
2024-05-23 12:09:18 +00:00
|
|
|
Requires: python3dist(magic-wormhole)
|
2024-05-02 09:30:57 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}-zsh-completion
|
|
|
|
Zsh command-line completion support for %{name}.
|
|
|
|
|
2018-03-12 09:06:27 +00:00
|
|
|
%prep
|
2024-05-02 09:30:57 +00:00
|
|
|
%autosetup -n %{modname}-%{version}
|
2018-03-12 09:06:27 +00:00
|
|
|
|
|
|
|
%build
|
2024-02-27 08:39:40 +00:00
|
|
|
%pyproject_wheel
|
2018-03-12 09:06:27 +00:00
|
|
|
|
|
|
|
%install
|
2024-02-27 08:39:40 +00:00
|
|
|
%pyproject_install
|
2018-03-12 09:06:27 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2020-03-25 08:13:01 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/wormhole
|
2024-05-02 09:30:57 +00:00
|
|
|
install -Dm644 wormhole_complete.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
|
|
|
install -Dm644 wormhole_complete.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
|
|
|
|
install -Dm644 wormhole_complete.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
|
|
|
rm %{buildroot}/usr/wormhole_complete*
|
2019-05-17 13:50:08 +00:00
|
|
|
|
|
|
|
%check
|
2024-05-02 10:22:02 +00:00
|
|
|
%pytest src/wormhole/test
|
2018-03-12 09:06:27 +00:00
|
|
|
|
2020-03-25 08:13:01 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative wormhole
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative wormhole
|
|
|
|
|
2024-05-02 09:30:57 +00:00
|
|
|
%files %python_files
|
2018-03-12 09:08:39 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc NEWS.md README.md
|
2020-03-25 08:13:01 +00:00
|
|
|
%python_alternative %{_bindir}/wormhole
|
2023-09-19 15:25:19 +00:00
|
|
|
%{python_sitelib}/wormhole
|
2024-02-27 08:39:40 +00:00
|
|
|
%{python_sitelib}/magic_wormhole-%{version}.dist-info
|
2018-03-12 09:06:27 +00:00
|
|
|
|
2024-05-02 09:30:57 +00:00
|
|
|
%files -n %{name}-bash-completion
|
|
|
|
%{_datadir}/bash-completion/*
|
|
|
|
|
|
|
|
%files -n %{name}-fish-completion
|
|
|
|
%{_datadir}/fish/*
|
|
|
|
|
|
|
|
%files -n %{name}-zsh-completion
|
|
|
|
%{_datadir}/zsh/*
|
|
|
|
|
2018-03-12 09:06:27 +00:00
|
|
|
%changelog
|