Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37496635
en ru br
Репозитории ALT

Группа :: Игры/Аркады
Пакет: TetrisGL

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: TetrisGL
Version: 1.0.2
Release: alt5

Summary: Just another tetris game with OpenGL graphics
License: GPLv3
Group: Games/Arcade

Url: http://github.com/BaZzz01010101/TetrisGL
Source0: %name-%version.tar
Source1: TetrisGL-32.png
Source2: TetrisGL-48.png
Source3: TetrisGL-64.png
Source4: TetrisGL-96.png
Source5: TetrisGL-128.png

Patch0: 0001-Add-time.h-in-Crosy.cpp.patch

BuildRequires: cmake rpm-macros-cmake
BuildRequires: gcc-c++
BuildRequires: libGLEW-devel
BuildRequires: libglfw3-devel
BuildRequires: libglm-devel
BuildRequires: rapidjson
BuildRequires: libfreetype-devel
BuildRequires: libstb-devel
BuildRequires: libalsa-devel

%description
This project has developed for training purposes only.
It has been written in C++ and uses OpenGL to render all graphics.

Ported to Linux/e2k online: http://youtu.be/761Ab1SDZsQ
(see http://github.com/Imp5/TetrisGL)

NB: users must be in the `games' group to play,
care for them not to get stuck!

%prep
%setup

%patch0 -p1

%build
%cmake_insource
%make_build # VERBOSE=1

cat > %name << EOF
#!/bin/sh
exec %_libexecdir/%name/%name
EOF

cat > %name.desktop << EOF
[Desktop Entry]
Name=%name
Comment=Tetris with nifty graphics
Exec=%name
Icon=%name
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

cp -at . -- %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5

%install
rm -f bin/*.{exe,dll}

mkdir -p %buildroot%_libexecdir/%name
cp -a bin/* %buildroot%_libexecdir/%name

install -D /dev/null %buildroot%_localstatedir/games/%name.scores
ln -srf %buildroot{%_localstatedir/games/%name.scores,%_libexecdir/%name/leaderboard.dat}

install -D bin/settings.dat %buildroot%_localstatedir/games/%name.settings
ln -srf %buildroot{%_localstatedir/games/%name.settings,%_libexecdir/%name/settings.dat}

install -pDm755 ../bin/%name %buildroot%_libexecdir/%name/%name
install -pDm755 %name %buildroot%_bindir/%name

install -pDm644 %name.desktop %buildroot%_desktopdir/%name.desktop

for i in 32 48 64 96 128; do
install -pDm644 %name-$i.png \
%buildroot%_iconsdir/hicolor/${i}x${i}/apps/%name.png
done

%files
%doc README.md
%_libexecdir/%name
%attr(0755,root,games) %_bindir/%name
%attr(2711,root,games) %_libexecdir/%name/%name
%attr(0664,root,games) %_localstatedir/games/%name.scores
%attr(0664,root,games) %_localstatedir/games/%name.settings
%_iconsdir/hicolor/*/apps/%name.png
%_desktopdir/%name.desktop

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin