pyalsaaudio/pyalsaaudio.spec

73 lines
2.1 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: pyalsaaudio
Version: 0.9.2
Release: 1mamba
Summary: ALSA wrapper for Python
Group: Development/Languages
Vendor: openmamba
Distribution: openmamba
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
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libalsa-devel
BuildRequires: libpython3-devel
## 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.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__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
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%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
%changelog
* Mon May 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.2-1mamba
- update to 0.9.2
* 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