[packages/python-pyaudio] - proper source file name - cleaned up build, install and files

baggins baggins at pld-linux.org
Fri Oct 5 18:40:56 CEST 2012


commit 71c8319e21019e293ec901d724451a905a1198c8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Oct 5 18:40:27 2012 +0200

    - proper source file name
    - cleaned up build, install and files

 python-pyaudio.spec | 25 ++++---------------------
 1 file changed, 4 insertions(+), 21 deletions(-)
---
diff --git a/python-pyaudio.spec b/python-pyaudio.spec
index cf16b56..7f13a73 100644
--- a/python-pyaudio.spec
+++ b/python-pyaudio.spec
@@ -1,7 +1,3 @@
-#
-# Conditional build:
-%bcond_without	tests	# do not perform "make test"
-
 %define		module	pyaudio
 Summary:	Python bindings for PortAudio
 Name:		python-%{module}
@@ -9,7 +5,7 @@ Version:	0.2.4
 Release:	0.1
 License:	MIT
 Group:		Development/Languages/Python
-Source0:	http://people.csail.mit.edu/hubert/pyaudio/packages/%{name}-%{version}.tar.gz
+Source0:	http://people.csail.mit.edu/hubert/pyaudio/packages/%{module}-%{version}.tar.gz
 # Source0-md5:	623809778f3d70254a25492bae63b575
 URL:		http://people.csail.mit.edu/hubert/pyaudio/
 BuildRequires:	python-devel
@@ -30,10 +26,7 @@ PyAudio is designed to work with the PortAudio v19 API 2.0. Note that
 PyAudio currently only supports blocking-mode audio I/O.
 
 %prep
-%setup -q -n %{module}-%{version}
-
-# fix #!/usr/bin/env python -> #!/usr/bin/python:
-%{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}.py
+%setup -q -n PyAudio-%{version}
 
 %build
 # CC/CFLAGS is only for arch packages - remove on noarch packages
@@ -41,8 +34,6 @@ CC="%{__cc}" \
 CFLAGS="%{rpmcflags}" \
 %{__python} setup.py build
 
-%{?with_tests:%{__python} setup.py test}
-
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install \
@@ -50,10 +41,6 @@ rm -rf $RPM_BUILD_ROOT
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-
-# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 %py_postclean
@@ -63,11 +50,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
-# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%doc CHANGELOG README docs/*
 %{py_sitedir}/*.py[co]
 %attr(755,root,root) %{py_sitedir}/*.so
-%if "%{py_ver}" > "2.4"
-%{py_sitedir}/TEMPLATE-*.egg-info
-%endif
-%{_examplesdir}/%{name}-%{version}
+%{py_sitedir}/PyAudio-*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyaudio.git/commitdiff/71c8319e21019e293ec901d724451a905a1198c8



More information about the pld-cvs-commit mailing list