File qspectrumanalyzer.spec of Package qspectrumanalyzer

#
# spec file for package qspectrumanalyzer
#
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           qspectrumanalyzer
Version:        2.2.0
Release:        0
Summary:        Spectrum analyzer for RTL-SDR
License:        GPL-3.0
Group:          Productivity/Hamradio/Other
URL:            https://github.com/xmikos/qspectrumanalyzer
Source:         https://github.com/xmikos/qspectrumanalyzer/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.xz
BuildRequires:  python3-devel >= 3.3
BuildRequires:  python3-setuptools
BuildRequires:  update-desktop-files
Requires:       python3-Qt.py
Requires:       python3-pyqtgraph
Requires:       python3-soapy_power
Recommends:     rtl-power-fftw
Recommends:     rtl-sdr
Recommends:     hackrf
BuildArch:      noarch

%description
Spectrum analyzer for RTL-SDR (GUI for rtl_power based on PyQtGraph)

%prep
%setup -q

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%suse_update_desktop_file -r %{buildroot}%{_datadir}/applications/qspectrumanalyzer.desktop Network HamRadio

%files
%doc LICENSE README.rst
%{_bindir}/qspectrumanalyzer
%{_datadir}/applications/qspectrumanalyzer.desktop
%{_datadir}/pixmaps/qspectrumanalyzer.png
%{python3_sitelib}/qspectrumanalyzer
%{python3_sitelib}/QSpectrumAnalyzer-%{version}-py*.egg-info

%changelog
openSUSE Build Service is sponsored by