Hello community,

here is the log from the commit of package yamagi-quake2 for openSUSE:Factory 
checked in at 2017-02-14 00:43:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yamagi-quake2 (Old)
 and      /work/SRC/openSUSE:Factory/.yamagi-quake2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yamagi-quake2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yamagi-quake2/yamagi-quake2.changes      
2016-09-16 11:00:00.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.yamagi-quake2.new/yamagi-quake2.changes 
2017-02-14 00:43:57.587856640 +0100
@@ -1,0 +2,42 @@
+Fri Feb 10 02:35:54 UTC 2017 - luke.nukem.jo...@gmail.com
+
+- Add appdata.xml
+
+-------------------------------------------------------------------
+Fri Dec 16 05:15:37 UTC 2016 - luke.nukem.jo...@gmail.com
+
+Update to version 6.00
+
+- Make the client asynchronous. The old behaviour can be forced by
+  setting cl_async to 0. Please note that asynchronicity can lead
+  to problems if the old SDL 1.2 backend is used and vsync is
+  enabled.
+- Implement gl_overbrightbits in the non multitexturing case.  A
+  value of 1 just fixes lighting on water surfaces, higher values
+  increase the brightness of everything.
+- General renderer overhaul for better compatibility with modern GPU
+  OpenGL 1.4 is now required, older versions are no longer supported.
+  Multitexturing was deprecated and will be removed in a future
+  release.
+- Fix some longstanding AI problems.
+- Several general gameplay fixes.
+
+- patch allow-custom-cflags.patch has been removed due to the
+  package being forked in factory
+
+-------------------------------------------------------------------
+Mon Aug  1 22:24:08 UTC 2016 - r...@fthiessen.de
+
+- Install into _libexecdir
+- Install icons into icon-theme directory (hicolor)
+
+-------------------------------------------------------------------
+Mon Aug  1 19:56:31 UTC 2016 - mar...@gmx.de
+
+- remove patch: yamagi-quake2-allow-overriding-cflags.patch since
+  upstream now also have CMake support without this problem
+- install binaries and libs to /usr/lib/yamagi-quake2/ and use a
+  wrapper-script in /usr/bin/ to workaround rpath issues
+- fix source url
+
+-------------------------------------------------------------------

Old:
----
  QUAKE2_5_34.tar.gz
  allow-custom-cflags.patch

New:
----
  quake2-6.00.tar.xz
  yamagi-quake2.appdata.xml

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

Other differences:
------------------
++++++ yamagi-quake2.spec ++++++
--- /var/tmp/diff_new_pack.hau4hp/_old  2017-02-14 00:43:58.259761785 +0100
+++ /var/tmp/diff_new_pack.hau4hp/_new  2017-02-14 00:43:58.263761220 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yamagi-quake2
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2016 Luke Jones <luke.nukem.jo...@gmail.com>
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,18 +17,20 @@
 #
 
 
-%define fver 5_34
 Name:           yamagi-quake2
-Version:        5.34
+Version:        6.00
 Release:        0
 Summary:        Enhanced Quake 2 Source Port
 License:        GPL-2.0
 Group:          Amusements/Games/3D/Shoot
 Url:            http://www.yamagi.org/quake2/
-Source:         
https://github.com/yquake2/yquake2/archive/QUAKE2_%{fver}.tar.gz
+Source:         http://deponie.yamagi.org/quake2/quake2-%{version}.tar.xz
 Source99:       %{name}.changes
-# PATCH-FEATURE-OPENSUSE allow-custom-cflags.patch -- Allow custom cflags for 
our optflags
-Patch0:         allow-custom-cflags.patch
+Source100:      yamagi-quake2.appdata.xml
+BuildRequires:  ImageMagick
+BuildRequires:  cmake
+BuildRequires:  gcc-c++
+BuildRequires:  hicolor-icon-theme
 BuildRequires:  libSDL2-devel
 BuildRequires:  libjpeg-devel
 BuildRequires:  libvorbis-devel
@@ -45,43 +47,61 @@
 retexturing packs and HUD scaling.
 
 %prep
-%setup -q -n yquake2-QUAKE2_5_34
-%patch0 -p1
+%setup -q -n quake2-%{version}
 # Fix usage of __DATE__ macro to prevent build in excess
 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")"
 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
 sed -i "s/__DATE__/${DATE}/g" src/common/misc.c src/game/savegame/savegame.c
 
 %build
