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:
committed by
Git OBS Bridge
parent
16f8c7cf85
commit
d5beb7fdc3
@@ -1,22 +0,0 @@
|
|||||||
--- bundle_docs.py
|
|
||||||
+++ bundle_docs.py
|
|
||||||
@@ -44,7 +44,7 @@
|
|
||||||
try:
|
|
||||||
root = os.path.abspath('.')
|
|
||||||
alias = 'pygame'
|
|
||||||
- add_files(bundle, root, alias, ['LGPL', 'readme.html', 'install.html'])
|
|
||||||
+ add_files(bundle, root, alias, ['LGPL', 'install.html'])
|
|
||||||
add_directory(bundle, os.path.join(root, 'docs'), os.path.join(alias, 'docs'))
|
|
||||||
add_directory(bundle, os.path.join(root, 'examples'), os.path.join(alias, 'examples'))
|
|
||||||
print "\nFinished", bundle_name
|
|
||||||
--- setup.py
|
|
||||||
+++ setup.py
|
|
||||||
@@ -174,7 +174,7 @@
|
|
||||||
|
|
||||||
#add files in distribution directory
|
|
||||||
pygame_data_files.append('LGPL')
|
|
||||||
-pygame_data_files.append('readme.html')
|
|
||||||
+#pygame_data_files.append('readme.html')
|
|
||||||
pygame_data_files.append('install.html')
|
|
||||||
|
|
||||||
#add non .py files in lib directory
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:49c3078c7dfeefb1188d4f8c39f975a4fe9f4f90662b09e0444fbff4ffd69720
|
|
||||||
size 1921931
|
|
3
pygame-1.9.1release.tar.gz
Normal file
3
pygame-1.9.1release.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a26095472ae4be9631e0d5bfb9a52ac57a3a091e45757913128e4a473807d433
|
||||||
|
size 2134254
|
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 8 12:52:19 UTC 2010 - prusnak@opensuse.org
|
||||||
|
|
||||||
|
- updated to 1.9.1
|
||||||
|
* add missing readme.html
|
||||||
|
* bugfixes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 5 20:09:35 CEST 2009 - matejcik@suse.cz
|
Wed Aug 5 20:09:35 CEST 2009 - matejcik@suse.cz
|
||||||
|
|
||||||
@@ -11,7 +18,7 @@ Wed Aug 5 20:09:35 CEST 2009 - matejcik@suse.cz
|
|||||||
Mon May 4 12:04:09 CEST 2009 - ro@suse.de
|
Mon May 4 12:04:09 CEST 2009 - ro@suse.de
|
||||||
|
|
||||||
- buildrequires: replace python-numeric by python-numpy
|
- buildrequires: replace python-numeric by python-numpy
|
||||||
for >= 11.2
|
for >= 11.2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 20 13:28:17 CET 2009 - matejcik@suse.cz
|
Fri Mar 20 13:28:17 CET 2009 - matejcik@suse.cz
|
||||||
@@ -27,7 +34,7 @@ Fri Sep 12 14:20:01 CEST 2008 - matejcik@suse.cz
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 2 01:41:13 CEST 2008 - crrodriguez@suse.de
|
Mon Jun 2 01:41:13 CEST 2008 - crrodriguez@suse.de
|
||||||
|
|
||||||
- needs fno-strict-aliasing
|
- needs fno-strict-aliasing
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 3 16:15:37 CEST 2008 - prusnak@suse.cz
|
Thu Apr 3 16:15:37 CEST 2008 - prusnak@suse.cz
|
||||||
@@ -65,7 +72,7 @@ Thu Oct 6 17:38:03 CEST 2005 - matejcik@suse.cz
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 2 14:40:49 CET 2005 - ro@suse.de
|
Wed Feb 2 14:40:49 CET 2005 - ro@suse.de
|
||||||
|
|
||||||
- fix build
|
- fix build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 21 18:22:53 CEST 2004 - mcihar@suse.cz
|
Tue Sep 21 18:22:53 CEST 2004 - mcihar@suse.cz
|
||||||
@@ -121,7 +128,7 @@ Mon Jan 06 12:16:46 CET 2003 - mcihar@suse.cz
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 12 11:26:17 CEST 2002 - ro@suse.de
|
Mon Aug 12 11:26:17 CEST 2002 - ro@suse.de
|
||||||
|
|
||||||
- update to 1.5 to get rid of conflict with pause() from unistd
|
- update to 1.5 to get rid of conflict with pause() from unistd
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 18 15:56:57 CET 2002 - vinil@suse.cz
|
Mon Feb 18 15:56:57 CET 2002 - vinil@suse.cz
|
||||||
|
@@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,30 +15,33 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: python-pygame
|
Name: python-pygame
|
||||||
BuildRequires: SDL_image-devel SDL_mixer-devel SDL_ttf-devel libjpeg-devel libpng-devel python-devel xorg-x11
|
Version: 1.9.1
|
||||||
%if %suse_version > 1110
|
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
|
BuildRequires: python-numpy
|
||||||
%else
|
%else
|
||||||
BuildRequires: python-numeric
|
BuildRequires: python-numeric
|
||||||
%endif
|
%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}
|
%{py_requires}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pygame is a Python wrapper module for the SDL multimedia library. It
|
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
|
Numerical Python extension. Pygame is the successor to the pySDL
|
||||||
wrapper project, written by Mark Baker.
|
wrapper project, written by Mark Baker.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Pete Shinners <pete@shinners.org>
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
License: LGPL v2.1 or later
|
License: LGPLv2.1+
|
||||||
Summary: Pygame documentation and example programs
|
Summary: Pygame documentation and example programs
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Provides: pygame-doc
|
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,
|
Python extension. pygame is the successor to the pySDL wrapper project,
|
||||||
written by Mark Baker.
|
written by Mark Baker.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Pete Shinners <pete@shinners.org>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pygame-%{version}release
|
%setup -q -n pygame-%{version}release
|
||||||
%patch1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
|
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
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%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 doc
|
||||||
install -d $RPM_BUILD_ROOT%{_docdir}/python-pygame
|
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
|
cp -r docs/ examples/ $RPM_BUILD_ROOT%{_docdir}/python-pygame
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f INSTALLED_FILES
|
%files -f INSTALLED_FILES
|
||||||
%defattr(644, root, root, 755)
|
%defattr(644,root,root,755)
|
||||||
%doc %dir %{_docdir}/python-pygame
|
%doc %dir %{_docdir}/python-pygame
|
||||||
%doc %{_docdir}/python-pygame/WHATSNEW
|
%doc %{_docdir}/python-pygame/WHATSNEW
|
||||||
%doc %{_docdir}/python-pygame/README.txt
|
%doc %{_docdir}/python-pygame/README.txt
|
||||||
%doc %{_docdir}/python-pygame/README.SuSE
|
%doc %{_docdir}/python-pygame/README.SUSE
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(644, root, root, 755)
|
%defattr(644,root,root,755)
|
||||||
%doc %{_docdir}/python-pygame/docs
|
%doc %{_docdir}/python-pygame/docs
|
||||||
%doc %{_docdir}/python-pygame/examples
|
%doc %{_docdir}/python-pygame/examples
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user