Hello community, here is the log from the commit of package python-pygame for openSUSE:Factory checked in at 2018-09-11 17:19:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pygame (Old) and /work/SRC/openSUSE:Factory/.python-pygame.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pygame" Tue Sep 11 17:19:52 2018 rev:27 rq:634783 version:1.9.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pygame/python-pygame.changes 2018-08-24 17:00:05.421785944 +0200 +++ /work/SRC/openSUSE:Factory/.python-pygame.new/python-pygame.changes 2018-09-11 17:20:05.687153018 +0200 @@ -1,0 +2,5 @@ +Mon Sep 3 14:42:31 UTC 2018 - Matěj Cepl <[email protected]> + +- Clean up SPEC, avoid warnings. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pygame.spec ++++++ --- /var/tmp/diff_new_pack.HbPIYX/_old 2018-09-11 17:20:07.239150647 +0200 +++ /var/tmp/diff_new_pack.HbPIYX/_new 2018-09-11 17:20:07.243150640 +0200 @@ -16,32 +16,23 @@ # - %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pygame Version: 1.9.4 Release: 0 -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+ +License: LGPL-2.1-or-later Group: Development/Libraries/Python -Url: https://github.com/pygame/pygame +URL: https://github.com/pygame/pygame +Source0: https://files.pythonhosted.org/packages/source/p/pygame/pygame-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy} BuildRequires: %{python_module setuptools} -BuildRequires: config(fluid-soundfont-gm) -BuildRequires: pkgconfig(SDL_image) -BuildRequires: pkgconfig(SDL_mixer) -BuildRequires: pkgconfig(SDL_ttf) -BuildRequires: pkgconfig(freetype2) -BuildRequires: pkgconfig(libjpeg) -BuildRequires: pkgconfig(libpng) -BuildRequires: pkgconfig(sdl) -BuildRequires: pkgconfig(x11) BuildRequires: fdupes BuildRequires: fontconfig BuildRequires: libtiff-devel BuildRequires: libv4l-devel >= 0.8.4 +BuildRequires: pkgconfig BuildRequires: portmidi-devel BuildRequires: python-rpm-macros BuildRequires: xorg-x11 @@ -51,13 +42,21 @@ BuildRequires: xorg-x11-fonts-75dpi BuildRequires: xorg-x11-fonts-core BuildRequires: xorg-x11-fonts-cyrillic +BuildRequires: config(fluid-soundfont-gm) +BuildRequires: pkgconfig(SDL_image) +BuildRequires: pkgconfig(SDL_mixer) +BuildRequires: pkgconfig(SDL_ttf) +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(libjpeg) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(sdl) +BuildRequires: pkgconfig(x11) Requires: fontconfig Requires: python-numpy %ifpython2 Provides: pygame = %{version} Obsoletes: pygame < %{version} %endif - %python_subpackages %description @@ -91,11 +90,9 @@ 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}|" {} \; +find examples -name '*.py' -exec sed -i "s|^#!%{_bindir}/env python$|#!%{_bindir}/python3|" {} \; +find examples -name '*.py' -exec sed -i "s|^#! %{_bindir}/env python$|#!%{_bindir}/python3|" {} \; chmod a+x examples/*.py -%fdupes docs -%fdupes examples %build export CFLAGS="%{optflags} -fno-strict-aliasing" @@ -105,7 +102,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %python_install %{python_expand pushd %{buildroot}%{$python_sitearch} -sed -i "s|^#!/usr/bin/env python$|#!%{__python3}|" pygame/tests/test_utils/png.py +sed -i "s|^#!%{_bindir}/env python$|#!%{_bindir}/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 @@ -114,9 +111,11 @@ 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 . +%fdupes %{buildroot}%{$python_sitearch} popd } +%fdupes docs +%fdupes examples %check export SDL_VIDEODRIVER=dummy
