rpms/portmidi/devel portmidi.spec,1.7,1.8
Orcan Ogetbil
oget at fedoraproject.org
Sat Jul 24 03:25:19 UTC 2010
Author: oget
Update of /cvs/pkgs/rpms/portmidi/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv26561
Modified Files:
portmidi.spec
Log Message:
* Fri Jul 23 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> 200-4
- Fix python module build
Index: portmidi.spec
===================================================================
RCS file: /cvs/pkgs/rpms/portmidi/devel/portmidi.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- portmidi.spec 22 Jul 2010 03:03:22 -0000 1.7
+++ portmidi.spec 24 Jul 2010 03:25:17 -0000 1.8
@@ -3,7 +3,7 @@
Summary: Real-time Midi I/O Library
Name: portmidi
Version: 200
-Release: 3%{?dist}
+Release: 4%{?dist}
License: MIT
Group: System Environment/Libraries
URL: http://portmedia.sourceforge.net/
@@ -107,10 +107,12 @@ pushd latex
popd
# Build python modules
+PYTHON_VER=$(python -c "from sys import version; print (version[:3])")
+PYTHON_INC=$(python -c "from distutils.sysconfig import get_python_inc; print get_python_inc()")
pushd pm_python
gcc %{optflags} -fPIC -c -o pypm.o -I../pm_common \
- -I../porttime -I%{_includedir}/python2.6/ pypm.c
- gcc -shared -o pypm.so pypm.o -lportmidi -lpython2.6 -L../build/Release
+ -I../porttime -I$PYTHON_INC pypm.c
+ gcc -shared -o pypm.so pypm.o -lportmidi -lpython$PYTHON_VER -L../build/Release
popd
%install
@@ -207,6 +209,9 @@ rm -rf %{buildroot}
%{_libdir}/lib*.so
%changelog
+* Fri Jul 23 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> 200-4
+- Fix python module build
+
* Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 200-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
More information about the scm-commits
mailing list