diff --git a/fheroes2.desktop b/fheroes2.desktop index a326ccd..f77fce6 100644 --- a/fheroes2.desktop +++ b/fheroes2.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=Free Heroes 2 Comment=Heroes Of Might And Magic 2 Engine -Exec=fheroes2 +Exec=FHEROES2_DATA=/usr/share/fheroes2 fheroes2 Icon=fheroes2 StartupNotify=true Terminal=false diff --git a/fheroes2.spec b/fheroes2.spec index 5fec970..f424286 100644 --- a/fheroes2.spec +++ b/fheroes2.spec @@ -5,7 +5,7 @@ Summary: Free implementation of Heroes of the Might and Magic II engine Name: fheroes2 Epoch: 1 Version: 1.0.0 -Release: 1 +Release: 2 License: GPLv2+ Group: Games/Strategy URL: https://ihhub.github.io/fheroes2/ @@ -34,14 +34,11 @@ You need to copy files from data and maps directories from original game into your /usr/share/games/fheroes2/{maps,data} directories respectively. %files -#-f %{name}.lang %doc changelog.txt LICENSE README.md %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/metainfo/%{name}.appdata.xml %{_iconsdir}/hicolor/*/apps/%{name}.png -#{_gamesbindir}/* -#{_gamesdatadir}/%{name} %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/%{name}.desktop @@ -97,12 +94,6 @@ mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/pixmaps # 2) install what we need where we need it -#install -pm 755 build/%{name} %{buildroot}%{_gamesbindir}/%{name}.bin -#install -pm 755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name} -#install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/ install -pm 644 src/resources/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop -#install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/ - -#find_lang %{name}