Репозитории ALT
S: | 1.2.7-alt1 |
5.1: | 1.0.12-alt2 |
4.1: | 1.0.7-alt1 |
4.0: | 1.0.7-alt1 |
3.0: | 1.0.7-alt1 |
Группа :: Игры/Аркады
Пакет: ltris
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: ltris
Version: 1.2.7
Release: alt1
Serial: 1
Group: Games/Arcade
Summary: Nice tetris clone
URL: http://lgames.sourceforge.net/index.php?project=LTris
License: GPLv2+
Packager: Ilya Mashkin <oddity at altlinux.ru>
Source0: http://download.sourceforge.net/lgames/ltris-%version.tar.gz
Patch1: ltris-1.0.19-inlines.patch
Patch2: fix_sdl_test.patch
Patch3: icon_fix.patch
#BuildRequires: XFree86-libs aalib esound libSDL-devel libSDL_mixer-devel
#BuildRequires: libalsa libarts libaudiofile libogg libslang libsmpeg libvorbis
#set_gcc_version 8
# Automatically added by buildreq on Wed Jun 30 2004 (-bi)
BuildRequires: esound libSDL-devel libSDL_mixer-devel desktop-file-utils automake sysconftool ImageMagick
%description
o Tetris clone using SDL
o Sound
o Menu
o Controls can be redefined
o Block preview
o Starting level between 0 and 9
o Various backgrounds
o HighScores
o Nice graphics
o Smooth gameplay
o Cool effects (transparency, animations)
o Two player mode
o Two game modes
%prep
%setup -q
#patch1 -p1
%patch2 -p1
#patch3 -p1
#convert ltris48.gif ltris.png
cp ltris48.png ltris.png
%build
autoreconf -f -i
%configure --bindir=%_gamesbindir --datadir=%_gamesdatadir --localstatedir=%{_localstatedir}/games
%make_build
%install
%make install DESTDIR=%buildroot
install -D -m644 icons/%{name}16.xpm $RPM_BUILD_ROOT%_miconsdir/%name.xpm
install -D -m644 icons/%{name}32.xpm $RPM_BUILD_ROOT%_niconsdir/%name.xpm
install -D -m644 icons/%{name}48.xpm $RPM_BUILD_ROOT%_liconsdir/%name.xpm
# todo: report category BlocksGame to upstream
# move and fix desktop file
desktop-file-install --dir %buildroot%_desktopdir --delete-original \
--add-category BlocksGame %buildroot%_gamesdatadir/applications/%name.desktop
# fix desktop file
sed -i -e 's,^Icon=.*,Icon=%name,' %buildroot%_desktopdir/%name.desktop
%find_lang %name
%files -f %name.lang
%doc README AUTHORS ChangeLog TODO
%attr(2711, root, games) %_gamesbindir/*
%attr(-, games, games) %_localstatedir/games/%name.hscr
%_gamesdatadir/%name
%_datadir/games/icons/hicolor/apps/ltris.png
%_desktopdir/%name.desktop
%_niconsdir/%name.xpm
%_miconsdir/%name.xpm
%_liconsdir/%name.xpm
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.2.7
Release: alt1
Serial: 1
Group: Games/Arcade
Summary: Nice tetris clone
URL: http://lgames.sourceforge.net/index.php?project=LTris
License: GPLv2+
Packager: Ilya Mashkin <oddity at altlinux.ru>
Source0: http://download.sourceforge.net/lgames/ltris-%version.tar.gz
Patch1: ltris-1.0.19-inlines.patch
Patch2: fix_sdl_test.patch
Patch3: icon_fix.patch
#BuildRequires: XFree86-libs aalib esound libSDL-devel libSDL_mixer-devel
#BuildRequires: libalsa libarts libaudiofile libogg libslang libsmpeg libvorbis
#set_gcc_version 8
# Automatically added by buildreq on Wed Jun 30 2004 (-bi)
BuildRequires: esound libSDL-devel libSDL_mixer-devel desktop-file-utils automake sysconftool ImageMagick
%description
o Tetris clone using SDL
o Sound
o Menu
o Controls can be redefined
o Block preview
o Starting level between 0 and 9
o Various backgrounds
o HighScores
o Nice graphics
o Smooth gameplay
o Cool effects (transparency, animations)
o Two player mode
o Two game modes
%prep
%setup -q
#patch1 -p1
%patch2 -p1
#patch3 -p1
#convert ltris48.gif ltris.png
cp ltris48.png ltris.png
%build
autoreconf -f -i
%configure --bindir=%_gamesbindir --datadir=%_gamesdatadir --localstatedir=%{_localstatedir}/games
%make_build
%install
%make install DESTDIR=%buildroot
install -D -m644 icons/%{name}16.xpm $RPM_BUILD_ROOT%_miconsdir/%name.xpm
install -D -m644 icons/%{name}32.xpm $RPM_BUILD_ROOT%_niconsdir/%name.xpm
install -D -m644 icons/%{name}48.xpm $RPM_BUILD_ROOT%_liconsdir/%name.xpm
# todo: report category BlocksGame to upstream
# move and fix desktop file
desktop-file-install --dir %buildroot%_desktopdir --delete-original \
--add-category BlocksGame %buildroot%_gamesdatadir/applications/%name.desktop
# fix desktop file
sed -i -e 's,^Icon=.*,Icon=%name,' %buildroot%_desktopdir/%name.desktop
%find_lang %name
%files -f %name.lang
%doc README AUTHORS ChangeLog TODO
%attr(2711, root, games) %_gamesbindir/*
%attr(-, games, games) %_localstatedir/games/%name.hscr
%_gamesdatadir/%name
%_datadir/games/icons/hicolor/apps/ltris.png
%_desktopdir/%name.desktop
%_niconsdir/%name.xpm
%_miconsdir/%name.xpm
%_liconsdir/%name.xpm
%changelog
…
Полный changelog можно просмотреть здесь