Hello community,

here is the log from the commit of package solarus for openSUSE:Factory checked 
in at 2019-08-22 10:54:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/solarus (Old)
 and      /work/SRC/openSUSE:Factory/.solarus.new.22127 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "solarus"

Thu Aug 22 10:54:30 2019 rev:5 rq:725031 version:1.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/solarus/solarus.changes  2019-01-21 
10:48:12.656176327 +0100
+++ /work/SRC/openSUSE:Factory/.solarus.new.22127/solarus.changes       
2019-08-22 10:54:41.993681145 +0200
@@ -1,0 +2,57 @@
+Wed Aug 21 07:46:41 UTC 2019 - Jan Engelhardt <jeng...@inai.de>
+
+- Package description updates.
+
+-------------------------------------------------------------------
+Fri Aug 16 16:48:12 UTC 2019 - antoine.belv...@opensuse.org
+
+- Update to version 1.6.2:
+  * Fix scrolling teletransporters with a square size (#1412).
+  * Fix hero displayed above stairs walls.
+- Install translations for solarus-gui:
+  * Add solarus-1.6.2-install-gui-translations.patch.
+  * Create solarus-gui-lang subpackage.
+- Add _service file to create a tarball without the big
+  'libraries' folder which is relevant only for Windows/Mac builds.
+- Disable check section on Leap <= 15.1 to fix build.
+- Disable test "lua/bugs/1269_coroutines" as it is unstable.
+- Remove obsolete build dependency on update-desktop-files.
+
+-------------------------------------------------------------------
+Sat Aug 10 16:04:10 UTC 2019 - antoine.belv...@opensuse.org
+
+- Update to 1.6.1:
+  * Engine changes:
+    + Add `-force-software-rendering` switch to solarus-run.
+    + Add argument to set mouse cursor visibility on start (#1263).
+    + Add simple performance counters to the engine (#1280).
+    + Add argument to set fullscreen mode on start (#1281).
+    + Add joypad buttons combo for quitting the engine (#1283).
+    + Add git revision information to build and main loop startup
+      (#1292).
+    + Add argument to set the joypad axis deadzone (#1293).
+    + Add debug warning if a surface is larger than 2048 x 2048
+      (#1294).
+    + Add support of carried object sprites with multiple
+      directions (#1392).
+    + Improve CMake build (#1270, #1276, #1277, #1288, #1320).
+    + Fix several crashes (#1354, #1371, #1353, #1366, #1374,
+      #1361).
+    + Other bugfixes. See installed changelog.txt for more details.
+  * Lua API changes:
+    + This release adds new features but does not introduce any
+      incompatibility.
+    + Add methods game:get/set_transition_style() (#1368).
+    + Add methods state:get/set_can_use_teletransporter/switch/
+      stream() (#1363).
+    + Make surface, text_surface and timer userdata types indexable
+      (#1394).
+- Remove solarus-1.6.0-fix-desktop-exec.patch: Fixed upstream.
+- Update spec file:
+  * Split GUI and GUI library from main package.
+  * Update URL, Source and Description fields.
+  * Remove obsolete desktop_database_post(un) macros.
+  * Use cmake_build macro.
+  * Add check section.
+
+-------------------------------------------------------------------

Old:
----
  solarus-1.6.0-fix-desktop-exec.patch
  solarus-1.6.0-src.tar.gz

New:
----
  _service
  solarus-1.6.2-install-gui-translations.patch
  solarus-1.6.2.tar.bz2

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

Other differences:
------------------
++++++ solarus.spec ++++++
--- /var/tmp/diff_new_pack.hLFbl5/_old  2019-08-22 10:54:42.749681043 +0200
+++ /var/tmp/diff_new_pack.hLFbl5/_new  2019-08-22 10:54:42.753681043 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package solarus
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,20 +17,19 @@
 
 
 Name:           solarus
-Version:        1.6.0
+Version:        1.6.2
 Release:        0
-Summary:        Zelda-like game engine
+Summary:        Game engine for action RPGs
 License:        GPL-3.0-or-later
 Group:          Amusements/Games/RPG
-Url:            http://www.solarus-engine.org/
-Source:         
http://www.solarus-games.org/downloads/solarus/%{name}-%{version}-src.tar.gz
-# PATCH-FIX-UPSTREAM solarus-1.6.0-fix-desktop-exec.patch -- wrong Exec field 
in desktop file
-Patch0:         solarus-1.6.0-fix-desktop-exec.patch
+URL:            https://www.solarus-games.org/
+Source0:        %{name}-%{version}.tar.bz2
+# PATCH-FEATURE-UPSTREAM -- install gui translations
+Patch0:         solarus-1.6.2-install-gui-translations.patch
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  physfs-devel
-BuildRequires:  update-desktop-files
 BuildRequires:  pkgconfig(Qt5Core)
 BuildRequires:  pkgconfig(Qt5Gui)
 BuildRequires:  pkgconfig(Qt5Help)
@@ -43,24 +42,54 @@
 BuildRequires:  pkgconfig(openal)
 BuildRequires:  pkgconfig(sdl2)
 BuildRequires:  pkgconfig(vorbis)
+Suggests:       %{name}-gui
 
 %description
-Solarus is a Zelda-like game engine written in C++.
+Solarus is a 2D game engine written in C++, and it executes games
+made in Lua. It is designed with 16-bit classic action RPGs in
+mind.
+
+This package contains the 'solarus-run' executable required to run
+games based on the Solarus engine.
+
+%package gui
+Summary:        Graphical user interface to launch Solarus games
+Group:          Amusements/Games/RPG
+# Package "gui" was split from main package on 1.6.1
+# Make sure upgrade of main package from version < 1.6.1
+# installs "gui" as well with a specific Provides
+Provides:       %{name}:%{_bindir}/solarus-launcher
+
+%description gui
+This package provides a graphical user interface to launch games
+based on the Solarus engine.
 
 %package -n libsolarus1
-Summary:        Zelda-like game engine
+Summary:        Solarus game engine shared library
 Group:          System/Libraries
 
 %description -n libsolarus1
-Solarus is a Zelda-like game engine written in C++.
+This package provides the main shared library of the Solarus game
+engine.
+
+%package -n libsolarus-gui1
+Summary:        Solarus game engine shared library (GUI parts)
+Group:          System/Libraries
+
+%description -n libsolarus-gui1
+This package provides the GUI shared library of the Solarus game
+engine.
 
 %package devel
 Summary:        Development files for solarus
 Group:          Development/Libraries/C and C++
 Requires:       %{name} = %{version}
+Requires:       %{name}-gui = %{version}
 
 %description devel
-Development files for solarus, including header-files.
+Development files for Solarus, including header files.
+
+%lang_package -n solarus-gui
 
 %prep
 %setup -q
@@ -68,41 +97,54 @@
 
 %build
 %cmake
-make %{?_smp_mflags}
+%cmake_build
 
 %install
 %cmake_install
+%find_lang %{name} --with-qt
 
-%if 0%{?suse_version} < 1330
-%post
-%icon_theme_cache_post
-%desktop_database_post
-
-%postun
-%icon_theme_cache_postun
-%desktop_database_postun
+%if 0%{?suse_version} > 1510
+%check
+# Tweak path to find libsolarus.so and libsolarus-testing.so
+export LD_LIBRARY_PATH="$PWD/build:$PWD/build/tests"
+# Tests 1200 and 1210 require a graphical display, 1269 is unstable
+%ctest --exclude-regex "lua/bugs/(1200_.*|1210_.*|1269_.*)"
 %endif
 
 %post   -n libsolarus1 -p /sbin/ldconfig
 %postun -n libsolarus1 -p /sbin/ldconfig
+%post   -n libsolarus-gui1 -p /sbin/ldconfig
+%postun -n libsolarus-gui1 -p /sbin/ldconfig
 
 %files
 %doc changelog.txt readme.md
-%license license.txt
-%{_bindir}/solarus-launcher
+%license license.txt license_gpl.txt
 %{_bindir}/solarus-run
+%{_mandir}/man6/solarus-run.6%{?ext_man}
+
+%files gui
+%license license.txt license_gpl.txt
 %dir %{_datadir}/appdata/
 %{_datadir}/appdata/%{name}.appdata.xml
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
-%{_libdir}/libsolarus-gui.so
-%{_mandir}/man6/solarus*
+%{_bindir}/solarus-launcher
+# man page should be renamed to solarus-launcher
+%{_mandir}/man6/solarus.6%{?ext_man}
+
+%files gui-lang -f %{name}.lang
+%dir %{_datadir}/%{name}-gui
+%dir %{_datadir}/%{name}-gui/translations
 
 %files -n libsolarus1
 %{_libdir}/libsolarus.so.*
 
+%files -n libsolarus-gui1
+%{_libdir}/libsolarus-gui.so.*
+
 %files devel
 %{_includedir}/solarus
 %{_libdir}/libsolarus.so
+%{_libdir}/libsolarus-gui.so
 
 %changelog

++++++ _service ++++++
<services>
  <service mode="disabled" name="tar_scm">
    <param name="changesgenerate">disable</param>
    <param name="revision">v1.6.2</param>
    <param name="scm">git</param>
    <param name="url">https://gitlab.com/solarus-games/solarus.git</param>
    <param name="versionformat">@PARENT_TAG@</param>
    <!-- tag is vX.Y.Z, we want X.Y.Z -->
    <param name="versionrewrite-pattern">v(.*)</param>
    <param name="versionrewrite-replacement">\1</param>
    <!-- exclude windows/mac libraries folder from tarball -->
    <param name="exclude">libraries</param>
  </service>
  <service mode="disabled" name="recompress">
    <param name="compression">bz2</param>
    <param name="file">*.tar</param>
  </service>
  <service mode="disabled" name="set_version"/>
</services>
++++++ solarus-1.6.2-install-gui-translations.patch ++++++
>From c9b890dfcc20c2d74039d8cd0bfe225562450da1 Mon Sep 17 00:00:00 2001
From: Antoine Belvire <antoine.belv...@opensuse.org>
Date: Sun, 11 Aug 2019 14:45:00 +0200
Subject: [PATCH] Install translations

---
 cmake/AddInstallTargets.cmake     | 4 ++++
 gui/cmake/AddInstallTargets.cmake | 4 ++++
 gui/src/{main.cpp => main.cpp.in} | 5 ++++-
 3 files changed, 12 insertions(+), 1 deletion(-)
 rename gui/src/{main.cpp => main.cpp.in} (96%)

diff --git a/cmake/AddInstallTargets.cmake b/cmake/AddInstallTargets.cmake
index 953497449..8e50ed48e 100644
--- a/cmake/AddInstallTargets.cmake
+++ b/cmake/AddInstallTargets.cmake
@@ -15,6 +15,10 @@ else()
 endif()
 set(SOLARUS_MANUAL_INSTALL_DESTINATION "share/man" CACHE PATH "Manual install 
destination")
 set(SOLARUS_HEADERS_INSTALL_DESTINATION "include" CACHE PATH "Headers install 
destination")
+set(SOLARUS_GUI_TRANSLATIONS_INSTALL_DESTINATION 
"share/solarus-gui/translations" CACHE PATH "GUI translations install 
destination")
+
+# Set translation path to load .qm file from
+configure_file("${CMAKE_SOURCE_DIR}/gui/src/main.cpp.in" 
"${CMAKE_SOURCE_DIR}/gui/src/main.cpp")
 
 # Files to install with make install.
 # Install the shared library and the solarus-run executable.
diff --git a/gui/cmake/AddInstallTargets.cmake 
b/gui/cmake/AddInstallTargets.cmake
index 460032827..1ac9b65f7 100644
--- a/gui/cmake/AddInstallTargets.cmake
+++ b/gui/cmake/AddInstallTargets.cmake
@@ -12,6 +12,10 @@ install(FILES
   ${solarus-gui_FORMS_HEADERS}
   DESTINATION "${SOLARUS_HEADERS_INSTALL_DESTINATION}/solarus/gui"
 )
+install(FILES
+  ${solarus-gui_TRANSLATIONS_QM}
+  DESTINATION "${SOLARUS_GUI_TRANSLATIONS_INSTALL_DESTINATION}"
+)
 
 # FreeDesktop compatible icons
 if(UNIX AND NOT APPLE)
diff --git a/gui/src/main.cpp b/gui/src/main.cpp.in
similarity index 96%
rename from gui/src/main.cpp
rename to gui/src/main.cpp.in
index 984c478f4..532d09a62 100644
--- a/gui/src/main.cpp
+++ b/gui/src/main.cpp.in
@@ -73,7 +73,10 @@ int run_gui(int argc, char* argv[]) {
   application.installTranslator(&qt_translator);
 
   QTranslator translator;
-  translator.load("solarus_" + QLocale::system().name());
+  bool translationLoaded = translator.load("solarus_" + 
QLocale::system().name());
+  if (!translationLoaded) {
+    translator.load("solarus_" + QLocale::system().name(), 
"@SOLARUS_GUI_TRANSLATIONS_INSTALL_DESTINATION@");
+  }
   application.installTranslator(&translator);
 
   MainWindow window(nullptr);
-- 
2.22.0

++++++ solarus-1.6.0-src.tar.gz -> solarus-1.6.2.tar.bz2 ++++++
++++ 41437 lines of diff (skipped)


Reply via email to