Hello community,

here is the log from the commit of package frogatto for 
openSUSE:Factory:NonFree checked in at 2017-03-12 20:06:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory:NonFree/frogatto (Old)
 and      /work/SRC/openSUSE:Factory:NonFree/.frogatto.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "frogatto"

Sun Mar 12 20:06:01 2017 rev:3 rq:477024 version:1.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory:NonFree/frogatto/frogatto.changes        
2017-01-25 23:37:23.687634148 +0100
+++ /work/SRC/openSUSE:Factory:NonFree/.frogatto.new/frogatto.changes   
2017-03-12 20:06:02.100479414 +0100
@@ -1,0 +2,5 @@
+Sun Mar  5 11:19:10 UTC 2017 - [email protected]
+
+- Fix boo#1028005 with a wrapper script
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ frogatto.spec ++++++
--- /var/tmp/diff_new_pack.5oQTHf/_old  2017-03-12 20:06:12.594994398 +0100
+++ /var/tmp/diff_new_pack.5oQTHf/_new  2017-03-12 20:06:12.598993832 +0100
@@ -28,6 +28,7 @@
 BuildRequires:  ImageMagick
 BuildRequires:  boost-devel
 BuildRequires:  fdupes
+BuildRequires:  fontpackages-devel
 BuildRequires:  freeglut-devel
 BuildRequires:  gcc-c++
 BuildRequires:  hicolor-icon-theme
@@ -88,19 +89,29 @@
     convert modules/frogatto/images/os/frogatto-icon.png -resize "$res"x"$res" 
"%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps/%{name}.png"
 done
 
-#data
+# data
 mkdir -p %{buildroot}%{_datadir}/frogatto/modules
 mv modules/frogatto %{buildroot}%{_datadir}/frogatto/modules
 mv data images music %{buildroot}%{_datadir}/frogatto
 find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 0644 \{\} +
+
+# replace with system fonts
 for file in UbuntuMono*ttf; do
-    ln -s "%{_datadir}/fonts/truetype/$file" 
"%{buildroot}%{_datadir}/%{name}/$file"
+    ln -s "%{_ttfontsdir}/$file" "%{buildroot}%{_datadir}/%{name}/$file"
 done
 
 # binaries
-install -Dm 755 game %{buildroot}%{_bindir}/frogatto
+install -Dm 755 game %{buildroot}%{_libexecdir}/frogatto/game
 install -Dm 755 server %{buildroot}%{_bindir}/frogatto-server
 
+# wrapper script
+cat >> %{buildroot}%{_bindir}/frogatto <<EOF
+#!/bin/sh
+cd %{_datadir}/%{name}
+exec %{_libexecdir}/frogatto/game
+EOF
+chmod +x %{buildroot}%{_bindir}/frogatto
+
 %fdupes %{buildroot}%{_datadir}/frogatto
 
 %find_lang %{name}
@@ -120,6 +131,7 @@
 %defattr(-,root,root)
 %doc README LICENSE
 %{_bindir}/frogatto*
+%{_libexecdir}/frogatto/
 %{_datadir}/frogatto/*ttf
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.png



Reply via email to