2 # - icons for desktop files
3 # - (CVE-2006-1618) http://security.gentoo.org/glsa/glsa-200604-05.xml
7 Summary: jDoom, jHeretic and jHexen for Linux
8 Summary(pl.UTF-8): jDoom, jHeretic i jHexen dla Linuksa
11 Release: 0.%{subver}.%{rel}
13 Group: Applications/Games
14 Source0: http://dl.sourceforge.net/deng/deng-%{version}-%{subver}.tar.gz
15 # Source0-md5: 63fdbc11f0473535f7206f62952a1e2e
16 URL: http://www.doomsdayhq.com/
17 BuildRequires: OpenAL-devel
18 BuildRequires: OpenGL-devel
19 BuildRequires: SDL-devel >= 1.2.0
20 BuildRequires: SDL_mixer-devel
21 BuildRequires: SDL_net-devel
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: cmake >= 2.4
25 BuildRequires: rpmbuild(macros) >= 1.213
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 jDoom, jHeretic and jHexen for Linux.
33 %description -l pl.UTF-8
34 jDoom, jHeretic i jHexen dla Linuksa.
37 %setup -q -n deng-%{version}-%{subver}
43 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
44 -DCURSES_INCLUDE_PATH=/usr/include/ncurses \
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_desktopdir}
52 %{__make} -C build install \
53 DESTDIR=$RPM_BUILD_ROOT
55 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-doom.desktop
58 Comment=Doom for linux
59 Exec=doomsday -game jdoom
63 Categories=Game;FirstPersonGame;
68 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-hexen.desktop
71 Comment=Hexen for linux
72 Exec=doomsday -game jhexen
76 Categories=Game;FirstPersonGame;
81 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-heretic.desktop
84 Comment=Heretic for linux
85 Exec=doomsday -game jheretic
89 Categories=Game;FirstPersonGame;
95 rm -rf $RPM_BUILD_ROOT
98 if [ "$1" = "1" ]; then
99 %banner -e %{name} <<-EOF
100 To run doomsday you need some WAD file: either freedoom package
101 or some shareware or commercial WAD from Doom or Heretic:
102 Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
103 Heretic.wad or Heretic1.wad.
104 When you have them, run doomsday with:
105 doomsday -game [ jdoom | jheretic | jhexen ]
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_bindir}/doomsday
112 %attr(755,root,root) %{_libdir}/libdpdehread.so
113 %attr(755,root,root) %{_libdir}/libdpwadmapconverter.so
114 %attr(755,root,root) %{_libdir}/libjdoom.so
115 %attr(755,root,root) %{_libdir}/libjheretic.so
116 %attr(755,root,root) %{_libdir}/libjhexen.so
118 %{_desktopdir}/*.desktop