From 70159a679e3c036393433b9cf7125f908e9050b2ec59b51cd69f4e29d3fcc082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 12 Mar 2018 09:20:22 +0000 Subject: [PATCH] - Properly handle singlespec to allow py2 and py3 build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-magic-wormhole?expand=0&rev=3 --- python-magic-wormhole.changes | 5 +++++ python-magic-wormhole.spec | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/python-magic-wormhole.changes b/python-magic-wormhole.changes index bb950b1..e7df17f 100644 --- a/python-magic-wormhole.changes +++ b/python-magic-wormhole.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 12 09:19:13 UTC 2018 - tchvatal@suse.com + +- Properly handle singlespec to allow py2 and py3 build + ------------------------------------------------------------------- Mon Mar 12 09:08:16 UTC 2018 - tchvatal@suse.com diff --git a/python-magic-wormhole.spec b/python-magic-wormhole.spec index 90e1392..84d1bcc 100644 --- a/python-magic-wormhole.spec +++ b/python-magic-wormhole.spec @@ -65,6 +65,8 @@ BuildRequires: %{python_module tqdm >= 4.13.0} BuildRequires: %{python_module txtorcon >= 0.19.3} # /SECTION +%python_subpackages + %description This package provides a library and a command-line tool named wormhole, which makes it possible to get arbitrary-sized files and directories from @@ -81,12 +83,16 @@ the code, which must then be typed into the receiving machine. %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone %{buildroot}%{_bindir}/wormhole +%python_clone %{buildroot}%{_bindir}/wormhole-server -%files +%files %{python_files} %license LICENSE %doc NEWS.md README.md -%{_bindir}/wormhole -%{_bindir}/wormhole-server +%{_bindir}/wormhole-%{python_bin_suffix} +%{_bindir}/wormhole-server-%{python_bin_suffix} +%python3_only %{_bindir}/wormhole +%python3_only %{_bindir}/wormhole-server %{python_sitelib}/* %changelog