%define name audioop-lts %define version 0.2.2 %define unmangled_version 0.2.2 %define release 2 Summary: LTS Port of Python audioop Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{unmangled_version}.tar.gz License: UNKNOWN Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} Vendor: None > BuildRequires: python3-devel, python3-setuptools, gcc %description # audioop An LTS port of the Python builtin module `audioop` which was deprecated since version 3.11 and removed in 3.13. This project exists to maintain this module for future versions. ## Using this project > [!WARNING] **This module only functions at Python versions of 3.13 or greater** due to being removed in this version. As such, you can conditionally add this project to your dependencies: #### pip-requirements ``` audioop-lts; python_version>='3.13' ``` #### Poetry-pyproject ```toml [tool.poetry.dependencies] audioop-lts = { version = "...", python = "^3.13" } ``` Relevant documentation is [here](https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies), or alternatively use [`markers`](https://python-poetry.org/docs/dependency-specification/#using-environment-markers) #### pdm-pyproject / uv-pyproject / hatch-pyproject ```toml [project] dependencies = [ "audioop-lts; python_version >= '3.13'", ] ``` #### Pipenv-pipfile ```toml [packages] audioop-lts = { version = "...", markers = "python_version >= '3.13'" } ``` %prep %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} %build env CFLAGS="$RPM_OPT_FLAGS" python3 setup.py build %py3_build %install #python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %py3_install %clean rm -rf $RPM_BUILD_ROOT ##%files -f INSTALLED_FILES %files %{python3_sitearch}/audioop %{python3_sitearch}/audioop_lts-*.egg-info/ %defattr(-,root,root) %changelog * Fri Jan 20 2023 Autoradio release - Rebuilt for https://fedoraproject.org/wiki/Fedora_44