]> git.pld-linux.org Git - packages/doomsday.git/blob - doomsday.spec
up to 2.1.1
[packages/doomsday.git] / doomsday.spec
1 # TODO
2 # - port to use system assimp (doomsday/external/assimp)?
3 Summary:        jDoom, jHeretic and jHexen for Linux
4 Summary(pl.UTF-8):      jDoom, jHeretic i jHexen dla Linuksa
5 Name:           doomsday
6 Version:        2.1.1
7 Release:        1
8 License:        GPL v2 / CC 3.0 (icons)
9 Group:          Applications/Games
10 Source0:        http://downloads.sourceforge.net/deng/%{name}-%{version}.tar.gz
11 # Source0-md5:  f8478e928621c7d708d54ea88a62e9b3
12 Source1:        http://www.iconarchive.com/icons/3xhumed/mega-games-pack-26/Doom-1-48x48.png
13 # Source1-md5:  b7b7a9389eba56679e5db65d95c06803
14 Source2:        http://www.iconarchive.com/icons/3xhumed/mega-games-pack-23/Hexen-1-48x48.png
15 # Source2-md5:  573845e6e747f68617ac67f3a87dc78e
16 Source3:        http://www.iconarchive.com/icons/3xhumed/mega-games-pack-28/Heretic-I-1-48x48.png
17 # Source3-md5:  c89e36c49eabe2846137f313a5250308
18 Source4:        %{name}-doom.desktop
19 Source5:        %{name}-heretic.desktop
20 Source6:        %{name}-hexen.desktop
21 Patch0:         link.patch
22 URL:            http://www.dengine.net/
23 BuildRequires:  OpenGL-devel
24 BuildRequires:  Qt5Core-devel >= 5.5
25 BuildRequires:  Qt5Network-devel
26 BuildRequires:  Qt5OpenGL-devel
27 BuildRequires:  Qt5OpenGLExtensions-devel
28 BuildRequires:  Qt5X11Extras-devel
29 BuildRequires:  SDL2-devel
30 BuildRequires:  SDL2_mixer-devel
31 BuildRequires:  assimp-devel
32 BuildRequires:  cmake >= 3.1
33 BuildRequires:  libpng-devel
34 BuildRequires:  libstdc++-devel
35 BuildRequires:  ncurses-devel
36 BuildRequires:  pkgconfig
37 BuildRequires:  python
38 BuildRequires:  python-modules
39 BuildRequires:  qt5-build
40 BuildRequires:  qt5-qmake
41 BuildRequires:  rpm-pythonprov
42 BuildRequires:  rpmbuild(macros) >= 1.595
43 BuildRequires:  xorg-lib-libXrandr-devel
44 Requires(post): /sbin/ldconfig
45 Requires:       TiMidity++
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 The Doomsday Engine allows you to play the classic first-person
50 shooters DOOM, Heretic, and Hexen using modern technology, with
51 hardware accelerated 3D graphics, surround sound and much more.
52
53 %description -l pl.UTF-8
54 jDoom, jHeretic i jHexen dla Linuksa.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59
60 %build
61 install -d build
62 cd build
63 %cmake ../doomsday
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man6}
69 %{__make} -C build install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 # no -devel package. cleanup
73 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdeng_*.so
74 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}
75 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake
76
77 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
78 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/doom.png
79 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/hexen.png
80 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/heretic.png
81
82 cp -p %{_sourcedir}/%{name}-doom.desktop $RPM_BUILD_ROOT%{_desktopdir}
83 cp -p %{_sourcedir}/%{name}-hexen.desktop $RPM_BUILD_ROOT%{_desktopdir}
84 cp -p %{_sourcedir}/%{name}-heretic.desktop $RPM_BUILD_ROOT%{_desktopdir}
85
86 cp -p doomsday/doc/output/*.6 $RPM_BUILD_ROOT%{_mandir}/man6
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 /sbin/ldconfig
93 %banner -o -e %{name} <<-EOF
94 To run doomsday you need some WAD file: either freedoom package
95 or some shareware or commercial WAD from Doom or Heretic:
96 Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
97 Heretic.wad or Heretic1.wad.
98 When you have them, run doomsday with:
99 doomsday -game [ jdoom | jheretic | jhexen ]
100 EOF
101
102 %postun -p /sbin/ldconfig
103
104 %files
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_bindir}/doomsday
107 %attr(755,root,root) %{_bindir}/doomsday-2.0.0
108 %attr(755,root,root) %{_bindir}/doomsdayscript
109 %attr(755,root,root) %{_bindir}/doomsdayscript-2.0.0
110 %attr(755,root,root) %{_bindir}/doomsday-server
111 %attr(755,root,root) %{_bindir}/doomsday-server-2.0.0
112 %attr(755,root,root) %{_bindir}/doomsday-shell
113 %attr(755,root,root) %{_bindir}/doomsday-shell-2.0.0
114 %attr(755,root,root) %{_bindir}/doomsday-shell-text
115 %attr(755,root,root) %{_bindir}/doomsday-shell-text-2.0.0
116 %attr(755,root,root) %{_bindir}/md2tool
117 %attr(755,root,root) %{_bindir}/savegametool
118 %attr(755,root,root) %{_bindir}/savegametool-2.0.0
119 %attr(755,root,root) %{_bindir}/texc
120 %attr(755,root,root) %{_bindir}/wadtool
121
122 %attr(755,root,root) %{_libdir}/libdeng_core.so.*.*.*
123 %attr(755,root,root) %ghost %{_libdir}/libdeng_core.so.2.0
124 %attr(755,root,root) %{_libdir}/libdeng_appfw.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libdeng_appfw.so.2.0
126 %attr(755,root,root) %{_libdir}/libdeng_doomsday.so.*.*.*
127 %attr(755,root,root) %ghost %{_libdir}/libdeng_doomsday.so.2.0
128 %attr(755,root,root) %{_libdir}/libdeng_gamefw.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libdeng_gamefw.so.2.0
130 %attr(755,root,root) %{_libdir}/libdeng_gui.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libdeng_gui.so.2.0
132 %attr(755,root,root) %{_libdir}/libdeng_legacy.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libdeng_legacy.so.2.0
134 %attr(755,root,root) %{_libdir}/libdeng_shell.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libdeng_shell.so.2.0
136
137 %{_libdir}/doomsday
138 %{_datadir}/doomsday
139 %{_desktopdir}/*.desktop
140 %{_pixmapsdir}/*.png
141 %{_mandir}/man6/*
This page took 0.029771 seconds and 3 git commands to generate.