Репозитории ALT
S: | 0.7.0-alt3 |
5.1: | 0.6.2-alt2 |
4.1: | 0.6.2-alt0.1 |
4.0: | 0.6.2-alt0.1 |
3.0: | 0.4.0-alt1 |
Группа :: Игры/Приключения
Пакет: uqm-bin
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define rname uqm
%define what bin
Name: %rname-%what
Version: 0.6.2
Release: alt0.1
Group: Games/Adventure
Summary: The Ur-Quan Masters (port of the classic space game StarControl 2).
Url: http://sc2.sourceforge.net
License: GPL
Requires: %rname-content = 0.6.0
Requires: %rname-common = %version
Obsoletes: %rname-game
Source0: %rname-%version.tar.bz2
#
Source10: %rname.16.png
Source11: %rname.32.png
Source12: %rname.48.png
BuildPreReq: libmesa-devel libmikmod-devel libopenal-devel libSDL-devel
BuildPreReq: libSDL_image-devel libvorbis-devel zlib-devel
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
%description
The project started in August 2002, when Toys For Bob <http://toysforbob.com/>
released the partially ported sources of Star Control 2 <http://star-control.com>
3DO version to the fan community. Our goal is to port this wonderful game
to current personal computers and operating systems. It is and will remain
100%% free of charge, and anyone can contribute to the project and thus
help make it even better.
This package contains binary executable program for this game.
%prep
%setup -q -n %rname-%version
cd sc2
%build
export CFLAGS="%optflags" LDFLAGS="%optflags"
cd sc2
./build.sh %rname <<__EOF__
1
1
2
2
3
2
4
2
5
1
10
1
/usr
4
\$prefix/share/games
__EOF__
%install
mkdir -p %buildroot/{%_gamesbindir,%_menudir}
mkdir -p %buildroot/%_gamesdatadir/%rname/content/packages/addons
install -m 755 sc2/%rname %buildroot/%_gamesbindir
install -m 644 sc2/content/version %buildroot/%_gamesdatadir/%rname/content/version
cat > %buildroot/%_menudir/%name <<__EOF__
?package(%name): \
needs="x11" \
section="Amusement/Adventure/" \
title="The Ur-Quan Masters" \
icon="%rname.png"
__EOF__
cat >> %buildroot/%_menudir/%name <<__EOF__
?package(%name): \
command="%_gamesbindir/%rname --addon uqmremix" \
needs="x11" \
icon="%rname.png" \
section="Amusement/Adventure/The Ur-Quan Masters" \
title="The Ur-Quan Masters" \
longtitle="Port of the classic space game StarControl 2."
__EOF__
cat >> %buildroot/%_menudir/%name <<__EOF__
?package(%name): \
command="%_gamesbindir/%rname --addon uqmremix -q high -f -o -c bilinear " \
needs="x11" \
icon="%rname.png" \
section="Amusement/Adventure/The Ur-Quan Masters" \
title="The Ur-Quan Masters [Hi Resolution]" \
longtitle="Port of the classic space game StarControl 2 (hi resolution mode)."
__EOF__
mkdir -p %buildroot/%_iconsdir/hicolor/{16x16,32x32,48x48}/apps/
install -m 644 %SOURCE10 %buildroot/%_iconsdir/hicolor/16x16/apps/%rname.png
install -m 644 %SOURCE11 %buildroot/%_iconsdir/hicolor/32x32/apps/%rname.png
install -m 644 %SOURCE12 %buildroot/%_iconsdir/hicolor/48x48/apps/%rname.png
%post
%update_menus
%postun
%clean_menus
%files
%doc sc2/{AUTHORS,BUGS,COPYING,ChangeLog,Contributing,README,WhatsNew,uqm.lsm} sc2/doc/users/manual* sc2/doc/devel
%_gamesbindir/%rname
%_gamesdatadir/%rname
%_menudir/%name
%_iconsdir/hicolor/*/apps/%rname.png
%changelog
…
Полный changelog можно просмотреть здесь
%define rname uqm
%define what bin
Name: %rname-%what
Version: 0.6.2
Release: alt0.1
Group: Games/Adventure
Summary: The Ur-Quan Masters (port of the classic space game StarControl 2).
Url: http://sc2.sourceforge.net
License: GPL
Requires: %rname-content = 0.6.0
Requires: %rname-common = %version
Obsoletes: %rname-game
Source0: %rname-%version.tar.bz2
#
Source10: %rname.16.png
Source11: %rname.32.png
Source12: %rname.48.png
BuildPreReq: libmesa-devel libmikmod-devel libopenal-devel libSDL-devel
BuildPreReq: libSDL_image-devel libvorbis-devel zlib-devel
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
%description
The project started in August 2002, when Toys For Bob <http://toysforbob.com/>
released the partially ported sources of Star Control 2 <http://star-control.com>
3DO version to the fan community. Our goal is to port this wonderful game
to current personal computers and operating systems. It is and will remain
100%% free of charge, and anyone can contribute to the project and thus
help make it even better.
This package contains binary executable program for this game.
%prep
%setup -q -n %rname-%version
cd sc2
%build
export CFLAGS="%optflags" LDFLAGS="%optflags"
cd sc2
./build.sh %rname <<__EOF__
1
1
2
2
3
2
4
2
5
1
10
1
/usr
4
\$prefix/share/games
__EOF__
%install
mkdir -p %buildroot/{%_gamesbindir,%_menudir}
mkdir -p %buildroot/%_gamesdatadir/%rname/content/packages/addons
install -m 755 sc2/%rname %buildroot/%_gamesbindir
install -m 644 sc2/content/version %buildroot/%_gamesdatadir/%rname/content/version
cat > %buildroot/%_menudir/%name <<__EOF__
?package(%name): \
needs="x11" \
section="Amusement/Adventure/" \
title="The Ur-Quan Masters" \
icon="%rname.png"
__EOF__
cat >> %buildroot/%_menudir/%name <<__EOF__
?package(%name): \
command="%_gamesbindir/%rname --addon uqmremix" \
needs="x11" \
icon="%rname.png" \
section="Amusement/Adventure/The Ur-Quan Masters" \
title="The Ur-Quan Masters" \
longtitle="Port of the classic space game StarControl 2."
__EOF__
cat >> %buildroot/%_menudir/%name <<__EOF__
?package(%name): \
command="%_gamesbindir/%rname --addon uqmremix -q high -f -o -c bilinear " \
needs="x11" \
icon="%rname.png" \
section="Amusement/Adventure/The Ur-Quan Masters" \
title="The Ur-Quan Masters [Hi Resolution]" \
longtitle="Port of the classic space game StarControl 2 (hi resolution mode)."
__EOF__
mkdir -p %buildroot/%_iconsdir/hicolor/{16x16,32x32,48x48}/apps/
install -m 644 %SOURCE10 %buildroot/%_iconsdir/hicolor/16x16/apps/%rname.png
install -m 644 %SOURCE11 %buildroot/%_iconsdir/hicolor/32x32/apps/%rname.png
install -m 644 %SOURCE12 %buildroot/%_iconsdir/hicolor/48x48/apps/%rname.png
%post
%update_menus
%postun
%clean_menus
%files
%doc sc2/{AUTHORS,BUGS,COPYING,ChangeLog,Contributing,README,WhatsNew,uqm.lsm} sc2/doc/users/manual* sc2/doc/devel
%_gamesbindir/%rname
%_gamesdatadir/%rname
%_menudir/%name
%_iconsdir/hicolor/*/apps/%rname.png
%changelog
…
Полный changelog можно просмотреть здесь