[6558] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | |
---|
| 3 | Name: pygame |
---|
| 4 | Version: 1.9.1 |
---|
[8154] | 5 | Release: 2%{?_dist_release} |
---|
[6558] | 6 | Summary: Python modules for writing games |
---|
| 7 | Summary(ja): ゲームを書くための Python モジュール |
---|
| 8 | |
---|
| 9 | Group: Development/Languages |
---|
| 10 | License: LGPLv2+ |
---|
| 11 | URL: http://www.pygame.org |
---|
| 12 | |
---|
| 13 | Source0: http://pygame.org/ftp/%{name}-%{version}release.tar.gz |
---|
| 14 | Patch0: %{name}-1.9.1-config.patch |
---|
| 15 | # porttime is part of libportmidi.so, there's no libporttime in Fedora |
---|
| 16 | Patch1: pygame-1.9.1-porttime.patch |
---|
| 17 | Patch2: pygame-1.9.1-no-test-install.patch |
---|
| 18 | # patch backported from upstream repository, V4L has been remove in linux-2.6.38 |
---|
| 19 | # http://svn.seul.org/viewcvs/viewvc.cgi?view=rev&root=PyGame&revision=3077 |
---|
| 20 | Patch3: pygame-remove-v4l.patch |
---|
| 21 | Patch4: MMX.diff |
---|
| 22 | |
---|
| 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 24 | |
---|
| 25 | BuildRequires: python-devel numpy |
---|
| 26 | BuildRequires: SDL_image-devel SDL_mixer-devel SDL_ttf-devel |
---|
| 27 | BuildRequires: SDL-devel |
---|
| 28 | BuildRequires: libpng-devel libjpeg-turbo-devel libX11-devel smpeg-devel |
---|
| 29 | #BuildRequires: portmidi-devel |
---|
| 30 | Requires: numpy |
---|
| 31 | |
---|
[8154] | 32 | Vendor: Project Vine |
---|
| 33 | Distribution: Vine Linux |
---|
| 34 | |
---|
[6558] | 35 | %description |
---|
| 36 | Pygame is a set of Python modules designed for writing games. It is |
---|
| 37 | written on top of the excellent SDL library. This allows you to create |
---|
| 38 | fully featured games and multimedia programs in the python language. |
---|
| 39 | Pygame is highly portable and runs on nearly every platform and |
---|
| 40 | operating system. |
---|
| 41 | |
---|
| 42 | %package devel |
---|
| 43 | Summary: Files needed for developing programs which use pygame |
---|
| 44 | Summary(ja): pygame を使用するプログラム開発に必要なファイル |
---|
| 45 | Group: Development/Libraries |
---|
| 46 | Requires: %{name} = %{version}-%{release} |
---|
| 47 | Requires: SDL_ttf-devel SDL_mixer-devel |
---|
| 48 | Requires: python-devel |
---|
| 49 | |
---|
| 50 | %description devel |
---|
| 51 | This package contains headers required to build applications that use |
---|
| 52 | pygame. |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %prep |
---|
| 56 | %setup -qn %{name}-%{version}release |
---|
| 57 | |
---|
| 58 | %patch0 -p1 |
---|
| 59 | %patch1 -p1 |
---|
| 60 | %patch2 -p1 |
---|
| 61 | %patch3 -p1 |
---|
| 62 | %patch4 -p1 |
---|
| 63 | |
---|
| 64 | # rpmlint fixes |
---|
| 65 | find examples/ -type f -print0 | xargs -0 chmod -x |
---|
| 66 | find docs/ -type f -print0 | xargs -0 chmod -x |
---|
| 67 | find src/ -type f -name '*.h' -print0 | xargs -0 chmod -x |
---|
| 68 | chmod -x README.txt WHATSNEW |
---|
| 69 | |
---|
| 70 | iconv -f iso8859-1 -t utf-8 WHATSNEW > WHATSNEW.conv && mv -f WHATSNEW.conv WHATSNEW |
---|
| 71 | iconv -f iso8859-1 -t utf-8 README.txt > README.txt.conv && mv -f README.txt.conv README.txt |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | # These files must be provided by pygame-nonfree(-devel) packages on a |
---|
| 75 | # repository that does not have restrictions on providing non-free software |
---|
| 76 | rm -f src/ffmovie.[ch] |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %build |
---|
| 80 | CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %install |
---|
| 84 | rm -rf $RPM_BUILD_ROOT |
---|
| 85 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
---|
| 86 | |
---|
| 87 | # Fix permissions |
---|
| 88 | chmod 755 $RPM_BUILD_ROOT%{python_sitearch}/%{name}/*.so |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %check |
---|
| 92 | # base_test fails in mock, unable to find soundcard |
---|
| 93 | PYTHONPATH="$RPM_BUILD_ROOT%{python_sitearch}" %{__python} test/base_test.py || : |
---|
| 94 | PYTHONPATH="$RPM_BUILD_ROOT%{python_sitearch}" %{__python} test/image_test.py |
---|
| 95 | PYTHONPATH="$RPM_BUILD_ROOT%{python_sitearch}" %{__python} test/rect_test.py |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | %clean |
---|
| 99 | rm -rf $RPM_BUILD_ROOT |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %files |
---|
| 103 | %defattr(-,root,root,-) |
---|
| 104 | %doc docs/ README.txt WHATSNEW |
---|
| 105 | #%dir %{python_sitearch}/%{name} |
---|
| 106 | %{python_sitearch}/%{name}* |
---|
| 107 | |
---|
| 108 | %files devel |
---|
| 109 | %defattr(-,root,root,-) |
---|
| 110 | %doc examples/ |
---|
| 111 | %dir %{_includedir}/python*/%{name} |
---|
| 112 | %{_includedir}/python*/%{name}/*.h |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | %changelog |
---|
[8154] | 116 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.9.1-2 |
---|
| 117 | - rebuild with VineSeed environment |
---|
| 118 | |
---|
[6558] | 119 | * Fri Jul 13 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.9.1-1 |
---|
| 120 | - initial build for VineSeed |
---|
| 121 | |
---|
| 122 | * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-8 |
---|
| 123 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 124 | |
---|
| 125 | * Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.9.1-7 |
---|
| 126 | - Rebuild for new libpng |
---|
| 127 | |
---|
| 128 | * Thu Jun 23 2011 Jan Kaluza <jkaluza@redhat.com> - 1.9.1-6 |
---|
| 129 | - Removed V4L support because V4L has been deprecated from the Linux |
---|
| 130 | kernel as of 2.6.38 |
---|
| 131 | |
---|
| 132 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-5 |
---|
| 133 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 134 | |
---|
| 135 | * Mon Aug 16 2010 Jan Kaluza <jkaluza@redhat.com> - 1.9.1-4 |
---|
| 136 | - fix #607753 - Do not install tests |
---|
| 137 | |
---|
| 138 | * Thu Aug 12 2010 Jan Kaluza <jkaluza@redhat.com> - 1.9.1-3 |
---|
| 139 | - fix #585526 - add MIDI support |
---|
| 140 | |
---|
| 141 | * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.9.1-2 |
---|
| 142 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
| 143 | |
---|
| 144 | * Thu Oct 08 2009 Jon Ciesla <limb@jcomserv.net> - 1.9.1-1 |
---|
| 145 | - New upstream release, BZ 526365. |
---|
| 146 | - Updated config_unix patch for 1.9.1. |
---|
| 147 | |
---|
| 148 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-7 |
---|
| 149 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 150 | |
---|
| 151 | * Fri Apr 17 2009 Jon Ciesla <limb@jcomserv.net> - 1.8.1-6 |
---|
| 152 | - Dropped f2py deps, unneeded now that numpy is fixed: BZ 496277. |
---|
| 153 | |
---|
| 154 | * Fri Apr 17 2009 Jon Ciesla <limb@jcomserv.net> - 1.8.1-5 |
---|
| 155 | - Add dep for numpy-f2py to fix broken games, BZ 496218. |
---|
| 156 | |
---|
| 157 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-4 |
---|
| 158 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 159 | |
---|
| 160 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.8.1-3 |
---|
| 161 | - Rebuild for Python 2.6 |
---|
| 162 | |
---|
| 163 | * Wed Sep 17 2008 Robin Norwood <robin.norwood@gmail.com> 1.8.1-2 |
---|
| 164 | - Bump release to trump F9 version. |
---|
| 165 | |
---|
| 166 | * Tue Aug 26 2008 Robin Norwood <robin.norwood@gmail.com> 1.8.1-1 |
---|
| 167 | - Update to new upstream version. |
---|
| 168 | - rpmlint fixes |
---|
| 169 | |
---|
| 170 | * Mon Aug 25 2008 Robin Norwood <robin.norwood@gmail.com> 1.8.0-3 |
---|
| 171 | - Rebase config patch for 1.8.0 |
---|
| 172 | - Need to specify BR: SDL-devel |
---|
| 173 | |
---|
| 174 | * Mon Aug 25 2008 Robin Norwood <robin.norwood@gmail.com> 1.8.0-2 |
---|
| 175 | - Change from requiring python-numeric to numpy |
---|
| 176 | - rhbz#457074 |
---|
| 177 | |
---|
| 178 | * Thu May 22 2008 Christopher Stone <chris.stone@gmail.com> 1.8.0-1 |
---|
| 179 | - Upstream sync |
---|
| 180 | - Remove Obsolets/Provides (been around since FC-4) |
---|
| 181 | - Remove no longer needed 64bit patch |
---|
| 182 | - Remove %%{version} macro from Patch0 definition |
---|
| 183 | - Add png, jpeg, and X11 libraries to BuildRequires |
---|
| 184 | - Simplify %%files section |
---|
| 185 | - Fix up some rpmlint warnings |
---|
| 186 | |
---|
| 187 | * Thu Feb 21 2008 Christopher Stone <chris.stone@gmail.com> 1.7.1-16 |
---|
| 188 | - Add egginfo file to %%files |
---|
| 189 | - Update %%license |
---|
| 190 | - Fix permissions on .so files |
---|
| 191 | |
---|
| 192 | * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.7.1-15 |
---|
| 193 | - Autorebuild for GCC 4.3 |
---|
| 194 | |
---|
| 195 | * Tue May 15 2007 Christopher Stone <chris.stone@gmail.com> 1.7.1-14 |
---|
| 196 | - Add one more bit to 64-bit patch |
---|
| 197 | |
---|
| 198 | * Sat May 12 2007 Christopher Stone <chris.stone@gmail.com> 1.7.1-13 |
---|
| 199 | - Apply 64-bit patch for python 2.5 (bz #239899) |
---|
| 200 | - Some minor spec file cleanups |
---|
| 201 | |
---|
| 202 | * Mon Apr 23 2007 Christopher Stone <chris.stone@gmail.com> 1.7.1-12 |
---|
| 203 | - Revert back to version 1.7.1-9 |
---|
| 204 | |
---|
| 205 | * Mon Dec 11 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-11 |
---|
| 206 | - Remove all Obsolete/Provides |
---|
| 207 | - Remove Requires on all devel packages |
---|
| 208 | |
---|
| 209 | * Sun Dec 10 2006 Christopher Stone <chris.stone@gmail.som> 1.7.1-10 |
---|
| 210 | - Remove macosx examples |
---|
| 211 | - Move header files into main package |
---|
| 212 | - Move examples into examples subpackage |
---|
| 213 | - python(abi) = 0:2.5 |
---|
| 214 | |
---|
| 215 | * Wed Sep 06 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-9 |
---|
| 216 | - No longer %%ghost pyo files. Bug #205396 |
---|
| 217 | |
---|
| 218 | * Sat Sep 02 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-8 |
---|
| 219 | - FC6 Rebuild |
---|
| 220 | |
---|
| 221 | * Wed Jun 28 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-7.fc6.1 |
---|
| 222 | - Rebuild bump |
---|
| 223 | |
---|
| 224 | * Wed May 03 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-7 |
---|
| 225 | - Fix Obsolete/Provides of python-pygame-doc |
---|
| 226 | |
---|
| 227 | * Wed Apr 26 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-6 |
---|
| 228 | - Bump release for new build on devel |
---|
| 229 | |
---|
| 230 | * Wed Apr 26 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-5 |
---|
| 231 | - Add Obsolete/Provides tags for python-pygame-docs |
---|
| 232 | - Add Obsolete/Provides tags for python-pygame-devel to devel package |
---|
| 233 | - Hopefully this fixes Bugzilla bug #189991 |
---|
| 234 | |
---|
| 235 | * Fri Apr 21 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-4 |
---|
| 236 | - Add Requires to -devel package |
---|
| 237 | - Remove ffmovie.h from -devel package since it requires smpeg-devel |
---|
| 238 | |
---|
| 239 | * Fri Apr 21 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-3 |
---|
| 240 | - Obsolete linva python-pygame package |
---|
| 241 | - Added Provides for python-pygame |
---|
| 242 | - Fix equal sign in devel requires |
---|
| 243 | |
---|
| 244 | * Thu Apr 20 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-2 |
---|
| 245 | - Added a patch to clean up some warnings on 64 bit compiles |
---|
| 246 | |
---|
| 247 | * Tue Apr 18 2006 Christopher Stone <chris.stone@gmail.com> 1.7.1-1 |
---|
| 248 | - Initial RPM release |
---|