]> git.pld-linux.org Git - packages/doomsday.git/blame - doomsday.spec
- ver. 1.9.0 beta3
[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
9d711c99 6Version: 1.9.0
7Release: 0.beta3.1
613b8bc6 8License: GPL v2
9Group: Applications/Games
9d711c99 10Source0: http://dl.sourceforge.net/deng/deng-%{version}-beta3.tar.gz
5d41022a 11# Source0-md5: 1717d0de5bc8efba9076d6b8e2055d08
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
4f33d834 22BuildRequires: rpmbuild(macros) >= 1.213
6f1050b2 23Requires(post): /sbin/ldconfig
1748e707 24Requires: TiMidity++
da079c2a 25# it's FUBAR by storing pointers in int struct fields
4f33d834 26ExcludeArch: %{x8664} alpha 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
9d711c99 38%setup -q -n deng-%{version}-beta3
613b8bc6 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
f6ee92a4 65Categories=Game;FirstPersonGame;
1748e707
ER
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
f6ee92a4 78Categories=Game;FirstPersonGame;
1748e707
ER
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
f6ee92a4 91Categories=Game;FirstPersonGame;
1748e707
ER
92Encoding=UTF-8
93# vi: encoding=utf-8
94EOF
95
f6ee92a4
ER
96rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
97
613b8bc6 98%clean
6f1050b2 99rm -rf $RPM_BUILD_ROOT
613b8bc6 100
101%post
102/sbin/ldconfig
103if [ "$1" = "1" ]; then
1748e707
ER
104 %banner -e %{name} <<-EOF
105 To run doomsday you need some WAD file: either freedoom package
106 or some shareware or commercial WAD from Doom or Heretic:
107 Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
108 Heretic.wad or Heretic1.wad.
109 When you have them, run doomsday with:
110 doomsday -game [ jdoom | jheretic | jhexen ]
111EOF
613b8bc6 112fi
113
114%postun -p /sbin/ldconfig
115
116%files
117%defattr(644,root,root,755)
118%doc Doc/*
119%attr(755,root,root) %{_bindir}/doomsday
613b8bc6 120%attr(755,root,root) %{_libdir}/*.so.*.*.*
6f1050b2 121%{_libdir}/*.la
613b8bc6 122%{_datadir}/deng
1748e707 123%{_desktopdir}/*.desktop
This page took 0.146515 seconds and 4 git commands to generate.