2 # - icons for desktop files
3 # - (CVE-2006-1618) http://security.gentoo.org/glsa/glsa-200604-05.xml
4 Summary: jDoom, jHeretic and jHexen for Linux
5 Summary(pl): jDoom, jHeretic i jHexen dla Linuksa
10 Group: Applications/Games
11 Source0: http://dl.sourceforge.net/deng/deng-%{version}-beta3.tar.gz
12 # Source0-md5: 581fefd6165dd4104b25656a6b9f31b4
13 Patch0: %{name}-ncurses.patch
14 Patch1: %{name}-runtimedir.patch
15 URL: http://www.doomsdayhq.com/
16 BuildRequires: OpenAL-devel
17 BuildRequires: OpenGL-devel
18 BuildRequires: SDL-devel >= 1.2.0
19 BuildRequires: SDL_mixer-devel
20 BuildRequires: SDL_net-devel
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: rpmbuild(macros) >= 1.213
24 Requires(post): /sbin/ldconfig
26 # it's FUBAR by storing pointers in int struct fields
27 ExcludeArch: %{x8664} alpha ia64 ppc64 s390x sparc64
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _noautoreqdep libGL.so.1 libGLU.so.1
33 jDoom, jHeretic and jHexen for Linux.
36 jDoom, jHeretic i jHexen dla Linuksa.
39 %setup -q -n deng-%{version}-beta3
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_desktopdir}
56 DESTDIR=$RPM_BUILD_ROOT
58 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-doom.desktop
61 Comment=Doom for linux
62 Exec=doomsday -game jdoom
66 Categories=Game;FirstPersonGame;
71 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-hexen.desktop
74 Comment=Hexen for linux
75 Exec=doomsday -game jhexen
79 Categories=Game;FirstPersonGame;
84 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-heretic.desktop
87 Comment=Heretic for linux
88 Exec=doomsday -game jheretic
92 Categories=Game;FirstPersonGame;
97 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
100 rm -rf $RPM_BUILD_ROOT
104 if [ "$1" = "1" ]; then
105 %banner -e %{name} <<-EOF
106 To run doomsday you need some WAD file: either freedoom package
107 or some shareware or commercial WAD from Doom or Heretic:
108 Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
109 Heretic.wad or Heretic1.wad.
110 When you have them, run doomsday with:
111 doomsday -game [ jdoom | jheretic | jhexen ]
115 %postun -p /sbin/ldconfig
118 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/doomsday
121 %attr(755,root,root) %{_libdir}/*.so.*.*.*
124 %{_desktopdir}/*.desktop