Hello community,
here is the log from the commit of package unknown-horizons for
openSUSE:Factory checked in at 2019-02-28 21:43:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/unknown-horizons (Old)
and /work/SRC/openSUSE:Factory/.unknown-horizons.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "unknown-horizons"
Thu Feb 28 21:43:33 2019 rev:2 rq:679559 version:2019.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/unknown-horizons/unknown-horizons.changes
2019-02-15 09:54:40.259773838 +0100
+++
/work/SRC/openSUSE:Factory/.unknown-horizons.new.28833/unknown-horizons.changes
2019-02-28 21:43:34.293520792 +0100
@@ -1,0 +2,17 @@
+Tue Feb 5 18:55:20 UTC 2019 - [email protected]
+
+- Recommend, instead of requiring, python3-enet as it is only
+ required for multiplayer and currently not available in openSUSE.
+- Fix broken requirement declaration towards python3-PyYAML.
+
+-------------------------------------------------------------------
+Sun Feb 3 21:36:15 UTC 2019 - [email protected]
+
+- Add missing Atlas data files to fix the game crashing on startup.
+
+-------------------------------------------------------------------
+Wed Jan 23 00:34:22 UTC 2019 - Jan Engelhardt <[email protected]>
+
+- Generalize description.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ unknown-horizons.spec ++++++
--- /var/tmp/diff_new_pack.btRDJH/_old 2019-02-28 21:43:38.517518988 +0100
+++ /var/tmp/diff_new_pack.btRDJH/_new 2019-02-28 21:43:38.521518986 +0100
@@ -36,6 +36,7 @@
BuildRequires: pkgconfig
BuildRequires: python3 >= 3.6.5
BuildRequires: python3-Cython
+BuildRequires: python3-Pillow
BuildRequires: python3-distutils-extra
BuildRequires: python3-pathlib
BuildRequires: python3-typing
@@ -44,17 +45,19 @@
BuildRequires: pkgconfig(libxslt)
Requires: hicolor-icon-theme
Requires: python3-Pillow
-Requires: python3-enet
+Requires: python3-PyYAML
Requires: python3-fife >= 0.3.5
-Requires: python3-yaml
Recommends: %{name}-lang = %{version}
+# python3-enet is only required for multiplayer and the game gracefully
handles it not
+# being present.
+Recommends: python3-enet
BuildArch: noarch
%description
Unknown Horizons is a 2D realtime strategy simulation with an emphasis on
-economy and city building. Expand your small settlement to a strong and
-wealthy colony, collect taxes and supply your inhabitants with valuabl
-goods. Increase your power with a well balanced economy and with strategic
+economy and city building. The player has to expand a small settlement to a
strong and
+wealthy colony, collect taxes and supply inhabitants with valuable
+goods, and increase the power with a well balanced economy and with strategic
trade and diplomacy.
%lang_package
@@ -69,6 +72,17 @@
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+# For some reason the Atlas generated by setup.py is corrupted. It has more
+# entries in the DB than there are image files. Regenaration fixes this.
+rm -f content/gfx/atlas/*
+rm -f content/atlas.sql
+rm -f content/actionsets.json
+rm -f content/tilesets.json
+cd development
+python3 ../horizons/engine/generate_atlases.py 2048
+cd -
+
# -- we require use system pyenet
find %{buildroot}%{python_sitelib} -name "*enet.so" -type f -print -delete
# -- remove *egg-info
@@ -79,6 +93,15 @@
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
rm -v %{buildroot}%{_datadir}/pixmaps/unknown-horizons.xpm
+# Install the Atlas
+install -D -m 0644 content/atlas.sql
%{buildroot}%{_datadir}/%{name}/content/atlas.sql
+install -D -m 0644 content/actionsets.json
%{buildroot}%{_datadir}/%{name}/content/actionsets.json
+install -D -m 0644 content/tilesets.json
%{buildroot}%{_datadir}/%{name}/content/tilesets.json
+install -m 0644 content/gfx/atlas/*
%{buildroot}%{_datadir}/%{name}/content/gfx/atlas
+
+# Remove file only existing to ensure directoy is not dropped by Git
+rm -v %{buildroot}%{_datadir}/%{name}/content/gfx/atlas/.keepme
+
# Remove duplicate license files
rm -v %{buildroot}%{_datadir}/%{name}/content/fonts/{GPL_fontexception,OFL}