]> git.pld-linux.org Git - packages/doomsday.git/blame - doomsday.spec
libpng15.patch does not exist; disable
[packages/doomsday.git] / doomsday.spec
CommitLineData
1748e707 1# TODO
96e1b283 2# - sync pl
9d6c2050 3# - clean up spec. cleanup what?
65f3387c 4%define subver stable
613b8bc6 5Summary: jDoom, jHeretic and jHexen for Linux
5398b956 6Summary(pl.UTF-8): jDoom, jHeretic i jHexen dla Linuksa
613b8bc6 7Name: doomsday
65f3387c
LM
8Version: 1.15.4
9Release: 0.1
a4a33ef2 10License: GPL v2 / CC 3.0 (icons)
613b8bc6 11Group: Applications/Games
65f3387c
LM
12Source0: http://downloads.sourceforge.net/deng/%{name}-%{subver}-%{version}.tar.gz
13# Source0-md5: 8329eacdea73edca7aea4034ca8d78aa
a4a33ef2 14Source1: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-26/Doom-1-48x48.png
76bc3a41 15# Source1-md5: b7b7a9389eba56679e5db65d95c06803
a4a33ef2 16Source2: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-23/Hexen-1-48x48.png
76bc3a41 17# Source2-md5: 573845e6e747f68617ac67f3a87dc78e
a4a33ef2 18Source3: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-28/Heretic-I-1-48x48.png
76bc3a41 19# Source3-md5: c89e36c49eabe2846137f313a5250308
9d6c2050 20#Patch0: %{name}-libpng15.patch
9f0bf5c3 21Patch1: %{name}-format.patch
96e1b283 22URL: http://www.dengine.net/
613b8bc6 23BuildRequires: OpenAL-devel
2a1961bd 24BuildRequires: OpenGL-GLU-devel
613b8bc6 25BuildRequires: OpenGL-devel
65f3387c
LM
26BuildRequires: SDL2-devel
27BuildRequires: SDL2_mixer-devel
28BuildRequires: qt4-qmake
29BuildRequires: assimp-devel
2a1961bd 30BuildRequires: curl-devel
8755e793 31BuildRequires: libpng-devel
32BuildRequires: ncurses-devel
33BuildRequires: python
34BuildRequires: python-modules
96e1b283 35BuildRequires: rpmbuild(macros) >= 1.595
663fb57e 36Requires: TiMidity++
613b8bc6 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
613b8bc6 39%description
96e1b283
ER
40The Doomsday Engine allows you to play the classic first-person
41shooters DOOM, Heretic, and Hexen using modern technology, with
42hardware accelerated 3D graphics, surround sound and much more.
613b8bc6 43
39e9285b 44%description -l pl.UTF-8
6f1050b2 45jDoom, jHeretic i jHexen dla Linuksa.
613b8bc6 46
47%prep
65f3387c
LM
48%setup -q -n doomsday-%{subver}-%{version}
49#%patch0 -p1
50#%patch1 -p1
613b8bc6 51
52%build
663fb57e
ER
53install -d build
54cd build
96e1b283 55LDFLAGS="-lm"
65f3387c
LM
56qmake-qt4 CONFIG+=deng_notools \
57 -r ../doomsday/doomsday.pro
613b8bc6 58%{__make}
59
60%install
61rm -rf $RPM_BUILD_ROOT
1748e707 62install -d $RPM_BUILD_ROOT%{_desktopdir}
9d6c2050
ER
63%{__make} -C build install \
64 INSTALL_ROOT=$RPM_BUILD_ROOT
613b8bc6 65
a4a33ef2 66install -d $RPM_BUILD_ROOT%{_pixmapsdir}
9d6c2050
ER
67cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/doom.png
68cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/hexen.png
69cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/heretic.png
a4a33ef2 70
1748e707
ER
71cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-doom.desktop
72[Desktop Entry]
73Name=Doom
74Comment=Doom for linux
75Exec=doomsday -game jdoom
a4a33ef2 76Icon=doom.png
1748e707
ER
77Terminal=false
78Type=Application
f6ee92a4 79Categories=Game;FirstPersonGame;
1748e707 80Encoding=UTF-8
1748e707
ER
81EOF
82
83cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-hexen.desktop
84[Desktop Entry]
85Name=Hexen
86Comment=Hexen for linux
87Exec=doomsday -game jhexen
a4a33ef2 88Icon=hexen.png
1748e707
ER
89Terminal=false
90Type=Application
f6ee92a4 91Categories=Game;FirstPersonGame;
1748e707 92Encoding=UTF-8
1748e707
ER
93EOF
94
95cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}-heretic.desktop
96[Desktop Entry]
97Name=Heretic
98Comment=Heretic for linux
99Exec=doomsday -game jheretic
a4a33ef2 100Icon=heretic.png
1748e707
ER
101Terminal=false
102Type=Application
f6ee92a4 103Categories=Game;FirstPersonGame;
1748e707 104Encoding=UTF-8
1748e707
ER
105EOF
106
613b8bc6 107%clean
6f1050b2 108rm -rf $RPM_BUILD_ROOT
613b8bc6 109
65f3387c 110%post -p /sbin/ldconfig
96e1b283
ER
111%banner -o -e %{name} <<-EOF
112To run doomsday you need some WAD file: either freedoom package
113or some shareware or commercial WAD from Doom or Heretic:
114Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
115Heretic.wad or Heretic1.wad.
116When you have them, run doomsday with:
117doomsday -game [ jdoom | jheretic | jhexen ]
1748e707 118EOF
613b8bc6 119
65f3387c
LM
120%postun -p /sbin/ldconfig
121
613b8bc6 122%files
123%defattr(644,root,root,755)
65f3387c 124#%doc doomsday/build/README
613b8bc6 125%attr(755,root,root) %{_bindir}/doomsday
65f3387c
LM
126%attr(755,root,root) %{_bindir}/doomsday-server
127%attr(755,root,root) %{_bindir}/launch-doomsday
128
129%attr(755,root,root) %{_libdir}/libdeng_core.so.2.0.0
130%attr(755,root,root) %ghost %{_libdir}/libdeng_core.so.2
131%attr(755,root,root) %{_libdir}/libdeng_appfw.so.1.15.4
132%attr(755,root,root) %ghost %{_libdir}/libdeng_appfw.so.1
133%attr(755,root,root) %{_libdir}/libdeng_doomsday.so.1.15.4
134%attr(755,root,root) %ghost %{_libdir}/libdeng_doomsday.so.1
135%attr(755,root,root) %{_libdir}/libdeng_gui.so.1.15.4
136%attr(755,root,root) %ghost %{_libdir}/libdeng_gui.so.1
137%attr(755,root,root) %{_libdir}/libdeng_legacy.so.1.15.4
138%attr(755,root,root) %ghost %{_libdir}/libdeng_legacy.so.1
139%attr(755,root,root) %{_libdir}/libdeng_shell.so.1.15.4
140%attr(755,root,root) %ghost %{_libdir}/libdeng_shell.so.1
141
142%{_libdir}/doomsday
143%{_datadir}/doomsday
1748e707 144%{_desktopdir}/*.desktop
a4a33ef2 145%{_pixmapsdir}/*.png
65f3387c
LM
146%{_mandir}/man6/*
147
This page took 1.046314 seconds and 4 git commands to generate.