diff --git a/widelands.changes b/widelands.changes index 4c65e05..4b3c156 100644 --- a/widelands.changes +++ b/widelands.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 5 19:17:42 UTC 2017 - okurz@suse.com + +- Fix fatal error on startup referencing wrong data directory + ------------------------------------------------------------------- Thu Jun 22 07:43:39 UTC 2017 - okurz@suse.com diff --git a/widelands.spec b/widelands.spec index 016a3f8..d699835 100644 --- a/widelands.spec +++ b/widelands.spec @@ -92,7 +92,7 @@ sed -i 's/\(install(TARGETS ${NAME} DESTINATION \)"."\( COMPONENT ExecutableFile -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DWL_INSTALL_PREFIX=%{_prefix} \ -DWL_INSTALL_BINDIR=bin \ - -DWL_INSTALL_DATADIR=share/%{name} \ + -DWL_INSTALL_DATADIR=%{_datadir}/%{name} \ -DWL_INSTALL_LOCALEDIR=%{_datadir}/%{name}/locale \ -DCMAKE_BUILD_TYPE="Release" \ -DBoost_USE_STATIC_LIBS=OFF \ @@ -112,6 +112,8 @@ install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.deskt rm -f %{buildroot}%{_prefix}/{COPYING,CREDITS,ChangeLog,VERSION} # No need to execute tests as they are already executed implicitly on install +# instead do post-install test +PATH=%{buildroot}%{_bindir}:$PATH widelands --help | grep 'This is Widelands' %files %defattr(-,root,root,-)