14
0
forked from pool/python-pygame

Accepting request 48273 from devel:languages:python

Copy from devel:languages:python/python-pygame based on submit request 48273 from user coolo

OBS-URL: https://build.opensuse.org/request/show/48273
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygame?expand=0&rev=13
This commit is contained in:
OBS User autobuild
2010-09-17 23:43:44 +00:00
committed by Git OBS Bridge
parent 16f8c7cf85
commit d5beb7fdc3
6 changed files with 43 additions and 68 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pygame (Version 1.9.0)
# spec file for package python-pygame (Version 1.9.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,30 +15,33 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-pygame
BuildRequires: SDL_image-devel SDL_mixer-devel SDL_ttf-devel libjpeg-devel libpng-devel python-devel xorg-x11
%if %suse_version > 1110
Version: 1.9.1
Release: 1
Source: http://pygame.org/ftp/pygame-%{version}release.tar.gz
Source1: README.SUSE
Summary: A Python Module for Interfacing with the SDL Multimedia Library
License: LGPLv2.1+
Group: Development/Libraries/Python
Url: http://www.pygame.org/
Provides: pygame = %{version}
Obsoletes: pygame < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_ttf-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: python-devel
BuildRequires: xorg-x11
%if 0%{?suse_version} > 1110
BuildRequires: python-numpy
%else
BuildRequires: python-numeric
%endif
Version: 1.9.0
Release: 1
Source: pygame-%{version}release.tar.bz2
Source1: README.SuSE
Patch1: pygame-1.9.0-readme.html.patch
Summary: A Python Module for Interfacing with the SDL Multimedia Library
License: LGPL v2.1 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
@@ -48,14 +51,8 @@ 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
License: LGPL v2.1 or later
License: LGPLv2.1+
Summary: Pygame documentation and example programs
Group: Development/Libraries/Python
Provides: pygame-doc
@@ -70,40 +67,33 @@ 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 -q -n pygame-%{version}release
%patch1
%build
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
yes "y" | python -d config.py
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
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
install -m 644 WHATSNEW README.txt %{SOURCE1} $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)
%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
%doc %{_docdir}/python-pygame/README.SUSE
%files doc
%defattr(644, root, root, 755)
%defattr(644,root,root,755)
%doc %{_docdir}/python-pygame/docs
%doc %{_docdir}/python-pygame/examples