]> git.pld-linux.org Git - packages/doomsday.git/blob - doomsday.spec
- add cve info (unsolvable)
[packages/doomsday.git] / doomsday.spec
1 # TODO
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
6 Name:           doomsday
7 Version:        1.9.0
8 Release:        0.beta3.1
9 License:        GPL v2
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
25 Requires:               TiMidity++
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)
29
30 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
31
32 %description
33 jDoom, jHeretic and jHexen for Linux.
34
35 %description -l pl
36 jDoom, jHeretic i jHexen dla Linuksa.
37
38 %prep
39 %setup -q -n deng-%{version}-beta3
40 %patch0 -p1
41 %patch1 -p1
42
43 %build
44 %{__aclocal}
45 %{__autoconf}
46 %{__automake}
47
48 %configure
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_desktopdir}
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-doom.desktop
59 [Desktop Entry]
60 Name=Doom
61 Comment=Doom for linux
62 Exec=doomsday -game jdoom
63 #Icon=hexen.png
64 Terminal=false
65 Type=Application
66 Categories=Game;FirstPersonGame;
67 Encoding=UTF-8
68 # vi: encoding=utf-8
69 EOF
70
71 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-hexen.desktop
72 [Desktop Entry]
73 Name=Hexen
74 Comment=Hexen for linux
75 Exec=doomsday -game jhexen
76 #Icon=heretic.png
77 Terminal=false
78 Type=Application
79 Categories=Game;FirstPersonGame;
80 Encoding=UTF-8
81 # vi: encoding=utf-8
82 EOF
83
84 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-heretic.desktop
85 [Desktop Entry]
86 Name=Heretic
87 Comment=Heretic for linux
88 Exec=doomsday -game jheretic
89 #Icon=heretic.png
90 Terminal=false
91 Type=Application
92 Categories=Game;FirstPersonGame;
93 Encoding=UTF-8
94 # vi: encoding=utf-8
95 EOF
96
97 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post
103 /sbin/ldconfig
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 ]
112 EOF
113 fi
114
115 %postun -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc Doc/*
120 %attr(755,root,root) %{_bindir}/doomsday
121 %attr(755,root,root) %{_libdir}/*.so.*.*.*
122 %{_libdir}/*.la
123 %{_datadir}/deng
124 %{_desktopdir}/*.desktop
This page took 0.094504 seconds and 3 git commands to generate.