2018-11-03 04:04:07 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-librosa
|
|
|
|
#
|
2022-09-20 08:04:27 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-11-03 04:04:07 +01: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.
|
|
|
|
|
2019-03-12 19:15:33 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-11-03 04:04:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-12-06 20:08:15 +01:00
|
|
|
%define skip_python2 1
|
2018-11-03 04:04:07 +01:00
|
|
|
Name: python-librosa
|
2022-09-20 08:04:27 +02:00
|
|
|
Version: 0.9.2
|
2018-11-03 04:04:07 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python module for audio and music processing
|
2022-09-20 08:04:27 +02:00
|
|
|
License: CC-BY-3.0 AND ISC
|
2019-11-19 21:54:17 +01:00
|
|
|
URL: https://github.com/librosa/librosa
|
2021-01-30 12:38:24 +01:00
|
|
|
# The github archive has the tests
|
2019-11-21 05:37:22 +01:00
|
|
|
Source0: https://github.com/librosa/librosa/archive/%{version}.tar.gz#/librosa-%{version}.tar.gz
|
2021-01-30 12:38:24 +01:00
|
|
|
Source1: librosa-create-pooch-cache.py
|
2022-09-20 08:04:27 +02:00
|
|
|
# Pooch test data. Use librosa-create-pooch-cache.py to create this file
|
2021-01-30 12:38:24 +01:00
|
|
|
Source2: librosa-pooch-cache.tar.gz
|
2022-09-20 08:04:27 +02:00
|
|
|
# PATCH-FIX-UPSTREAM gh#librosa/librosa#1551
|
|
|
|
Patch0: remove-contextlib2.patch
|
|
|
|
# PATCH-FIX-OPENSUSE Skip tests that require further test data that is ~180MiB
|
|
|
|
Patch1: skip-test-data-missing-tests.patch
|
|
|
|
BuildRequires: %{python_module SoundFile >= 0.10.2}
|
|
|
|
BuildRequires: %{python_module audioread >= 2.1.9}
|
|
|
|
BuildRequires: %{python_module decorator >= 4.0.0}
|
|
|
|
BuildRequires: %{python_module joblib >= 0.14}
|
|
|
|
BuildRequires: %{python_module numba >= 0.45.0}
|
|
|
|
BuildRequires: %{python_module numpy >= 1.17.0}
|
|
|
|
BuildRequires: %{python_module packaging >= 20.0}
|
2021-01-30 12:38:24 +01:00
|
|
|
BuildRequires: %{python_module pooch >= 1.0}
|
|
|
|
BuildRequires: %{python_module resampy >= 0.2.0}
|
2022-09-20 08:04:27 +02:00
|
|
|
BuildRequires: %{python_module scikit-learn >= 0.19.1}
|
|
|
|
BuildRequires: %{python_module scipy >= 1.2.0}
|
2018-11-03 04:04:07 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-09-20 08:04:27 +02:00
|
|
|
Requires: python-SoundFile >= 0.10.2
|
|
|
|
Requires: python-audioread >= 2.1.9
|
|
|
|
Requires: python-decorator >= 4.0.0
|
|
|
|
Requires: python-joblib >= 0.14
|
|
|
|
Requires: python-numba >= 0.45.0
|
|
|
|
Requires: python-numpy >= 1.17.0
|
|
|
|
Requires: python-packaging >= 20.0
|
2021-01-30 12:38:24 +01:00
|
|
|
Requires: python-pooch >= 1.0
|
2019-03-12 19:15:33 +01:00
|
|
|
Requires: python-resampy >= 0.2.0
|
2022-09-20 08:04:27 +02:00
|
|
|
Requires: python-scikit-learn >= 0.19.1
|
|
|
|
Requires: python-scipy >= 1.2.0
|
2019-03-12 19:15:33 +01:00
|
|
|
BuildArch: noarch
|
2018-11-03 04:04:07 +01:00
|
|
|
# SECTION test requirements
|
2021-01-30 12:38:24 +01:00
|
|
|
BuildRequires: %{python_module matplotlib >= 2.0}
|
2022-09-20 08:04:27 +02:00
|
|
|
BuildRequires: %{python_module pytest-cov}
|
2022-09-21 06:56:01 +02:00
|
|
|
BuildRequires: %{python_module pytest-mpl}
|
2019-11-19 21:54:17 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2021-01-30 12:38:24 +01:00
|
|
|
BuildRequires: %{python_module samplerate}
|
|
|
|
BuildRequires: ffmpeg
|
2018-11-03 04:04:07 +01:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
LibROSA is a python package for music and audio analysis. It provides
|
|
|
|
the building blocks necessary to create music information retrieval
|
|
|
|
systems.
|
|
|
|
|
|
|
|
%prep
|
2022-09-20 08:04:27 +02:00
|
|
|
%autosetup -p1 -n librosa-%{version} -a 2
|
2018-11-03 04:04:07 +01:00
|
|
|
# Remove unneeded shebangs
|
|
|
|
find librosa -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
|
2021-01-30 12:38:24 +01:00
|
|
|
# don't measure test coverage
|
|
|
|
sed -i '/tool:pytest/,/addopts/ s/--cov-report.*--cov librosa//' setup.cfg
|
2018-11-03 04:04:07 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2021-01-30 12:38:24 +01:00
|
|
|
%check
|
|
|
|
export LIBROSA_DATA_DIR=$PWD/librosa-pooch-cache
|
|
|
|
# test data files not packaged
|
2022-09-20 08:04:27 +02:00
|
|
|
donttest+=" or (test_core and test_iirt) or test_find_files"
|
2021-01-30 12:38:24 +01:00
|
|
|
donttest+=" or (test_features and test_cens)"
|
|
|
|
donttest+=" or (test_filters and test_semitone_filterbank)"
|
|
|
|
# image files do not match without exact mpl version
|
|
|
|
donttest+=" or test_display"
|
2022-09-20 08:04:27 +02:00
|
|
|
# soxr not in Tumbleweed
|
|
|
|
donttest+=" or soxr"
|
|
|
|
# fails with current Tumbleweed
|
|
|
|
donttest+=" or test_pyin_multi_center"
|
2022-09-26 04:22:35 +02:00
|
|
|
# Overflow on i586
|
|
|
|
if [ $(getconf LONG_BIT) -eq 32 ]; then
|
|
|
|
donttest+=" or test_tempo or test_hybrid_cqt or test_stft_winsizes"
|
|
|
|
donttest+=" or test_istft_reconstruction or test_trim"
|
|
|
|
donttest+=" or test_nnls_multiblock"
|
|
|
|
fi
|
2022-09-21 06:56:01 +02:00
|
|
|
%pytest -k "not (${donttest:4})"
|
Accepting request 718644 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to version 0.7.0
+ New features
* `librosa.core.stream`: Stream generator to process long audio files into smaller pieces. *Brian McFee*
* `librosa.core.load`: Replaced the default audio decoder with `pysoundfile`, and only use `audioread` as backup. *Brian McFee*
* `librosa.core.griffinlim`: Phase retrieval from magnitude spectrograms using the (accelerated) Griffin-Lim method. *Brian McFee*
* `librosa.feature.inverse`: New module for feature inversion, based on the Griffin-Lim phase retrieval algorithm. Includes `mel_to_audio` and `mfcc_to_audio`. *Brian McFee*
* `librosa.core.lpc`: Linear prediction coefficients (LPC). *Adam Weiss*
* `librosa.sequence.rqa`: Recurrence Quantification Analysis (RQA) for sequence alignment. *Brian McFee*
* `librosa.beat.plp`: Predominant local pulse (PLP) for variable-tempo beat tracking. *Brian McFee*
* `librosa.feature.fourier_tempogram`: Fourier Tempogram for representing rhythm in the frequency domain. *Brian McFee*
* `librosa.core.pcen` Per-channel energy normalization (PCEN) now allows logarithmic range compression at the limit power->0. *Vincent Lostanlen*
* `librosa.effects.pitch_shift` supports custom resampling modes. *Taewoon Kim*
* `librosa.core.cqt` and `librosa.core.icqt` Forward and inverse constant-Q transform now support custom resampling modes. *Brian McFee*
* `librosa.segment.path_enhance`: Near-diagonal path enhancement for recurrence, self- or cross-similarity matrices. *Brian McFee*
* `librosa.segment.recurrence_matrix` now supports a keyword argument, `self=False`. If set to `True`, the recurrence matrix includes self-loops. *Brian McFee*
* `librosa.core.piptrack` now supports a keyword argument, `ref=None`, allowing users to override the reference thresholding behavior for determining which bins correspond to pitches. *Brian McFee*
* `librosa.segment.cross_similarity`: Cross-similarity function for comparing two feature sequences. *Rachel Bittner, Brian McFee*
* `librosa.onset.onset_strength_multi` now supports a user-specified reference spectrum via the `ref` keyword argument. *Brian McFee*
* `librosa.core.resample` now supports `mode='polyphase'`. *Brian McFee*
* `librosa.onset.onset_strength_multi`: Setting `aggregate=False` disables the aggregation of onset strengths across frequency bins. *Brian McFee*
+ Bug fixes
* `librosa.effects.pitch_shift` now preserves length. *Vincent Lostanlen*
* `librosa.core.pcen` Dynamic range compression in PCEN is more numerically stable for small values of the exponent. *Vincent Lostanlen*
* `librosa.core.ifgram` Instantaneous frequency spectrogram now correctly estimates center frequencies when using windows other than `hann`. *Brian McFee*
* `librosa.sequence.dtw` Fixed a bug in dynamic time warping when `subseq=True`. *Viktor Andreevitch Morozov*
* `librosa.core.pcen` now initializes its autoregressive filtering in the steady state, not with silence. *Jan Schlüter, Brian McFee*
* `librosa.segment.recurrence_matrix`: `width` parameter now cannot exceed data length. *Brian McFee*
* Filter bank constructors `mel`, `chroma`, `constant_q`, and `cq_to_chroma` are now type-stable. *Vincent Lostanlen, Brian McFee*
* `librosa.core.icqt` Inverse constant-Q transform has been completely rewritten and is more numerically stable. *Brian McFee*
+ Removed features (deprecated in v0.6)
* Discrete cosine transform. We recommend using `scipy.fftpack.dct`
* The `delta` function no longer support the `trim` keyword argument.
* Root mean square error (`rmse`) has been renamed to `rms`.
* `iirt` now uses `sos` mode by default.
+ Documentation
* Improved the documentation of PCEN. *Vincent Lostanlen*
* Improved installation documentation. *Darío Hereñú*
* Improved code style for plot generation. *Alex Metsai*
* Improved the documentation of spectral features. *Brian McFee*
* Improved the documentation of MFCC. *Brian McFee*
* Removed a redundant link in the `util` documentation. *Keunwoo Choi*
* Improved the docstring of `recurrence_matrix`. *Brian McFee*
* Improved the docstring of `load`. *Andy Sarroff*
+ Other changes
* The `output` module is now deprecated, and will be removed in version 0.8.
* More informative exception handling. *Jack Mason*
* `librosa.core.resample()` now supports `mode='fft'`, equivalent to the previous `scipy` mode. *Brian McFee*
* More efficient length-aware ISTFT and ICQT. *Vincent Lostanlen*
* Nine librosa functions now store jit-compiled, numba-accelerated caches across sessions. *Brian McFee*
* `librosa.core.load` no longer relies on `realpath()`. *Brian McFee*
* All spectral feature extractors now expose all STFT parameters. *Brian McFee*
* Refactored `librosa.cache`. *Brian McFee*
* Thanks to `np.fft.rfft`, functions `stft`, `istft`, `ifgram`, and `fmt` are faster and have a reduced memory footprint. *Brian McFee*
OBS-URL: https://build.opensuse.org/request/show/718644
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=7
2019-07-25 22:35:34 +02:00
|
|
|
|
2018-11-03 04:04:07 +01:00
|
|
|
%files %{python_files}
|
Accepting request 718644 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to version 0.7.0
+ New features
* `librosa.core.stream`: Stream generator to process long audio files into smaller pieces. *Brian McFee*
* `librosa.core.load`: Replaced the default audio decoder with `pysoundfile`, and only use `audioread` as backup. *Brian McFee*
* `librosa.core.griffinlim`: Phase retrieval from magnitude spectrograms using the (accelerated) Griffin-Lim method. *Brian McFee*
* `librosa.feature.inverse`: New module for feature inversion, based on the Griffin-Lim phase retrieval algorithm. Includes `mel_to_audio` and `mfcc_to_audio`. *Brian McFee*
* `librosa.core.lpc`: Linear prediction coefficients (LPC). *Adam Weiss*
* `librosa.sequence.rqa`: Recurrence Quantification Analysis (RQA) for sequence alignment. *Brian McFee*
* `librosa.beat.plp`: Predominant local pulse (PLP) for variable-tempo beat tracking. *Brian McFee*
* `librosa.feature.fourier_tempogram`: Fourier Tempogram for representing rhythm in the frequency domain. *Brian McFee*
* `librosa.core.pcen` Per-channel energy normalization (PCEN) now allows logarithmic range compression at the limit power->0. *Vincent Lostanlen*
* `librosa.effects.pitch_shift` supports custom resampling modes. *Taewoon Kim*
* `librosa.core.cqt` and `librosa.core.icqt` Forward and inverse constant-Q transform now support custom resampling modes. *Brian McFee*
* `librosa.segment.path_enhance`: Near-diagonal path enhancement for recurrence, self- or cross-similarity matrices. *Brian McFee*
* `librosa.segment.recurrence_matrix` now supports a keyword argument, `self=False`. If set to `True`, the recurrence matrix includes self-loops. *Brian McFee*
* `librosa.core.piptrack` now supports a keyword argument, `ref=None`, allowing users to override the reference thresholding behavior for determining which bins correspond to pitches. *Brian McFee*
* `librosa.segment.cross_similarity`: Cross-similarity function for comparing two feature sequences. *Rachel Bittner, Brian McFee*
* `librosa.onset.onset_strength_multi` now supports a user-specified reference spectrum via the `ref` keyword argument. *Brian McFee*
* `librosa.core.resample` now supports `mode='polyphase'`. *Brian McFee*
* `librosa.onset.onset_strength_multi`: Setting `aggregate=False` disables the aggregation of onset strengths across frequency bins. *Brian McFee*
+ Bug fixes
* `librosa.effects.pitch_shift` now preserves length. *Vincent Lostanlen*
* `librosa.core.pcen` Dynamic range compression in PCEN is more numerically stable for small values of the exponent. *Vincent Lostanlen*
* `librosa.core.ifgram` Instantaneous frequency spectrogram now correctly estimates center frequencies when using windows other than `hann`. *Brian McFee*
* `librosa.sequence.dtw` Fixed a bug in dynamic time warping when `subseq=True`. *Viktor Andreevitch Morozov*
* `librosa.core.pcen` now initializes its autoregressive filtering in the steady state, not with silence. *Jan Schlüter, Brian McFee*
* `librosa.segment.recurrence_matrix`: `width` parameter now cannot exceed data length. *Brian McFee*
* Filter bank constructors `mel`, `chroma`, `constant_q`, and `cq_to_chroma` are now type-stable. *Vincent Lostanlen, Brian McFee*
* `librosa.core.icqt` Inverse constant-Q transform has been completely rewritten and is more numerically stable. *Brian McFee*
+ Removed features (deprecated in v0.6)
* Discrete cosine transform. We recommend using `scipy.fftpack.dct`
* The `delta` function no longer support the `trim` keyword argument.
* Root mean square error (`rmse`) has been renamed to `rms`.
* `iirt` now uses `sos` mode by default.
+ Documentation
* Improved the documentation of PCEN. *Vincent Lostanlen*
* Improved installation documentation. *Darío Hereñú*
* Improved code style for plot generation. *Alex Metsai*
* Improved the documentation of spectral features. *Brian McFee*
* Improved the documentation of MFCC. *Brian McFee*
* Removed a redundant link in the `util` documentation. *Keunwoo Choi*
* Improved the docstring of `recurrence_matrix`. *Brian McFee*
* Improved the docstring of `load`. *Andy Sarroff*
+ Other changes
* The `output` module is now deprecated, and will be removed in version 0.8.
* More informative exception handling. *Jack Mason*
* `librosa.core.resample()` now supports `mode='fft'`, equivalent to the previous `scipy` mode. *Brian McFee*
* More efficient length-aware ISTFT and ICQT. *Vincent Lostanlen*
* Nine librosa functions now store jit-compiled, numba-accelerated caches across sessions. *Brian McFee*
* `librosa.core.load` no longer relies on `realpath()`. *Brian McFee*
* All spectral feature extractors now expose all STFT parameters. *Brian McFee*
* Refactored `librosa.cache`. *Brian McFee*
* Thanks to `np.fft.rfft`, functions `stft`, `istft`, `ifgram`, and `fmt` are faster and have a reduced memory footprint. *Brian McFee*
OBS-URL: https://build.opensuse.org/request/show/718644
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=7
2019-07-25 22:35:34 +02:00
|
|
|
%doc AUTHORS.md README.md
|
2018-11-03 04:04:07 +01:00
|
|
|
%license LICENSE.md
|
2021-01-30 12:38:24 +01:00
|
|
|
%{python_sitelib}/librosa
|
|
|
|
%{python_sitelib}/librosa-%{version}*-info
|
2018-11-03 04:04:07 +01:00
|
|
|
|
|
|
|
%changelog
|