Group :: Development/Python3
RPM: python3-module-librosa
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define pypi_name librosa
# no tests data in tarball
%def_disable check
Name: python3-module-%pypi_name
Version: 0.10.1
Release: alt1
Summary: A python package for music and audio analysis
Group: Development/Python3
License: ISC
Url: https://pypi.org/project/%pypi_name
Vcs: https://github.com/librosa/librosa.git
Source: https://pypi.io/packages/source/l/%pypi_name/%pypi_name-%version.tar.gz
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(setuptools) python3(wheel)
%{?_enable_check:
BuildRequires: python3(matplotlib) >= 3.3.0
BuildRequires: python3(packaging) >= 20.0
BuildRequires: python3(pytest-mpl)
BuildRequires: python3(pytest-cov)
BuildRequires: python3(pytest)
BuildRequires: python3(samplerate)
BuildRequires: python3(resampy) >= 0.2.2
BuildRequires: python3(types-decorator)}
%description
%summary
%prep
%setup -n %pypi_name-%version
%build
%pyproject_build
%install
%pyproject_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir_noarch
py.test-3 tests
%files
%python3_sitelibdir_noarch/%pypi_name
%python3_sitelibdir_noarch/%{pyproject_distinfo %pypi_name}
%doc README*
%changelog
…
Todas as alterações você pod ver aqui
# no tests data in tarball
%def_disable check
Name: python3-module-%pypi_name
Version: 0.10.1
Release: alt1
Summary: A python package for music and audio analysis
Group: Development/Python3
License: ISC
Url: https://pypi.org/project/%pypi_name
Vcs: https://github.com/librosa/librosa.git
Source: https://pypi.io/packages/source/l/%pypi_name/%pypi_name-%version.tar.gz
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(setuptools) python3(wheel)
%{?_enable_check:
BuildRequires: python3(matplotlib) >= 3.3.0
BuildRequires: python3(packaging) >= 20.0
BuildRequires: python3(pytest-mpl)
BuildRequires: python3(pytest-cov)
BuildRequires: python3(pytest)
BuildRequires: python3(samplerate)
BuildRequires: python3(resampy) >= 0.2.2
BuildRequires: python3(types-decorator)}
%description
%summary
%prep
%setup -n %pypi_name-%version
%build
%pyproject_build
%install
%pyproject_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir_noarch
py.test-3 tests
%files
%python3_sitelibdir_noarch/%pypi_name
%python3_sitelibdir_noarch/%{pyproject_distinfo %pypi_name}
%doc README*
%changelog
…
Todas as alterações você pod ver aqui