2024-01-06 10:37:11 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
Name: pyalsaaudio
|
|
|
|
Version: 0.9.2
|
|
|
|
Release: 1mamba
|
|
|
|
Summary: ALSA wrapper for Python
|
|
|
|
Group: Development/Languages
|
2024-01-06 10:37:11 +01:00
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 10:37:11 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://pyalsaaudio.sourceforge.net/
|
|
|
|
Source: https://pypi.debian.net/pyalsaaudio/pyalsaaudio-%{version}.tar.gz
|
|
|
|
License: Python Software Foundation License, LGPL
|
2024-01-06 10:37:11 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libalsa-devel
|
2024-01-06 10:37:11 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 10:37:11 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
ALSA wrapper for Python. The goal is to provide a functionality complete Python wrapper for ALSA. Currently PCM playback and capture, as well as the Mixer API is supported.
|
|
|
|
|
2024-01-06 10:37:11 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 10:37:11 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 10:37:11 +01:00
|
|
|
%{__python} setup.py install \
|
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{python_inc} \
|
|
|
|
--install-lib=%{python_sitearch} \
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
|
2024-01-06 10:37:11 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 10:37:11 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
|
|
|
|
%doc LICENSE
|
2024-01-06 10:37:11 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:37:11 +01:00
|
|
|
* Mon May 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.2-1mamba
|
|
|
|
- update to 0.9.2
|
|
|
|
|
2024-01-06 10:37:11 +01:00
|
|
|
* Sat May 18 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7-2mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Sat Aug 13 2011 Automatic Build System <autodist@mambasoft.it> 0.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue May 11 2010 Automatic Build System <autodist@mambasoft.it> 0.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Jul 10 2009 Automatic Build System <autodist@mambasoft.it> 0.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Apr 01 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4-1mamba
|
|
|
|
- update to 0.4
|
|
|
|
|
|
|
|
* Mon May 12 2008 gil <puntogil@libero.it> 0.3-1mamba
|
|
|
|
- package created by autospec
|