diff --git a/python-pyalsa.spec b/python-pyalsa.spec index fc37936..2d6f379 100644 --- a/python-pyalsa.spec +++ b/python-pyalsa.spec @@ -1,56 +1,56 @@ Name: python-pyalsa -Version: 1.1.6 +Version: 1.2.6 Release: 1mamba Summary: Python binding for the ALSA library Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba -Packager: Automatic Build System -URL: http://www.alsa-project.org/ +Packager: Silvan Calarco +URL: https://www.alsa-project.org/wiki/Main_Page Source: ftp://ftp.alsa-project.org/pub/pyalsa/pyalsa-%{version}.tar.bz2 License: LGPL -Requires: python >= %python_version ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: libalsa-devel >= %{version} -BuildRequires: libpython-devel >= %python_version -BuildRequires: python >= %python_version +BuildRequires: libalsa-devel +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Python binding for the ALSA library -%prep +%if "%{?with_pyver}" +%pyver_package +%endif +%prep %setup -q -n pyalsa-%{version} %build -CFLAGS="%{optflags}" python setup.py build +CFLAGS="%{optflags}" %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -python setup.py install \ +%{__python} setup.py install \ + -O1 --skip-build \ --root="%{buildroot}" \ - --install-headers=%{_includedir}/python \ - --install-lib=%{python_sitearch} + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%dir %{python_sitearch}/pyalsa -%{python_sitearch}/pyalsa/__init__.py -%{python_sitearch}/pyalsa/__init__.pyc -%{python_sitearch}/pyalsa/alsacard.so -%{python_sitearch}/pyalsa/alsacontrol.so -%{python_sitearch}/pyalsa/alsahcontrol.so -%{python_sitearch}/pyalsa/alsamixer.so -%{python_sitearch}/pyalsa/alsaseq.so -%{python_sitearch}/pyalsa-%{version}-py*.egg-info +%dir %{python_sitearch}/pyalsa-%{version}-py*.egg-info +%{python_sitearch}/pyalsa-%{version}-py*.egg-info/* %changelog +* Fri Dec 10 2021 Automatic Build System 1.2.6-1mamba +- automatic version update by autodist + * Sun Jul 29 2018 Automatic Build System 1.1.6-1mamba - automatic version update by autodist