Группа :: Игры/Аркады
Пакет: edgar
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define rel 1
Summary: 2D Platform Game
Name: edgar
Version: 1.28
Release: alt1
Source: %version.tar.gz
Url: http://www.parallelrealities.co.uk/p/legend-of-edgar.html
Group: Games/Arcade
License: GPL
Patch: %name-1.28-icons.patch
Requires: %name-data = %version
# Automatically added by buildreq on Fri Aug 04 2017
# optimized out: glibc-kernheaders-x86 libSDL-devel libgpg-error python-base zlib-devel
BuildRequires: glibc-kernheaders-generic libSDL_image-devel libSDL_mixer-devel libSDL_ttf-devel libpng-devel
BuildRequires: desktop-file-utils
%description
The Legend of Edgar. When his father fails to return home after venturing out
one stormy night, Edgar sets off on a quest to rescue him.
%package data
Group: Games/Arcade
License: GPL
BuildArch: noarch
Summary: The Legend of Edgar level set
Requires: %name = %version
%description data
The Legend of Edgar. When his father fails to return home after venturing
out one stormy night, Edgar sets off on a quest to rescue him.
This package contains official level set for Edgar.
%prep
%setup
%patch -p1
%build
%make_build VERSION=%version RELEASE=%rel DATA_DIR=%_gamesdatadir/%name/ BIN_DIR=%_gamesbindir/ DOC_DIR=%_defaultdocdir/%name-%version ICON_DIR=%_iconsdir/hicolor/ DESKTOP_DIR=%_desktopdir LOCALE_DIR=%_datadir/locale/
%install
%makeinstall VERSION=%version RELEASE=%rel DATA_DIR=%buildroot%_gamesdatadir/%name/ BIN_DIR=%buildroot%_gamesbindir/ DOC_DIR=`pwd`/localdoc ICON_DIR=%buildroot%_iconsdir/hicolor/ DESKTOP_DIR=%buildroot%_desktopdir/ LOCALE_DIR=%buildroot%_datadir/locale/ PREFIX=%buildroot%prefix
desktop-file-install --dir %buildroot%_desktopdir \
--remove-category=Application \
--add-category=RolePlaying \
%buildroot%_desktopdir/edgar.desktop
%find_lang %name
%files -f %name.lang
%doc localdoc
%_gamesbindir/*
%dir %_gamesdatadir/%name
%_desktopdir/*.desktop
%_iconsdir/hicolor/*/apps/*
%_man6dir/*
%_datadir/appdata/edgar.appdata.xml
%files data
%_gamesdatadir/%name/*
%changelog
…
Полный changelog можно просмотреть здесь
Summary: 2D Platform Game
Name: edgar
Version: 1.28
Release: alt1
Source: %version.tar.gz
Url: http://www.parallelrealities.co.uk/p/legend-of-edgar.html
Group: Games/Arcade
License: GPL
Patch: %name-1.28-icons.patch
Requires: %name-data = %version
# Automatically added by buildreq on Fri Aug 04 2017
# optimized out: glibc-kernheaders-x86 libSDL-devel libgpg-error python-base zlib-devel
BuildRequires: glibc-kernheaders-generic libSDL_image-devel libSDL_mixer-devel libSDL_ttf-devel libpng-devel
BuildRequires: desktop-file-utils
%description
The Legend of Edgar. When his father fails to return home after venturing out
one stormy night, Edgar sets off on a quest to rescue him.
%package data
Group: Games/Arcade
License: GPL
BuildArch: noarch
Summary: The Legend of Edgar level set
Requires: %name = %version
%description data
The Legend of Edgar. When his father fails to return home after venturing
out one stormy night, Edgar sets off on a quest to rescue him.
This package contains official level set for Edgar.
%prep
%setup
%patch -p1
%build
%make_build VERSION=%version RELEASE=%rel DATA_DIR=%_gamesdatadir/%name/ BIN_DIR=%_gamesbindir/ DOC_DIR=%_defaultdocdir/%name-%version ICON_DIR=%_iconsdir/hicolor/ DESKTOP_DIR=%_desktopdir LOCALE_DIR=%_datadir/locale/
%install
%makeinstall VERSION=%version RELEASE=%rel DATA_DIR=%buildroot%_gamesdatadir/%name/ BIN_DIR=%buildroot%_gamesbindir/ DOC_DIR=`pwd`/localdoc ICON_DIR=%buildroot%_iconsdir/hicolor/ DESKTOP_DIR=%buildroot%_desktopdir/ LOCALE_DIR=%buildroot%_datadir/locale/ PREFIX=%buildroot%prefix
desktop-file-install --dir %buildroot%_desktopdir \
--remove-category=Application \
--add-category=RolePlaying \
%buildroot%_desktopdir/edgar.desktop
%find_lang %name
%files -f %name.lang
%doc localdoc
%_gamesbindir/*
%dir %_gamesdatadir/%name
%_desktopdir/*.desktop
%_iconsdir/hicolor/*/apps/*
%_man6dir/*
%_datadir/appdata/edgar.appdata.xml
%files data
%_gamesdatadir/%name/*
%changelog
…
Полный changelog можно просмотреть здесь