This commit is contained in:
Sergey Zhemoytel 2022-12-22 18:44:22 +03:00
parent a61d069058
commit 5b1e305c9e
2 changed files with 2 additions and 11 deletions

View file

@ -1,7 +1,7 @@
[Desktop Entry] [Desktop Entry]
Name=Free Heroes 2 Name=Free Heroes 2
Comment=Heroes Of Might And Magic 2 Engine Comment=Heroes Of Might And Magic 2 Engine
Exec=fheroes2 Exec=FHEROES2_DATA=/usr/share/fheroes2 fheroes2
Icon=fheroes2 Icon=fheroes2
StartupNotify=true StartupNotify=true
Terminal=false Terminal=false

View file

@ -5,7 +5,7 @@ Summary: Free implementation of Heroes of the Might and Magic II engine
Name: fheroes2 Name: fheroes2
Epoch: 1 Epoch: 1
Version: 1.0.0 Version: 1.0.0
Release: 1 Release: 2
License: GPLv2+ License: GPLv2+
Group: Games/Strategy Group: Games/Strategy
URL: https://ihhub.github.io/fheroes2/ 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. into your /usr/share/games/fheroes2/{maps,data} directories respectively.
%files %files
#-f %{name}.lang
%doc changelog.txt LICENSE README.md %doc changelog.txt LICENSE README.md
%{_bindir}/%{name} %{_bindir}/%{name}
%{_datadir}/%{name} %{_datadir}/%{name}
%{_datadir}/metainfo/%{name}.appdata.xml %{_datadir}/metainfo/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png %{_iconsdir}/hicolor/*/apps/%{name}.png
#{_gamesbindir}/*
#{_gamesdatadir}/%{name}
%{_datadir}/pixmaps/%{name}.png %{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
@ -97,12 +94,6 @@ mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps mkdir -p %{buildroot}%{_datadir}/pixmaps
# 2) install what we need where we need it # 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 src/resources/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
#install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/
#find_lang %{name}