Hello community, here is the log from the commit of package python-pygame for openSUSE:Factory checked in at 2017-09-05 15:14:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pygame (Old) and /work/SRC/openSUSE:Factory/.python-pygame.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pygame" Tue Sep 5 15:14:30 2017 rev:24 rq:517638 version:1.9.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pygame/python-pygame.changes 2014-10-20 07:27:18.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pygame.new/python-pygame.changes 2017-09-05 15:14:34.706649540 +0200 @@ -1,0 +2,18 @@ +Thu Aug 17 22:13:05 UTC 2017 - [email protected] + +- Fix RPM group. + +------------------------------------------------------------------- +Tue Aug 8 20:33:56 UTC 2017 - [email protected] + +- Update to version 1.9.3 + * This is a bugfix release which fixes a couple of key issues + which came up with 1.9.2 +- Update to version 1.9.2 +- Implement single-spec version +- Fix source URL +- Fix shebangs +- Remove pygame-v4l-2.6.38.patch + No longer needed + +------------------------------------------------------------------- Old: ---- README.SUSE pygame-1.9.1release.tar.gz pygame-v4l-2.6.38.patch python-pygame.rpmlintrc New: ---- pygame-1.9.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pygame.spec ++++++ --- /var/tmp/diff_new_pack.hOJXuE/_old 2017-09-05 15:14:36.150446596 +0200 +++ /var/tmp/diff_new_pack.hOJXuE/_new 2017-09-05 15:14:36.154446034 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pygame # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,41 +16,41 @@ # +# There are font issues in the test environment +%bcond_with test + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pygame -Version: 1.9.1 +Version: 1.9.3 Release: 0 -Source: http://pygame.org/ftp/pygame-%{version}release.tar.gz -Source1: README.SUSE -Source2: python-pygame.rpmlintrc -# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines -Patch1: pygame-v4l-2.6.38.patch +Source0: https://files.pythonhosted.org/packages/source/P/Pygame/pygame-%{version}.tar.gz Summary: A Python Module for Interfacing with the SDL Multimedia Library License: LGPL-2.1+ Group: Development/Libraries/Python Url: http://www.pygame.org/ -Provides: pygame = %{version} -Obsoletes: pygame < %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module devel} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module setuptools} BuildRequires: SDL_image-devel BuildRequires: SDL_mixer-devel BuildRequires: SDL_ttf-devel BuildRequires: fdupes +BuildRequires: fontconfig +BuildRequires: freetype2-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 -%if 0%{?suse_version} >= 1210 BuildRequires: libv4l-devel >= 0.8.4 -%endif -%if 0%{?suse_version} >= 1320 BuildRequires: portmidi-devel +BuildRequires: python-rpm-macros +BuildRequires: xorg-x11 +Requires: fontconfig +Requires: python-numpy +%ifpython2 +Provides: pygame = %{version} +Obsoletes: pygame < %{version} %endif -%{py_requires} + +%python_subpackages %description Pygame is a Python wrapper module for the SDL multimedia library. It @@ -60,16 +60,6 @@ Numerical Python extension. Pygame is the successor to the pySDL wrapper project, written by Mark Baker. -%package doc -Summary: Pygame documentation and example programs -Group: Development/Libraries/Python -Provides: pygame-doc > 1.5.5 -Obsoletes: pygame-doc <= 1.5.5 -Requires: python-pygame = %{version} - -%description doc -This package contains documentation and example programs for Pygame. - %package devel Summary: Pygame development package Group: Development/Libraries/Python @@ -78,41 +68,71 @@ %description devel This package contains the header files for developers of Pygame. +%package -n %{name}-doc +Summary: Pygame documentation and example programs +Group: Documentation/Other +Provides: pygame-doc = %{version} +Obsoletes: pygame-doc < %{version} +Provides: %{python_module pygame-doc = %{version}} + +%description -n %{name}-doc +This package contains documentation and example programs for Pygame. + %prep -%setup -q -n pygame-%{version}release -%if 0%{?suse_version} >= 1210 -%patch1 -%endif +%setup -q -n pygame-%{version} +sed -i 's/\r$//' docs/reST/ref/code_examples/draw_module_example.py +sed -i 's/\r$//' docs/reST/ref/code_examples/joystick_calls.py +# Fix wrong-script-interpreter +find examples -name '*.py' -exec sed -i "s|^#!/usr/bin/env python$|#!%{__python3}|" {} \; +find examples -name '*.py' -exec sed -i "s|^#! /usr/bin/env python$|#!%{__python3}|" {} \; +chmod a+x examples/*.py +%fdupes docs +%fdupes examples %build -export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing" -yes y | python -d config.py -python setup.py build +export CFLAGS="%{optflags} -fno-strict-aliasing" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -#install doc -install -d %{buildroot}%{_docdir}/python-pygame -install -m 644 WHATSNEW README.txt %{SOURCE1} %{buildroot}%{_docdir}/python-pygame -cp -r docs/ examples/ %{buildroot}%{_docdir}/python-pygame - -%fdupes -s %{buildroot}%{_prefix} - -%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 -%{python_sitearch}/* - -%files doc -%defattr(644,root,root,755) -%doc %{_docdir}/python-pygame/docs -%doc %{_docdir}/python-pygame/examples - -%files devel -%defattr(644,root,root,755) -%{py_incdir}/pygame/ +%python_install +%{python_expand pushd %{buildroot}%{$python_sitearch} +sed -i "s|^#!/usr/bin/env python$|#!%{__python3}|" pygame/tests/test_utils/png.py +chmod a+x pygame/tests/test_utils/png.py +chmod a+x pygame/examples/macosx/aliens_app_example/aliens.py +chmod a+x pygame/examples/*.py +chmod a-x pygame/examples/__init__.py +chmod a-x pygame/examples/prevent_display_stretching.py +chmod a-x pygame/examples/freetype_misc.py +$python -m compileall -d %{$python_sitearch} pygame/tests/test_utils/ +$python -O -m compileall -d %{$python_sitearch} pygame/tests/test_utils/ +%fdupes . +popd +} + +%if %{with test} +%check +export SDL_VIDEODRIVER=dummy +export SDL_AUDIODRIVER=disk +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +$python -m pygame.tests.__main__ --exclude opengl --time_out 300 +} +%endif + +%files %{python_files} +%defattr(-,root,root) +%doc LGPL WHATSNEW readme.html readme.rst +%{python_sitearch}/pygame/ +%{python_sitearch}/pygame-%{version}-py*.egg-info + +%files %{python_files devel} +%defattr(-,root,root) +%doc LGPL +%{python_sysconfig_var INCLUDEPY}/pygame/ + +%files -n %{name}-doc +%defattr(-,root,root) +%doc LGPL +%doc docs/ +%doc examples/ %changelog ++++++ pygame-1.9.1release.tar.gz -> pygame-1.9.3.tar.gz ++++++ ++++ 181208 lines of diff (skipped)
