5 Summary: jDoom, jHeretic and jHexen for Linux
6 Summary(pl.UTF-8): jDoom, jHeretic i jHexen dla Linuksa
9 Release: 0.%{subver}.%{rel}
10 License: GPL v2 / CC 3.0 (icons)
11 Group: Applications/Games
12 Source0: http://downloads.sourceforge.net/deng/deng-%{version}-%{subver}.tar.gz
13 # Source0-md5: 907ef41b70e2dbf148ef7e4a0350c6bd
14 Source1: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-26/Doom-1-48x48.png
15 # Source1-md5: b7b7a9389eba56679e5db65d95c06803
16 Source2: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-23/Hexen-1-48x48.png
17 # Source2-md5: 573845e6e747f68617ac67f3a87dc78e
18 Source3: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-28/Heretic-I-1-48x48.png
19 # Source3-md5: c89e36c49eabe2846137f313a5250308
20 URL: http://www.dengine.net/
21 BuildRequires: OpenAL-devel
22 BuildRequires: OpenGL-GLU-devel
23 BuildRequires: OpenGL-devel
24 BuildRequires: SDL-devel >= 1.2.0
25 BuildRequires: SDL_mixer-devel
26 BuildRequires: SDL_net-devel
27 BuildRequires: cmake >= 2.4
28 BuildRequires: curl-devel
29 BuildRequires: libpng-devel
30 BuildRequires: ncurses-devel
32 BuildRequires: python-modules
33 BuildRequires: rpmbuild(macros) >= 1.595
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 The Doomsday Engine allows you to play the classic first-person
39 shooters DOOM, Heretic, and Hexen using modern technology, with
40 hardware accelerated 3D graphics, surround sound and much more.
42 %description -l pl.UTF-8
43 jDoom, jHeretic i jHexen dla Linuksa.
46 %setup -q -n deng-%{version}-%{subver}
54 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
55 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_desktopdir}
63 %{__make} -C build install \
64 DESTDIR=$RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
67 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/doom.png
68 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/hexen.png
69 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/heretic.png
71 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-doom.desktop
74 Comment=Doom for linux
75 Exec=doomsday -game jdoom
79 Categories=Game;FirstPersonGame;
83 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-hexen.desktop
86 Comment=Hexen for linux
87 Exec=doomsday -game jhexen
91 Categories=Game;FirstPersonGame;
95 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-heretic.desktop
98 Comment=Heretic for linux
99 Exec=doomsday -game jheretic
103 Categories=Game;FirstPersonGame;
108 rm -rf $RPM_BUILD_ROOT
111 %banner -o -e %{name} <<-EOF
112 To run doomsday you need some WAD file: either freedoom package
113 or some shareware or commercial WAD from Doom or Heretic:
114 Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
115 Heretic.wad or Heretic1.wad.
116 When you have them, run doomsday with:
117 doomsday -game [ jdoom | jheretic | jhexen ]
121 %defattr(644,root,root,755)
122 %doc doomsday/build/README
123 %attr(755,root,root) %{_bindir}/doomsday
124 %attr(755,root,root) %{_libdir}/libdpdehread.so
125 %attr(755,root,root) %{_libdir}/libdpwadmapconverter.so
126 %attr(755,root,root) %{_libdir}/libjdoom.so
127 %attr(755,root,root) %{_libdir}/libjheretic.so
128 %attr(755,root,root) %{_libdir}/libjhexen.so
129 %attr(755,root,root) %{_libdir}/libdsopenal.so
131 %{_desktopdir}/*.desktop