[521] | 1 | %define name tecnoballz |
---|
| 2 | %define version 0.92 |
---|
| 3 | %define release 1%{?_dist_release} |
---|
| 4 | |
---|
| 5 | Summary: A Breakout like game. |
---|
| 6 | Summary(ja): ブロック崩し |
---|
| 7 | Name: %{name} |
---|
| 8 | Version: %{version} |
---|
| 9 | Release: %{release} |
---|
| 10 | Source0: http://linux.tlk.fr/games/TecnoballZ/download/%{name}-%{version}.tgz |
---|
| 11 | Source1: %{name}.png |
---|
| 12 | Source2: %{name}.desktop |
---|
| 13 | License: GPLv3 |
---|
| 14 | Group: Applications/Games |
---|
| 15 | URL: http://linux.tlk.fr/games/TecnoballZ/ |
---|
| 16 | |
---|
| 17 | Requires: SDL SDL_mixer libogg libvorbis mikmod smpeg |
---|
| 18 | BuildRequires: SDL-devel SDL_mixer-devel |
---|
| 19 | BuildRequires: libogg-devel libvorbis-devel mikmod-devel smpeg-devel sed |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | |
---|
| 22 | Vendor: Project Vine |
---|
| 23 | Distribution: Vine Linux |
---|
| 24 | Packager: OOI Keita <ooi.keita@gmail.com> |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | A exciting Brick Breaker with 50 levels of game and 11 special levels, |
---|
| 28 | distributed on the 2 modes of game to give the player a sophisticated |
---|
| 29 | system of attack weapons with an enormous power of fire that can be |
---|
| 30 | build by gaining bonuses. Numerous decors, musics and sounds |
---|
| 31 | complete this great game. This game was ported from the Commodore Amiga. |
---|
| 32 | |
---|
| 33 | %description -l ja |
---|
| 34 | すべてのブロックを壊せば、各面をクリアできます。 |
---|
| 35 | ゲームにはいくつかのアリアがあり、エリアは更に面に分かれています。 |
---|
| 36 | ボスキャラのいる面もあります。 |
---|
| 37 | エリアを通過する毎に、一つずつ、面の端の壁が開きます。 |
---|
| 38 | 各面の間では、ゲーム中に得たお金で、アイテムを購入することも可能です。 |
---|
| 39 | |
---|
| 40 | %prep |
---|
| 41 | %setup -q |
---|
| 42 | # FIX: set gamedir and scoredir |
---|
| 43 | sed -i 's|gamesdir = $(prefix)/games|gamesdir = ${bindir}|' src/Makefile.in |
---|
| 44 | sed -i 's|scoredir = /var/games/tecnoballz|scoredir = ${localstatedir}/games/%{name}|' Makefile.in |
---|
| 45 | |
---|
| 46 | %build |
---|
| 47 | %configure |
---|
| 48 | make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS" |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | rm -rf $RPM_BUILD_ROOT |
---|
| 52 | make install DESTDIR=%{buildroot} |
---|
| 53 | cp -fr src/TecnoballZ/levels-data.xml ${RPM_BUILD_ROOT}%{_datadir}/%{name} |
---|
| 54 | cp -fr src/TecnoballZ/texts ${RPM_BUILD_ROOT}%{_datadir}/%{name} |
---|
| 55 | |
---|
| 56 | # install icon |
---|
| 57 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps |
---|
| 58 | install -p -m 0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/%{name}.png |
---|
| 59 | |
---|
| 60 | # install desktop |
---|
| 61 | sed "s/Icon=tecnoballz.png/Icon=tecnoballz/" %{SOURCE2} > %{name}.desktop |
---|
| 62 | desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop |
---|
| 63 | |
---|
| 64 | %clean |
---|
| 65 | rm -rf $RPM_BUILD_ROOT |
---|
| 66 | |
---|
| 67 | %post |
---|
| 68 | %{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : |
---|
| 69 | |
---|
| 70 | %postun |
---|
| 71 | %{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : |
---|
| 72 | |
---|
| 73 | %files |
---|
| 74 | %defattr(-,root,root) |
---|
| 75 | %doc AUTHORS CHANGES COPYING INSTALL README |
---|
| 76 | %{_datadir}/%{name} |
---|
| 77 | %{_datadir}/pixmaps/%{name}.png |
---|
| 78 | %{_datadir}/applications/%{name}.desktop |
---|
| 79 | %{_mandir}/man6/%{name}* |
---|
| 80 | %attr(2755,root,games) %{_bindir}/%{name} |
---|
| 81 | %defattr(-,root,games) |
---|
| 82 | %config(noreplace) %{_localstatedir}/games/%{name}/* |
---|
| 83 | |
---|
| 84 | %changelog |
---|
| 85 | * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.92-1vl5 |
---|
| 86 | - applied new versioning policy, spec in utf-8 |
---|
| 87 | |
---|
| 88 | * Fri Jan 18 2008 Shu KONNO <owa@bg.wakwak.com> 0.92-0vl1 |
---|
| 89 | - updated tecnoballz to 0.92 |
---|
| 90 | - changed license to GPLv3 |
---|
| 91 | - changed description |
---|
| 92 | - dropt %{name}-0.91-owner.patch |
---|
| 93 | - dropt %{name}-0.91-datadir.patch |
---|
| 94 | |
---|
| 95 | * Tue Oct 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.91-0vl2 |
---|
| 96 | - rebuilt for Vine Linux 4.0 |
---|
| 97 | - changed Group to Applications/Games |
---|
| 98 | |
---|
| 99 | * Sun Mar 13 2005 OOI Keita <ooi.keita@gmail.com> 0.91-0vl1 |
---|
| 100 | - initial build |
---|
| 101 | - tecnoballz-0.91-owner-patch |
---|
| 102 | - setup desktop entry and icon |
---|
| 103 | - install man |
---|
| 104 | - tecnoballz-0.91-datadir.patch |
---|