Package d2x-rebirth: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | Summary: The port of Descent 2 for Linux Name: d2x-rebirth Version: 0.55.1 Release: alt1 License: GPL Group: Games/Arcade Url: http://www.dxx-rebirth.de/ Source: http://sourceforge.net/projects/dxx-rebirth/files/dxx-rebirth/%{name}_v%{version}-src.tar.gz Source1: %name.png Source2: D2XBDE01.zip Packager: Fr. Br. George <george@altlinux.ru> # Automatically added by buildreq on Mon Nov 03 2008 BuildRequires: dos2unix gcc-c++ libGL-devel libSDL-devel libSDL_mixer-devel physfs-devel scons unzip %description This is the port of Descent 2, the famous 3D game for PC. D2X is based on source code that was released the 14 December 1999 by Parallax Software Corporation. To use this package you'll need some datafiles installed in %_gamesdatadir/descent2 See dxx-readme.txt. %package sdl Group: Games/Arcade Summary: Descent 2 for Linux, SDL version Requires: d2x-rebirth = %version Conflicts: d2x-rebirth-gl %description sdl This is the port of Descent 2, the famous 3D game for PC. D2X is based on source code that was released the 14 December 1999 by Parallax Software Corporation. To use this package you'll need some datafiles installed in /usr/share/games/descent2. See dxx-readme.txt. This version uses SDL for Audio, Input/Output and graphics rendering. You may use SHAREWARE version of descent with d2x You can get it from here: http://download.descent-network.com/shareware1/descent2/playable/d2shar10.exe and unrar like this: unrar x -cl d2shar10.exe /usr/share/games/descent2 %package gl Group: Games/Arcade Summary: Descent 2 for Linux, OpenGL version Requires: d2x-rebirth = %version Conflicts: d2x-rebirth-sdl %description gl This is the port of Descent 2, the famous 3D game for PC. D2X is based on source code that was released the 14 December 1999 by Parallax Software Corporation. To use this package you'll need some datafiles installed in /usr/share/games/descent2. See dxx-readme.txt. This version uses SDL for Audio and Input/Output and OpenGL for graphics rendering. You may use SHAREWARE version of descent with d2x You can get it from here: http://download.descent-network.com/shareware1/descent2/playable/d2shar10.exe and unrar like this: unrar x -cl d2shar10.exe /usr/share/games/descent2 %prep %setup -q -n %{name}_v%{version}-src -a2 dos2unix d2x.ini *.txt chmod 644 d2x.ini *.txt sed -i '/MAX_MULTI_MESSAGE_LEN+4/s/MAX_MULTI_MESSAGE_LEN+4/MAX_MULTI_MESSAGE_LEN+22/' main/multi.h sed -i '/MAX_MULTI_MESSAGE_LEN+4/s/MAX_MULTI_MESSAGE_LEN+4/MAX_MULTI_MESSAGE_LEN+22/' main/multi.c %build # d2x-sdl scons -j%__nprocs \ sharepath=%_gamesdatadir/descent2 \ sdl_only=1 \ sdlmixer=1 \ no_asm=1 # d2x-gl scons -c scons -j%__nprocs \ sharepath=%_gamesdatadir/descent2 \ sdlmixer=1 \ PREFIX=%buildroot%prefix %install # binaries install -dm 755 %buildroot%_gamesbindir/ install -m 755 d2x-rebirth-gl %buildroot%_gamesbindir/ install -m 755 d2x-rebirth-sdl %buildroot%_gamesbindir/ install -dm 755 %buildroot%_gamesdatadir/descent2 # german translations install -m 644 D2XBDE01/D2XbDE01/*.txb %buildroot%_gamesdatadir/descent2 install -m 644 D2XBDE01/*.txt %buildroot%_gamesdatadir/descent2 # directory for original descent data install -dm 755 %buildroot%_gamesdatadir/descent2/missions # man-pages install -dm 755 %buildroot%_mandir/man1/ install -m 644 libmve/*.1 %buildroot%_mandir/man1/ # icon install -dm 755 %buildroot%_datadir/pixmaps install -m 644 %SOURCE1 %buildroot%_datadir/pixmaps # menu install -dm 755 %buildroot%_desktopdir cat > %name-sdl.desktop << EOF [Desktop Entry] Encoding=UTF-8 Type=Application Name=D2x (SDL version) Comment=The port of Descent 2 for Linux Exec=%_gamesbindir/d2x-rebirth-sdl Icon=%name Categories=Game;ActionGame; EOF install -m 644 %name-sdl.desktop %buildroot%_desktopdir cat > %name-gl.desktop << EOF [Desktop Entry] Encoding=UTF-8 Type=Application Name=D2x (OpenGL version) Comment=The port of Descent 2 for Linux Exec=%_gamesbindir/d2x-rebirth-gl Icon=%name Categories=Game;ActionGame; EOF install -m 644 %name-gl.desktop %buildroot%_desktopdir %files %doc *.txt *.plist *.ini %dir %_gamesdatadir/descent2 %_gamesdatadir/descent2/*.txb %_gamesdatadir/descent2/*.txt %dir %_gamesdatadir/descent2/missions %_man1dir/* %_datadir/pixmaps/%name.png %files sdl %doc COPYING* %_gamesbindir/d2x-rebirth-sdl %_desktopdir/%name-sdl.desktop %files gl %doc COPYING* %_gamesbindir/d2x-rebirth-gl %_desktopdir/%name-gl.desktop %changelog * Fri Jul 10 2009 Fr. Br. George <george@altlinux.ru> 0.55.1-alt1 - Version up * Sun Jan 04 2009 Fr. Br. George <george@altlinux.ru> 0.55-alt1 - Version up * Mon Nov 03 2008 Fr. Br. George <george@altlinux.ru> 0.54-alt1 - Initial build from SuSE * Sun Jun 29 2008 Toni Graffy <toni@links2linux.de> - 0.54-0.pm.1 - update to 0.54 * Mon Dec 03 2007 Toni Graffy <toni@links2linux.de> - 0.53-0.pm.2 - rebuild with new physfs(-devel) 1.1.1 * Thu Oct 25 2007 Toni Graffy <toni@links2linux.de> - 0.53-0.pm.1 - update to 0.53 * Sun May 06 2007 Toni Graffy <toni@links2linux.de> - 0.52-0.pm.1 - update to 0.52 * Fri Feb 16 2007 Toni Graffy <toni@links2linux.de> - 0.51-0.pm.1 - update to 0.51 * Sat Nov 11 2006 Toni Graffy <toni@links2linux.de> - 0.50-0.pm.1 - initial package 0.50 |