Hello community,

here is the log from the commit of package tecnoballz for openSUSE:Factory 
checked in at 2019-07-31 14:31:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tecnoballz (Old)
 and      /work/SRC/openSUSE:Factory/.tecnoballz.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tecnoballz"

Wed Jul 31 14:31:21 2019 rev:3 rq:719871 version:0.93.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/tecnoballz/tecnoballz.changes    2017-04-20 
20:51:51.644237732 +0200
+++ /work/SRC/openSUSE:Factory/.tecnoballz.new.4126/tecnoballz.changes  
2019-07-31 14:31:29.501990963 +0200
@@ -1,0 +2,8 @@
+Sat Jul 27 20:32:18 UTC 2019 - Martin Hauke <mar...@gmx.de>
+
+- Add patch:
+  * 0001-Workaround-compilation-warnings-with-gccs-8.0.patch
+- Run spec-cleaner
+- Use pkg-config style BuildRequires
+
+-------------------------------------------------------------------

New:
----
  0001-Workaround-compilation-warnings-with-gccs-8.0.patch

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

Other differences:
------------------
++++++ tecnoballz.spec ++++++
--- /var/tmp/diff_new_pack.OD4bdO/_old  2019-07-31 14:31:30.401990344 +0200
+++ /var/tmp/diff_new_pack.OD4bdO/_new  2019-07-31 14:31:30.405990341 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package tecnoballz
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright Vincent Petry <pvinc...@yahoo.fr>
 #
 # All modifications and additions to the file contributed by third parties
@@ -13,28 +13,31 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           tecnoballz
-Summary:        An exciting Brick Breaker
-License:        GPL-3.0
-Group:          Amusements/Games/Action/Breakout
 Version:        0.93.1
 Release:        0
-Url:            http://linux.tlk.fr/games/TecnoballZ/
+Summary:        An exciting Brick Breaker
+License:        GPL-3.0-only
+Group:          Amusements/Games/Action/Breakout
+URL:            http://linux.tlk.fr/games/TecnoballZ/
 Source:         
http://linux.tlk.fr/games/TecnoballZ/download/%{name}-%{version}.tgz
 Source1:        %{name}.desktop
 Source2:        %{name}.png
-BuildRequires:  SDL-devel
-BuildRequires:  SDL_image-devel
-BuildRequires:  SDL_mixer-devel
+# PATCH-FIX-OPENSUSE 0001-Workaround-compilation-warnings-with-gccs-8.0.patch
+Patch0:         0001-Workaround-compilation-warnings-with-gccs-8.0.patch
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
-BuildRequires:  libmikmod-devel
 BuildRequires:  libtool
+BuildRequires:  pkgconfig
 BuildRequires:  tinyxml-devel
+BuildRequires:  pkgconfig(SDL_image)
+BuildRequires:  pkgconfig(SDL_mixer)
+BuildRequires:  pkgconfig(libmikmod)
+BuildRequires:  pkgconfig(sdl)
 %if 0%{?suse_version}
 BuildRequires:  update-desktop-files
 %endif
@@ -48,11 +51,14 @@
 
 %prep
 %setup -q
+%if 0%{?suse_version} >= 1550
+%patch0 -p1
+%endif
 
 # Fix games path to %{_bindir} instead of /usr/games
 find -name Makefile.am -exec sed -i -e "s|^gamesdir =.*$|gamesdir = 
%{_bindir}|g" \{\} \;
 
-sed -i -e "s|^CXXFLAGS=\"\(.*\)\"|CXXFLAGS=\"\1 $RPM_OPT_FLAGS\"|" configure.ac
+sed -i -e "s|^CXXFLAGS=\"\(.*\)\"|CXXFLAGS=\"\1 %{optflags}\"|" configure.ac
 
 %build
 autoreconf -fi
@@ -62,8 +68,8 @@
 %install
 make DESTDIR=%{buildroot} install-strip
 install -Dm 0644 man/%{name}.fr.6 %{buildroot}%{_mandir}/fr/man6/%{name}.6
-install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop
-install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
+install -Dm 0644 %{SOURCE1} 
%{buildroot}%{_datadir}/applications/%{name}.desktop
+install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
 
 %if 0%{?suse_version}
 %suse_update_desktop_file %{name}
@@ -72,11 +78,11 @@
 %fdupes -s %{buildroot}%{_prefix}
 
 %files
-%defattr(-,root,root,-)
-%doc AUTHORS CHANGES COPYING NEWS README
+%license COPYING
+%doc AUTHORS CHANGES NEWS README
 %attr(0755,root,root) %{_bindir}/%{name}
-%{_mandir}/fr/man6/%{name}.6%{ext_man}
-%{_mandir}/man6/%{name}.6%{ext_man}
+%{_mandir}/fr/man6/%{name}.6%{?ext_man}
+%{_mandir}/man6/%{name}.6%{?ext_man}
 %{_datadir}/%{name}
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/%{name}.png

++++++ 0001-Workaround-compilation-warnings-with-gccs-8.0.patch ++++++
>From cd5192c8da6eadf55bb9564cfba74678d0325c2b Mon Sep 17 00:00:00 2001
From: Martin Hauke <mar...@gmx.de>
Date: Sat, 27 Jul 2019 22:29:23 +0200
Subject: [PATCH] Workaround compilation warnings with gccs (>=8.0)

Build with "-Wno-error=stringop-truncation"
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 67c7ec1..04f17e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,7 +65,7 @@ if test "x${enable_devel}" = "xyes"; then
   AC_DEFINE(UNDER_DEVELOPMENT,  1, Define to enable development version)
   CXXFLAGS="-Werror -O2 -Wall -pedantic -Wextra -std=gnu++98 -g"
 else
-  CXXFLAGS="-O2 -Werror -Wall -pedantic -Wextra -std=gnu++98"
+  CXXFLAGS="-O2 -Werror -Wall -Wno-error=stringop-truncation -pedantic -Wextra 
-std=gnu++98"
 fi
 
 AC_OUTPUT(
-- 
2.16.4



Reply via email to