Hello community,

here is the log from the commit of package powdertoy for openSUSE:Factory 
checked in at 2020-01-13 22:22:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/powdertoy (Old)
 and      /work/SRC/openSUSE:Factory/.powdertoy.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "powdertoy"

Mon Jan 13 22:22:19 2020 rev:7 rq:763915 version:94.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/powdertoy/powdertoy.changes      2019-10-16 
09:18:29.866970807 +0200
+++ /work/SRC/openSUSE:Factory/.powdertoy.new.6675/powdertoy.changes    
2020-01-13 22:22:23.718542467 +0100
@@ -1,0 +2,7 @@
+Mon Jan 13 09:25:51 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- Switch to python3 build
+- Add patch to not force optflags crazyness:
+  * no-crazy-flags.patch
+
+-------------------------------------------------------------------

New:
----
  no-crazy-flags.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ powdertoy.spec ++++++
--- /var/tmp/diff_new_pack.WnQKsM/_old  2020-01-13 22:22:24.838542987 +0100
+++ /var/tmp/diff_new_pack.WnQKsM/_new  2020-01-13 22:22:24.842542989 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package powdertoy
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,20 +21,18 @@
 Release:        0
 Summary:        Physics sandbox game
 License:        GPL-3.0-only
-Group:          Amusements/Games/Other
 URL:            http://powdertoy.co.uk
 Source:         
https://github.com/simtr/The-Powder-Toy/archive/v%{version}.tar.gz
+Patch0:         no-crazy-flags.patch
 BuildRequires:  ImageMagick
 BuildRequires:  SDL2-devel
 BuildRequires:  SDL2_mixer-devel
 BuildRequires:  fftw3-devel
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
-BuildRequires:  git
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  libbz2-devel
-BuildRequires:  lua51-devel
-BuildRequires:  python-devel
+BuildRequires:  luajit-devel
 BuildRequires:  scons
 BuildRequires:  shared-mime-info
 BuildRequires:  update-desktop-files
@@ -50,24 +48,17 @@
 
 %prep
 %setup -q -n The-Powder-Toy-%{version}
+%patch0 -p1
 
 %build
-%ifarch x86_64
-scons --lin --release --64
-%else
-%ifarch %{ix86}
-scons --lin --release --32
-%else
-scons --lin --release --no-sse
-%endif
-%endif
+export CCFLAGS="%{optflags}"
+scons \
+  --luajit \
+  --lin \
+  --release
 
 %install
-%ifarch x86_64
-install -D -m 0755 build/powder64 %{buildroot}%{_bindir}/powder
-%else
-install -D -m 0755 build/powder %{buildroot}%{_bindir}/powder
-%endif
+install -D -m 0755 build/powder* %{buildroot}%{_bindir}/powder
 convert resources/icon.ico -strip resources/powder.png
 install -D -m 0644 resources/icon/powder-256.png 
%{buildroot}%{_datadir}/icons/hicolor/256x256/apps/powder.png
 install -D -m 0644 resources/icon/powder-128.png 
%{buildroot}%{_datadir}/icons/hicolor/128x128/apps/powder.png
@@ -80,16 +71,6 @@
 install -D -m 0644 resources/powder.appdata.xml 
%{buildroot}%{_datadir}/appdata/powder.appdata.xml
 install -D -m 0644 resources/powdertoy-save.xml 
%{buildroot}%{_datadir}/mime/packages/powdertoy-save.xml
 
-%post
-%icon_theme_cache_post
-%desktop_database_post
-%mime_database_post
-
-%postun
-%icon_theme_cache_postun
-%desktop_database_postun
-%mime_database_postun
-
 %files
 %license LICENSE
 %doc README.md TODO

++++++ no-crazy-flags.patch ++++++
Index: The-Powder-Toy-94.1/SConscript
===================================================================
--- The-Powder-Toy-94.1.orig/SConscript
+++ The-Powder-Toy-94.1/SConscript
@@ -473,10 +473,6 @@ elif GetOption('release'):
                        env.Append(CCFLAGS=['/MT'])
                else:
                        env.Append(CCFLAGS=['/MD'])
-       else:
-               env.Append(CCFLAGS=['-O3', '-ftree-vectorize', 
'-funsafe-math-optimizations', '-ffast-math', '-fomit-frame-pointer'])
-               if platform != "Darwin":
-                       env.Append(CCFLAGS=['-funsafe-loop-optimizations'])
 
 if GetOption('static'):
        if platform == "Windows":

Reply via email to