2019-12-09 16:29:03 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-acoular
|
|
|
|
|
#
|
2022-02-21 11:27:39 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-12-09 16:29:03 +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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2022-04-10 21:46:30 +00:00
|
|
|
%define int_version 22.3
|
2019-12-09 16:29:03 +00:00
|
|
|
Name: python-acoular
|
2022-04-10 21:46:30 +00:00
|
|
|
Version: 22.3
|
2019-12-09 16:29:03 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Library for acoustic beamforming
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://github.com/acoular/acoular
|
2022-02-21 11:27:39 +00:00
|
|
|
Source0: https://github.com/acoular/acoular/archive/v%{version}.tar.gz#/acoular-%{version}.tar.gz
|
2022-07-12 13:44:45 +00:00
|
|
|
# PATCH-FIX-UPSTREAM fix-setup.patch gh#acoular/acoular#59 mcepl@suse.com -- Bad limit on the Python version, remove numpy upper pin, remove setuptools runtimereq
|
2022-04-10 21:46:30 +00:00
|
|
|
Patch0: fix-setup.patch
|
2022-07-12 13:44:45 +00:00
|
|
|
# PATCH-FIX-OPENSUSE relax-tests.patch code@bnavigator.de -- Precision errors on our architectures differing from upstream
|
|
|
|
|
Patch1: relax-tests.patch
|
|
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2022-04-10 21:46:30 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-12-09 16:29:03 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-04-10 21:46:30 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-12-09 16:29:03 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-07-12 13:44:45 +00:00
|
|
|
Requires: python-numba
|
|
|
|
|
Requires: python-numpy
|
|
|
|
|
Requires: python-scikit-learn
|
2022-02-21 11:27:39 +00:00
|
|
|
Requires: python-scipy >= 1.1.0
|
2019-12-09 16:29:03 +00:00
|
|
|
Requires: python-tables >= 3.4.4
|
2022-02-21 11:27:39 +00:00
|
|
|
Requires: python-traits >= 6.0
|
2021-01-30 14:58:11 +00:00
|
|
|
Recommends: python-traisui
|
2019-12-09 16:29:03 +00:00
|
|
|
BuildArch: noarch
|
2022-07-12 13:44:45 +00:00
|
|
|
# unresolved failure with numba/llvmlite: undefined symbol __powidf2 https://github.com/numba/numba/issues/6012
|
|
|
|
|
ExcludeArch: %{ix86}
|
2019-12-09 16:29:03 +00:00
|
|
|
# SECTION test requirements
|
2022-07-12 13:44:45 +00:00
|
|
|
BuildRequires: %{python_module numba}
|
|
|
|
|
BuildRequires: %{python_module numpy}
|
Accepting request 845661 from home:mcalabkova:branches:devel:languages:python:numeric
- update to version 20.10
* Supports Python 3.6, 3.7, 3.8
* New base classes for time signal processing: Filter, FilterBank
* New filter classes: TimeExpAverage, FiltFreqWeight, OctaveFilterBank
* Demo script is now part of module (see Getting Started for usage)
* New class for processing sound card input: SoundDeviceSamplesGenerator
* New class for cumulative averaging: TimeCumAverage
* New grid classes ImportGrid, LineGrid, MergeGrid
* New versatile integration sector classes RectSector, CircSector, PolySector, ConvexSector, MultiSector
* New class for mixing multiple channels ChannelMixer
* New class for using arbitrary sources as signal: GenericSignalGenerator
* New time-domain beamforming classes for CLEAN-T method: BeamformerCleant, BeamformerCleantSq, BeamformerCleantTraj, BeamformerCleantSqTraj
* Adds possibility to store/load metadata to/from HDF files with WriteH5/TimeSamples classes
* New submodule tools containing several helper functions, e.g. for data aggregation
* WriteWAV: user can optionally set name of output wav file
* Bugfix: PowerSpectra.freq_range / .ind_low / .ind_high are now correctly updated depending on changed attributes
* Bugfix: SineGenerator amplitude is now set via amplitude attribute
* Some minor fixes
OBS-URL: https://build.opensuse.org/request/show/845661
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-acoular?expand=0&rev=8
2020-11-03 13:12:39 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-07-12 13:44:45 +00:00
|
|
|
BuildRequires: %{python_module scikit-learn}
|
2022-02-21 11:27:39 +00:00
|
|
|
BuildRequires: %{python_module scipy >= 1.1.0}
|
2019-12-09 16:29:03 +00:00
|
|
|
BuildRequires: %{python_module tables >= 3.4.4}
|
2022-02-21 11:27:39 +00:00
|
|
|
BuildRequires: %{python_module traits >= 6.0}
|
2020-04-27 12:52:07 +00:00
|
|
|
BuildRequires: %{python_module traitsui}
|
2019-12-09 16:29:03 +00:00
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Acoular is a Python module for acoustic beamforming. Multichannel
|
|
|
|
|
data recorded by a microphone array can be processed and analyzed in
|
|
|
|
|
order to generate mappings of sound source distributions. The maps
|
|
|
|
|
(acoustic photographs) can then be used to locate sources of
|
|
|
|
|
interest and to characterize them using their spectra.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-02-21 11:27:39 +00:00
|
|
|
%setup -q -n acoular-%{version}
|
2022-02-28 14:34:03 +00:00
|
|
|
%autopatch -p1
|
|
|
|
|
|
2021-01-30 14:58:11 +00:00
|
|
|
sed -i -e '1{/^#!/ d}' acoular/fastFuncs.py acoular/demo/acoular_demo.py acoular/tests/*.py
|
|
|
|
|
# remove test scripts not applicable here
|
|
|
|
|
rm acoular/tests/run_tests*.sh
|
|
|
|
|
# Windows only load of the NIDAQmx dll
|
2020-04-27 12:52:07 +00:00
|
|
|
rm acoular/nidaqimport.py
|
2019-12-09 16:29:03 +00:00
|
|
|
|
|
|
|
|
%build
|
2022-04-10 21:46:30 +00:00
|
|
|
%pyproject_wheel
|
2019-12-09 16:29:03 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-04-10 21:46:30 +00:00
|
|
|
%pyproject_install
|
2019-12-09 16:29:03 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2020-04-27 12:52:07 +00:00
|
|
|
%check
|
|
|
|
|
cd acoular/tests
|
2021-01-30 14:58:11 +00:00
|
|
|
%pyunittest discover -v -p "test_*.py"
|
2019-12-09 16:29:03 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
2021-01-30 14:58:11 +00:00
|
|
|
%{python_sitelib}/acoular
|
2022-02-28 14:52:14 +00:00
|
|
|
%{python_sitelib}/acoular-%{int_version}*-info
|
2019-12-09 16:29:03 +00:00
|
|
|
|
|
|
|
|
%changelog
|