From a3675b84afd4359af86faa8fa3eba7220bd78efc8f6ae2bd462c524df05fffec Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 30 Apr 2020 11:10:23 +0000 Subject: [PATCH] Accepting request 799181 from hamradio OBS-URL: https://build.opensuse.org/request/show/799181 OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/hamlib?expand=0&rev=16 --- hamlib.changes | 5 +++++ hamlib.spec | 25 +++++++++++++++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/hamlib.changes b/hamlib.changes index 4a401f6..cad0368 100644 --- a/hamlib.changes +++ b/hamlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 29 23:14:25 UTC 2020 - Wojciech Kazubski + +- Tumbleweed: Python backend built for python-3.8 + ------------------------------------------------------------------- Sat Apr 25 07:58:17 UTC 2020 - Martin Pluskal diff --git a/hamlib.spec b/hamlib.spec index 3a9dbc8..a748d9a 100644 --- a/hamlib.spec +++ b/hamlib.spec @@ -40,12 +40,14 @@ BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(lua) BuildRequires: pkgconfig(tcl) -%if 0%{?suse_version} <= 1500 BuildRequires: fdupes +%if 0%{?suse_version} <= 1500 BuildRequires: pkgconfig(python2) +%else +BuildRequires: pkgconfig(python3) +%endif Requires(post): %{install_info_prereq} Requires(preun): %{install_info_prereq} -%endif %description The Ham Radio Control Libraries (Hamlib) provide a programming @@ -96,6 +98,14 @@ Group: Development/Libraries/Python %description -n python-Hamlib Hamlib provide a programming interface for controlling radios and other shack hardware. +%else +%package -n python3-Hamlib +Summary: Python 3 bindings for Hamlib +Group: Development/Libraries/Python + +%description -n python3-Hamlib +Hamlib provide a programming interface for controlling radios and +other shack hardware. %endif %package -n tcl-Hamlib @@ -125,9 +135,11 @@ autoreconf -fiv --with-perl-binding \ --with-tcl-binding \ --with-lua-binding \ - %if 0%{?suse_version} <= 1500 +%if 0%{?suse_version} <= 1500 --with-python-binding \ - %endif +%else + --with-python-binding PYTHON_VERSION='3.8' \ +%endif --with-xml-support %make_build @@ -204,6 +216,11 @@ mv %{buildroot}/%{_datadir}/doc/%{name} %{buildroot}%{_docdir} %files -n python-Hamlib %{python_sitearch}/Hamlib.* %{python_sitearch}/_Hamlib.* +%else +%files -n python3-Hamlib +%{python3_sitearch}/Hamlib.* +%{python3_sitearch}/_Hamlib.* +%{python3_sitearch}/__pycache__/Hamlib.cpython*.pyc %endif %files -n tcl-Hamlib