]> git.pld-linux.org Git - packages/doomsday.git/blame - doomsday.spec
- use %banner
[packages/doomsday.git] / doomsday.spec
CommitLineData
1748e707
ER
1# TODO
2# - icons for desktop files
613b8bc6 3Summary: jDoom, jHeretic and jHexen for Linux
6f1050b2 4Summary(pl): jDoom, jHeretic i jHexen dla Linuksa
613b8bc6 5Name: doomsday
bef6e48a 6Version: 1.8.5
1748e707 7Release: 0.4
613b8bc6 8License: GPL v2
9Group: Applications/Games
10Source0: http://dl.sourceforge.net/deng/deng-%{version}.tar.gz
bef6e48a 11# Source0-md5: 0e1f34ebddae77315765ce089e88a9f3
613b8bc6 12Patch0: %{name}-ncurses.patch
1748e707 13Patch1: %{name}-runtimedir.patch
6f1050b2 14URL: http://www.doomsdayhq.com/
613b8bc6 15BuildRequires: OpenAL-devel
16BuildRequires: OpenGL-devel
17BuildRequires: SDL-devel >= 1.2.0
18BuildRequires: SDL_mixer-devel
19BuildRequires: SDL_net-devel
6f1050b2
JB
20BuildRequires: autoconf
21BuildRequires: automake
1748e707 22BuildRequires: rpmbuild(macros) >= 1.194
6f1050b2 23Requires(post): /sbin/ldconfig
1748e707 24Requires: TiMidity++
da079c2a
JB
25# it's FUBAR by storing pointers in int struct fields
26ExcludeArch: alpha amd64 ia64 ppc64 s390x sparc64
613b8bc6 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%define _noautoreqdep libGL.so.1 libGLU.so.1
30
31%description
6f1050b2 32jDoom, jHeretic and jHexen for Linux.
613b8bc6 33
34%description -l pl
6f1050b2 35jDoom, jHeretic i jHexen dla Linuksa.
613b8bc6 36
37%prep
38%setup -q -n deng-%{version}
39%patch0 -p1
1748e707 40%patch1 -p1
613b8bc6 41
42%build
43%{__aclocal}
44%{__autoconf}
45%{__automake}
46
47%configure
48%{__make}
49
50%install
51rm -rf $RPM_BUILD_ROOT
1748e707 52install -d $RPM_BUILD_ROOT%{_desktopdir}
613b8bc6 53
54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT
56
1748e707
ER
57cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-doom.desktop
58[Desktop Entry]
59Name=Doom
60Comment=Doom for linux
61Exec=doomsday -game jdoom
62#Icon=hexen.png
63Terminal=false
64Type=Application
65Category=Game;FPP;
66Encoding=UTF-8
67# vi: encoding=utf-8
68EOF
69
70cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-hexen.desktop
71[Desktop Entry]
72Name=Hexen
73Comment=Hexen for linux
74Exec=doomsday -game jhexen
75#Icon=heretic.png
76Terminal=false
77Type=Application
78Category=Game;FPP;
79Encoding=UTF-8
80# vi: encoding=utf-8
81EOF
82
83cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-heretic.desktop
84[Desktop Entry]
85Name=Heretic
86Comment=Heretic for linux
87Exec=doomsday -game jheretic
88#Icon=heretic.png
89Terminal=false
90Type=Application
91Category=Game;FPP;
92Encoding=UTF-8
93# vi: encoding=utf-8
94EOF
95
613b8bc6 96%clean
6f1050b2 97rm -rf $RPM_BUILD_ROOT
613b8bc6 98
99%post
100/sbin/ldconfig
101if [ "$1" = "1" ]; then
1748e707
ER
102 %banner -e %{name} <<-EOF
103 To run doomsday you need some WAD file: either freedoom package
104 or some shareware or commercial WAD from Doom or Heretic:
105 Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
106 Heretic.wad or Heretic1.wad.
107 When you have them, run doomsday with:
108 doomsday -game [ jdoom | jheretic | jhexen ]
109EOF
613b8bc6 110fi
111
112%postun -p /sbin/ldconfig
113
114%files
115%defattr(644,root,root,755)
116%doc Doc/*
117%attr(755,root,root) %{_bindir}/doomsday
613b8bc6 118%attr(755,root,root) %{_libdir}/*.so.*.*.*
6f1050b2 119%{_libdir}/*.la
613b8bc6 120%{_datadir}/deng
1748e707 121%{_desktopdir}/*.desktop
This page took 0.104459 seconds and 4 git commands to generate.