forked from pool/python-pygame
145 lines
4.7 KiB
RPMSpec
145 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package python-pygame (Version 1.7.1release)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: python-pygame
|
|
BuildRequires: SDL_image-devel SDL_mixer-devel SDL_ttf-devel python-devel python-numeric xorg-x11
|
|
Version: 1.7.1release
|
|
Release: 105
|
|
Source: pygame-%{version}.tar.bz2
|
|
Source1: README.SuSE
|
|
Patch0: %{name}-%{version}-pep353.diff
|
|
Summary: A Python Module for Interfacing with the SDL Multimedia Library
|
|
License: LGPL v2 or later
|
|
Group: Development/Libraries/Python
|
|
URL: http://www.pygame.org/
|
|
Provides: pygame
|
|
Obsoletes: pygame
|
|
Autoreqprov: on
|
|
%{py_requires}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Pygame is a Python wrapper module for the SDL multimedia library. It
|
|
contains Python functions and classes that allow you to use SDL's
|
|
support for playing CD-ROMs, audio and video output, and keyboard,
|
|
mouse and joystick input. Pygame also includes support for the
|
|
Numerical Python extension. Pygame is the successor to the pySDL
|
|
wrapper project, written by Mark Baker.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Pete Shinners <pete@shinners.org>
|
|
|
|
%package doc
|
|
Summary: pygame documentation and example programs
|
|
Group: Development/Libraries/Python
|
|
Provides: pygame-doc
|
|
Obsoletes: pygame-doc
|
|
Requires: python-pygame = %version-%release
|
|
|
|
%description doc
|
|
pygame is a Python wrapper module for the SDL multimedia library. It
|
|
contains python functions and classes that will allow you to use SDL's
|
|
support for playing cdroms, audio and video output, and keyboard, mouse
|
|
and joystick input. pygame also includes support for the Numerical
|
|
Python extension. pygame is the successor to the pySDL wrapper project,
|
|
written by Mark Baker.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Pete Shinners <pete@shinners.org>
|
|
|
|
%prep
|
|
%setup -n pygame-%{version}
|
|
%patch0
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wall"
|
|
yes "y" | python -d config.py
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
|
#install doc
|
|
install -d $RPM_BUILD_ROOT%{_docdir}/python-pygame
|
|
install -m 644 WHATSNEW readme.txt %{S:1} $RPM_BUILD_ROOT%{_docdir}/python-pygame
|
|
cp -r docs/ examples/ $RPM_BUILD_ROOT%{_docdir}/python-pygame
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(644, root, root, 755)
|
|
%doc %dir %{_docdir}/python-pygame
|
|
%doc %{_docdir}/python-pygame/WHATSNEW
|
|
%doc %{_docdir}/python-pygame/readme.txt
|
|
%doc %{_docdir}/python-pygame/README.SuSE
|
|
|
|
%files doc
|
|
%defattr(644, root, root, 755)
|
|
%doc %{_docdir}/python-pygame/docs
|
|
%doc %{_docdir}/python-pygame/examples
|
|
|
|
%changelog
|
|
* Tue Aug 21 2007 - meissner@suse.de
|
|
- buildrequire SDL_ttf -> SDL_ttf-devel
|
|
* Tue Nov 21 2006 - prusnak@suse.cz
|
|
- changes according to PEP353 (pep353.diff)
|
|
* Tue Feb 28 2006 - jmatejek@suse.cz
|
|
- updated to reflect python changes due to #149809
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Thu Oct 06 2005 - matejcik@suse.cz
|
|
- update to 1.7.1release
|
|
- removed readme.html, which is no longer provided
|
|
* Wed Feb 02 2005 - ro@suse.de
|
|
- fix build
|
|
* Tue Sep 21 2004 - mcihar@suse.cz
|
|
- update to 1.6.2, this (among others) fixes brokeness on x86_64 - bug #45731
|
|
* Fri Jan 30 2004 - mcihar@suse.cz
|
|
- fixed documentation installation
|
|
* Fri Oct 24 2003 - mcihar@suse.cz
|
|
- update to 1.6 (This new release mainly contains stability and internal
|
|
fixes, small fixes for line and circle primitives, many fixes for locating
|
|
system TrueType fonts, an updated Mac OS X environment, and bigger integer
|
|
storage for Rect objects.)
|
|
- patch was included in upstream
|
|
- no root for build
|
|
* Thu Oct 02 2003 - mcihar@suse.cz
|
|
- fixed mode related functions that failed on AMD64, thanks to gpayer@suse.de (bug #31709)
|
|
* Mon Jun 16 2003 - mcihar@suse.cz
|
|
- use record-rpm
|
|
- updated to 1.5.6
|
|
* Mon May 12 2003 - mcihar@suse.cz
|
|
- use versioned dependency on python
|
|
* Wed Jan 08 2003 - mcihar@suse.cz
|
|
- added obsoletes and provides for rename
|
|
- moved doc into %%{_defaultdocdir}/python-pygame
|
|
- some doc is in base package with info where to find more
|
|
* Mon Jan 06 2003 - mcihar@suse.cz
|
|
- update to 1.5.5
|
|
* improved Unicode support
|
|
* fixed some bugs
|
|
- renamed to python-pygame
|
|
* Mon Aug 12 2002 - ro@suse.de
|
|
- update to 1.5 to get rid of conflict with pause() from unistd
|
|
* Mon Feb 18 2002 - vinil@suse.cz
|
|
- pygame now requires python
|
|
* Mon Feb 04 2002 - nadvornik@suse.cz
|
|
- update to 1.4
|
|
* Tue Jan 29 2002 - nadvornik@suse.cz
|
|
- new package, version 1.3
|