[pygame] * Thu Aug 12 2010 Jan Kaluza <jkaluza at redhat.com> - 1.9.1-3 - fix #585526 - add MIDI support
Jan Kaluža
jkaluza at fedoraproject.org
Thu Aug 12 14:34:34 UTC 2010
commit 4714c2471883354d63f3a91b4b492417e1dbe37f
Author: Jan Kaluza <hanzz.k at gmail.com>
Date: Thu Aug 12 16:34:36 2010 +0200
* Thu Aug 12 2010 Jan Kaluza <jkaluza at redhat.com> - 1.9.1-3
- fix #585526 - add MIDI support
pygame-1.9.1-porttime.patch | 26 ++++++++++++++++++++++++++
pygame.spec | 9 ++++++++-
2 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/pygame-1.9.1-porttime.patch b/pygame-1.9.1-porttime.patch
new file mode 100644
index 0000000..92dd180
--- /dev/null
+++ b/pygame-1.9.1-porttime.patch
@@ -0,0 +1,26 @@
+diff --git a/config_unix.py b/config_unix.py
+index c888c28..942a750 100644
+--- a/config_unix.py
++++ b/config_unix.py
+@@ -147,7 +147,7 @@ def main():
+ Dependency('JPEG', 'jpeglib.h', 'libjpeg', ['jpeg']),
+ Dependency('SCRAP', '', 'libX11', ['X11']),
+ Dependency('PORTMIDI', 'portmidi.h', 'libportmidi.so', ['portmidi']),
+- Dependency('PORTTIME', 'porttime.h', 'libporttime.so', ['porttime']),
++ Dependency('PORTTIME', 'porttime.h', 'libportmidi.so', ['portmidi']),
+ #Dependency('GFX', 'SDL_gfxPrimitives.h', 'libSDL_gfx.so', ['SDL_gfx']),
+ ]
+ if not DEPS[0].found:
+diff --git a/Setup.in b/Setup.in
+index 4bb6c1c..c90174f 100644
+--- a/Setup.in
++++ b/Setup.in
+@@ -16,7 +16,7 @@ PNG = -lpng
+ JPEG = -ljpeg
+ SCRAP = -lX11
+ PORTMIDI = -lportmidi
+-PORTTIME = -lporttime
++PORTTIME =
+ #--EndConfig
+
+ #DEBUG = -C-W -C-Wall
diff --git a/pygame.spec b/pygame.spec
index 1455b6d..152f735 100644
--- a/pygame.spec
+++ b/pygame.spec
@@ -2,7 +2,7 @@
Name: pygame
Version: 1.9.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Python modules for writing games
Group: Development/Languages
@@ -10,6 +10,8 @@ License: LGPLv2+
URL: http://www.pygame.org
#Patch0: %{name}-1.8.1-config.patch
Patch0: %{name}-1.9.1-config.patch
+# porttime is part of libportmidi.so, there's no libporttime in Fedora
+Patch1: pygame-1.9.1-porttime.patch
Source0: http://pygame.org/ftp/%{name}-%{version}release.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -17,6 +19,7 @@ BuildRequires: python-devel numpy
BuildRequires: SDL_ttf-devel SDL_image-devel SDL_mixer-devel
BuildRequires: SDL-devel
BuildRequires: libpng-devel libjpeg-devel libX11-devel
+BuildRequires: portmidi-devel
Requires: numpy
%description
@@ -42,6 +45,7 @@ pygame.
%setup -qn %{name}-%{version}release
%patch0 -p1
+%patch1 -p1
# rpmlint fixes
find examples/ -type f -print0 | xargs -0 chmod -x
@@ -95,6 +99,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Aug 12 2010 Jan Kaluza <jkaluza at redhat.com> - 1.9.1-3
+- fix #585526 - add MIDI support
+
* Wed Jul 21 2010 David Malcolm <dmalcolm at redhat.com> - 1.9.1-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
More information about the scm-commits
mailing list