File friture.spec of Package friture

#
# spec file for package friture
#
# Copyright (c) 2019 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           friture
Version:        0.41
Release:        0
Summary:        Real-time visualization of live audio data
License:        GPL-3.0-only
URL:            http://www.friture.org
Source:         https://github.com/tlecomte/friture/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE friture-depversions.patch
Patch0:         friture-depversions.patch
BuildRequires:  fdupes
BuildRequires:  python3-Cython >= 0.27.3
BuildRequires:  python3-numpy-devel >= 1.16.2
BuildRequires:  python3-setuptools
Requires:       python3-appdirs >= 1.4.3
Requires:       python3-docutils >= 0.14
Requires:       python3-numpy >= 1.16.2
Requires:       python3-opengl >= 3.1.0
Requires:       python3-opengl-accelerate >= 3.1.0
Requires:       python3-pyrr >= 0.9.2
Requires:       python3-qt5 >= 5.10.1
Requires:       python3-rtmixer >= 0.1.0
Requires:       python3-sounddevice >= 0.3.10


%description
**Friture** is an application to visualize and analyze live audio
data in real-time.

Friture displays audio data in several widgets, such as a scope, a
spectrum analyzer, or a rolling 2D spectrogram.

This program can be useful to analyze and equalize the audio response
of a hall, or for educational purposes, etc.

The name *Friture* is a french word for *frying*, also used for
*noise* in a sound.

%prep
%setup -q -n friture-%{version}
%patch0 -p1
# remove shebangs
find . -name "*.py" -exec sed -i '/^#!.*/d' {} +

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}%{python3_sitearch}

%files
%license COPYING.txt
%doc README.rst TODO.txt
%{_bindir}/friture
%{python3_sitearch}/friture/
%{python3_sitearch}/friture_extensions
%{python3_sitearch}/friture-%{version}-py%{py3_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by