2018-05-29 08:28:36 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-pyo
|
|
|
|
|
#
|
2024-06-11 17:34:14 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-05-29 08:28:36 +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.
|
|
|
|
|
|
2021-04-29 07:10:57 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2018-05-29 08:28:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
%define skip_python2 1
|
|
|
|
|
Name: python-pyo
|
2024-06-11 17:34:14 +00:00
|
|
|
Version: 1.0.5
|
2018-05-29 08:28:36 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python digital signal processing module
|
2021-04-29 07:10:57 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2018-05-29 08:28:36 +00:00
|
|
|
Group: Development/Languages/Python
|
2021-04-29 07:10:57 +00:00
|
|
|
URL: http://ajaxsoundstudio.com/software/pyo/
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyo/pyo-%{version}.tar.gz
|
|
|
|
|
Source1: https://raw.githubusercontent.com/belangeo/pyo/master/LICENSE
|
2024-06-11 17:34:14 +00:00
|
|
|
# PATCH-FIX-UPSTREAM - Fix multiple incorrect declarations and signatures of callback functions
|
|
|
|
|
Patch: https://github.com/belangeo/pyo/pull/277.patch
|
2018-05-29 08:28:36 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2021-04-29 07:10:57 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: portmidi-devel
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-29 08:28:36 +00:00
|
|
|
BuildRequires: pkgconfig(jack)
|
|
|
|
|
BuildRequires: pkgconfig(liblo)
|
|
|
|
|
BuildRequires: pkgconfig(portaudiocpp)
|
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
PYO is a Python module written in C to help digital signal processing
|
2021-04-29 07:10:57 +00:00
|
|
|
script creation.
|
2018-05-29 08:28:36 +00:00
|
|
|
|
|
|
|
|
%prep
|
2021-04-29 07:10:57 +00:00
|
|
|
%setup -q -n pyo-%{version}
|
|
|
|
|
%autopatch -p1
|
|
|
|
|
cp %{SOURCE1} .
|
2018-05-29 08:28:36 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
%python_build --use-jack --use-double
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install --use-jack --use-double
|
2021-04-29 07:10:57 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/epyo
|
2018-05-29 08:28:36 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
2021-04-29 07:10:57 +00:00
|
|
|
%check
|
|
|
|
|
# testsuite is broken and can not be run even from github tarball
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative epyo
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative epyo
|
|
|
|
|
|
2018-05-29 08:28:36 +00:00
|
|
|
%files %{python_files}
|
2021-04-29 07:10:57 +00:00
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%python_alternative %{_bindir}/epyo
|
2018-05-29 08:28:36 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|