Репозитории ALT
S: | 1.1.14-alt9 |
5.1: | 1.1.14-alt8 |
4.1: | 1.1.14-alt6 |
4.0: | 1.1.14-alt5 |
3.0: | 1.1.14-alt1 |
Другие репозитории
Upstream: | 1.1.14 |
Группа :: Игры/Аркады
Пакет: crack-attack
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1
Name: crack-attack
Version: 1.1.14
Release: alt5
Summary: Crack Attack! is a fast paced 3D puzzle game
Summary(ru_RU.CP1251): Crack Attack! ЩРН АШЯРПЮЪ 3D ХЦПЮ-ЦНКНБНКНЛЙЮ
License: GPL
Group: Games/Arcade
Url: http://www.nongnu.org/crack-attack/
Packager: Slava Semushin <php-coder at altlinux.ru>
Source: http://savannah.nongnu.org/download/crack-attack/%name-%version.tar.bz2
Patch: %name-alt-warnings-Wall_fix.patch
Patch1: %name-upstream-start_game_fix.patch
Patch2: %name-alt-upstream-alt_f4_exit_fix.patch
Patch3: %name-upstream-src-glutDestroyWindow_call_fix.patch
# For %%_desktopdir and %%_pixmapsdir macros (-alt55)
BuildPreReq: rpm >= 4.0.4-alt55
BuildRequires: libSDL-devel libglut-devel libmesa-devel libgtk+2-devel
BuildRequires: libXi-devel libXmu-devel gcc-c++ pkg-config
%description
Crack Attack! is a fast-paced puzzle game inspired by the classic
Super NES title Tetris Attack!
%description -l ru_RU.CP1251
Crack Attack! ЩРН АШЯРПЮЪ ХЦПЮ-ЦНКНБНКНЛЙЮ, БДНУМНБКЕММЮЪ ЙКЮЯЯХВЕЯЙНИ
ХЦПНИ НР Super NES ОНД МЮГБЮМХЕЛ Tetris Attack!
%prep
%setup
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
# fixed warnings from autoconf
sed -i '4a\
AC_CANONICAL_HOST\
AC_CANONICAL_TARGET
;14,16d' configure.ac
%__autoreconf
%build
%configure --bindir=%_gamesbindir --datadir=%_gamesdatadir
%make_build --silent --no-print-directory CXXFLAGS="%optflags -Werror"
%install
%make_install --silent --no-print-directory DESTDIR=%buildroot install
mkdir -p %buildroot%_pixmapsdir
ln -s %_gamesdatadir/%name/%name.xpm %buildroot%_pixmapsdir
install -pD -m 644 %buildroot%_gamesdatadir/%name/%name.desktop %buildroot%_desktopdir/%name.desktop
rm %buildroot%_gamesdatadir/%name/%name.desktop
# Fix Categories in desktop file
sed -i '/^Categories/s|Games|Game;ArcadeGame|' %buildroot%_desktopdir/%name.desktop
%post
%update_menus
%postun
%clean_menus
%files
%doc AUTHORS ChangeLog COPYRIGHT
%doc doc/index.html doc/dl_ii_linux.html doc/logo_big.jpg
%doc doc/tn_* doc/screen_explanation.jpg
%_gamesbindir/%name
%_gamesdatadir/%name/
%_desktopdir/%name.desktop
%_man6dir/%name.6.*
%_pixmapsdir/%name.xpm
%changelog
…
Полный changelog можно просмотреть здесь
%define _unpackaged_files_terminate_build 1
Name: crack-attack
Version: 1.1.14
Release: alt5
Summary: Crack Attack! is a fast paced 3D puzzle game
Summary(ru_RU.CP1251): Crack Attack! ЩРН АШЯРПЮЪ 3D ХЦПЮ-ЦНКНБНКНЛЙЮ
License: GPL
Group: Games/Arcade
Url: http://www.nongnu.org/crack-attack/
Packager: Slava Semushin <php-coder at altlinux.ru>
Source: http://savannah.nongnu.org/download/crack-attack/%name-%version.tar.bz2
Patch: %name-alt-warnings-Wall_fix.patch
Patch1: %name-upstream-start_game_fix.patch
Patch2: %name-alt-upstream-alt_f4_exit_fix.patch
Patch3: %name-upstream-src-glutDestroyWindow_call_fix.patch
# For %%_desktopdir and %%_pixmapsdir macros (-alt55)
BuildPreReq: rpm >= 4.0.4-alt55
BuildRequires: libSDL-devel libglut-devel libmesa-devel libgtk+2-devel
BuildRequires: libXi-devel libXmu-devel gcc-c++ pkg-config
%description
Crack Attack! is a fast-paced puzzle game inspired by the classic
Super NES title Tetris Attack!
%description -l ru_RU.CP1251
Crack Attack! ЩРН АШЯРПЮЪ ХЦПЮ-ЦНКНБНКНЛЙЮ, БДНУМНБКЕММЮЪ ЙКЮЯЯХВЕЯЙНИ
ХЦПНИ НР Super NES ОНД МЮГБЮМХЕЛ Tetris Attack!
%prep
%setup
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
# fixed warnings from autoconf
sed -i '4a\
AC_CANONICAL_HOST\
AC_CANONICAL_TARGET
;14,16d' configure.ac
%__autoreconf
%build
%configure --bindir=%_gamesbindir --datadir=%_gamesdatadir
%make_build --silent --no-print-directory CXXFLAGS="%optflags -Werror"
%install
%make_install --silent --no-print-directory DESTDIR=%buildroot install
mkdir -p %buildroot%_pixmapsdir
ln -s %_gamesdatadir/%name/%name.xpm %buildroot%_pixmapsdir
install -pD -m 644 %buildroot%_gamesdatadir/%name/%name.desktop %buildroot%_desktopdir/%name.desktop
rm %buildroot%_gamesdatadir/%name/%name.desktop
# Fix Categories in desktop file
sed -i '/^Categories/s|Games|Game;ArcadeGame|' %buildroot%_desktopdir/%name.desktop
%post
%update_menus
%postun
%clean_menus
%files
%doc AUTHORS ChangeLog COPYRIGHT
%doc doc/index.html doc/dl_ii_linux.html doc/logo_big.jpg
%doc doc/tn_* doc/screen_explanation.jpg
%_gamesbindir/%name
%_gamesdatadir/%name/
%_desktopdir/%name.desktop
%_man6dir/%name.6.*
%_pixmapsdir/%name.xpm
%changelog
…
Полный changelog можно просмотреть здесь