]> git.pld-linux.org Git - packages/doomsday.git/blame - doomsday.spec
- add cve info (unsolvable)
[packages/doomsday.git] / doomsday.spec
CommitLineData
1748e707
ER
1# TODO
2# - icons for desktop files
97260e82 3# - (CVE-2006-1618) http://security.gentoo.org/glsa/glsa-200604-05.xml
613b8bc6 4Summary: jDoom, jHeretic and jHexen for Linux
6f1050b2 5Summary(pl): jDoom, jHeretic i jHexen dla Linuksa
613b8bc6 6Name: doomsday
9d711c99 7Version: 1.9.0
8Release: 0.beta3.1
613b8bc6 9License: GPL v2
10Group: Applications/Games
9d711c99 11Source0: http://dl.sourceforge.net/deng/deng-%{version}-beta3.tar.gz
6a37bbfb 12# Source0-md5: 581fefd6165dd4104b25656a6b9f31b4
613b8bc6 13Patch0: %{name}-ncurses.patch
1748e707 14Patch1: %{name}-runtimedir.patch
6f1050b2 15URL: http://www.doomsdayhq.com/
613b8bc6 16BuildRequires: OpenAL-devel
17BuildRequires: OpenGL-devel
18BuildRequires: SDL-devel >= 1.2.0
19BuildRequires: SDL_mixer-devel
20BuildRequires: SDL_net-devel
6f1050b2
JB
21BuildRequires: autoconf
22BuildRequires: automake
4f33d834 23BuildRequires: rpmbuild(macros) >= 1.213
6f1050b2 24Requires(post): /sbin/ldconfig
1748e707 25Requires: TiMidity++
da079c2a 26# it's FUBAR by storing pointers in int struct fields
4f33d834 27ExcludeArch: %{x8664} alpha ia64 ppc64 s390x sparc64
613b8bc6 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%define _noautoreqdep libGL.so.1 libGLU.so.1
31
32%description
6f1050b2 33jDoom, jHeretic and jHexen for Linux.
613b8bc6 34
35%description -l pl
6f1050b2 36jDoom, jHeretic i jHexen dla Linuksa.
613b8bc6 37
38%prep
9d711c99 39%setup -q -n deng-%{version}-beta3
613b8bc6 40%patch0 -p1
1748e707 41%patch1 -p1
613b8bc6 42
43%build
44%{__aclocal}
45%{__autoconf}
46%{__automake}
47
48%configure
49%{__make}
50
51%install
52rm -rf $RPM_BUILD_ROOT
1748e707 53install -d $RPM_BUILD_ROOT%{_desktopdir}
613b8bc6 54
55%{__make} install \
56 DESTDIR=$RPM_BUILD_ROOT
57
1748e707
ER
58cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-doom.desktop
59[Desktop Entry]
60Name=Doom
61Comment=Doom for linux
62Exec=doomsday -game jdoom
63#Icon=hexen.png
64Terminal=false
65Type=Application
f6ee92a4 66Categories=Game;FirstPersonGame;
1748e707
ER
67Encoding=UTF-8
68# vi: encoding=utf-8
69EOF
70
71cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-hexen.desktop
72[Desktop Entry]
73Name=Hexen
74Comment=Hexen for linux
75Exec=doomsday -game jhexen
76#Icon=heretic.png
77Terminal=false
78Type=Application
f6ee92a4 79Categories=Game;FirstPersonGame;
1748e707
ER
80Encoding=UTF-8
81# vi: encoding=utf-8
82EOF
83
84cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-heretic.desktop
85[Desktop Entry]
86Name=Heretic
87Comment=Heretic for linux
88Exec=doomsday -game jheretic
89#Icon=heretic.png
90Terminal=false
91Type=Application
f6ee92a4 92Categories=Game;FirstPersonGame;
1748e707
ER
93Encoding=UTF-8
94# vi: encoding=utf-8
95EOF
96
f6ee92a4
ER
97rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
98
613b8bc6 99%clean
6f1050b2 100rm -rf $RPM_BUILD_ROOT
613b8bc6 101
102%post
103/sbin/ldconfig
104if [ "$1" = "1" ]; then
1748e707
ER
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 ]
112EOF
613b8bc6 113fi
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
613b8bc6 121%attr(755,root,root) %{_libdir}/*.so.*.*.*
6f1050b2 122%{_libdir}/*.la
613b8bc6 123%{_datadir}/deng
1748e707 124%{_desktopdir}/*.desktop
This page took 0.070057 seconds and 4 git commands to generate.