Name: pulsectl Version: 18.12.5 Release: 1%{?dist} Summary: Python high-level interface and ctypes-based bindings for PulseAudio (libpulse) License: MIT URL: https://pypi.org/project/%{name} Source0: https://files.pythonhosted.org/packages/1a/a9/cdd1a19889f78ddd45775b9830045df2b4eb25f63911a2ddc3aaf8ec614f/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pulseaudio-libs %description Python (3.x and 2.x) high-level interface and ctypes-based bindings for PulseAudio (libpulse), mostly focused on mixer-like controls and introspection-related operations (as opposed to e.g. submitting sound samples to play, player-like client). %package -n python3-%{name} Summary: Python high-level interface and ctypes-based bindings for PulseAudio (libpulse) %description -n python3-%{name} Python 3.x high-level interface and ctypes-based bindings for PulseAudio (libpulse), mostly focused on mixer-like controls and introspection-related operations (as opposed to e.g. submitting sound samples to play, player-like client). %prep %autosetup %build # Remove CFLAGS=... for noarch packages (unneeded) CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files -n python3-%{name} %license COPYING %doc README.rst CHANGES.rst %{python3_sitelib}/* %changelog * Tue Sep 3 2019 Paul W. Frields - Initial RPM release