-CFLAGS="%{optflags}" make %{?_smp_mflags} \
-    WITH_SYSTEMWIDE=yes \
-    WITH_SYSTEMDIR='%{_libdir}/%{name}'
+%cmake -DSYSTEMWIDE_SUPPORT=ON
+make %{_smp_mflags}
 
 %install
-install -D -p -m 755 ./release/quake2 %{buildroot}%{_bindir}/yquake2
-install -D -p -m 755 ./release/q2ded %{buildroot}%{_bindir}/yq2ded
-install -D -p -m 644 ./release/baseq2/game.so \
-    %{buildroot}%{_libdir}/%{name}/baseq2/game.so
-install -D -p -m 644 stuff/yq2.cfg \
-    %{buildroot}%{_libdir}/%{name}/baseq2/yq2.cfg
-install -D -p -m 644 stuff/icon/Quake2.png \
-    %{buildroot}%{_datadir}/pixmaps/yquake2.png
+q2dir="%{buildroot}%{_libexecdir}/%{name}"
+install -dm 755 %{buildroot}%{_bindir}
+install -Dpm 755 build/release/quake2 $q2dir/yquake2
+install -Dpm 755 build/release/q2ded $q2dir/yq2ded
+install -Dpm 644 build/release/baseq2/game.so $q2dir/baseq2/game.so
+install -Dpm 644 stuff/yq2.cfg $q2dir/baseq2/yq2.cfg
+
+# Install icons
+install -Dpm 644 stuff/icon/Quake2.svg 
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/yquake2.svg
+for res in 256 128 96 64 32 16; do
+    mkdir -p "%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps"
+    convert stuff/icon/Quake2.png -resize $res"x"$res 
"%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps/yquake2.png"
+done
+
+# Install Wrapper
+cat > %{buildroot}%{_bindir}/yquake2 << EOF
+#!/bin/sh
+exec "%{_libexecdir}/%{name}/\${0##*/}" \$@
+EOF
+ln -s yquake2 %{buildroot}%{_bindir}/yq2ded
 
+install -D -p -m 644 %{SOURCE100}  
%{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
 %suse_update_desktop_file -c yquake2 'Quake II' 'Yamagi Quake II' yquake2 
yquake2 Game ActionGame
 
 %post
-%desktop_database_post
+%icon_theme_cache_post
+cat << EOF
+
+Please read README in %{_docdir}/%{name} for information on
+how to install the needed gamedata files.
+
+EOF
 
 %postun
-%desktop_database_postun
+%icon_theme_cache_postun
 
 %files
 %defattr(-,root,root)
 %doc CHANGELOG CONTRIBUTE LICENSE README.md
-%{_bindir}/yquake2
+%attr(0755,root,root) %{_bindir}/yquake2
 %{_bindir}/yq2ded
-%{_libdir}/%{name}
-%{_datadir}/pixmaps/yquake2.png
+%{_libexecdir}/%{name}
+%{_datadir}/icons/hicolor/*/apps/yquake2.*
 %{_datadir}/applications/yquake2.desktop
+%{_datadir}/appdata/%{name}.appdata.xml
 
 %changelog

++++++ yamagi-quake2.appdata.xml ++++++
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
​  <id>yamagi-quake2.desktop</id>
​  <metadata_license>CC0</metadata_license>
​  <project_license>GPL-2.0+</project_license>
​  <name>Yamagi Quake 2</name>
​  <summary>Enhanced Quake 2 Source Port</summary>
​
​  <description>
​    <p>
​      Yamagi Quake II is an enhanced client for id Software's Quake II. The
      main focus is an unchanged single player experience; the gameplay and
      graphics are unaltered. It also features: anisotropic filtering and
      multi-sample anti-aliasing, widescreen aspect ratio and unlimited
      screen size, compatibility with most mods, optional support for
      retexturing packs and HUD scaling.
    </p>
​  </description>
​
​  <screenshots>
​    <screenshot type="default">
      <caption>Gameplay</caption>
​      
<image>http://spawnhost.files.wordpress.com/2012/07/yamq2_linux_oss4.jpg</image>
​    </screenshot>
​  </screenshots>
​
​  <url type="homepage">https://www.yamagi.org/quake2/</url>
​
​  <provides>
​    <binary>yquake2</binary>
​  </provides>
​
​</component>

Reply via email to