]> git.pld-linux.org Git - packages/doomsday.git/blob - doomsday.spec
Release 2 (by relup.sh)
[packages/doomsday.git] / doomsday.spec
1 Summary:        jDoom, jHeretic and jHexen for Linux
2 Summary(pl.UTF-8):      jDoom, jHeretic i jHexen dla Linuksa
3 Name:           doomsday
4 Version:        2.3.1
5 Release:        2
6 License:        GPL v2 / CC 3.0 (icons)
7 Group:          Applications/Games
8 Source0:        http://downloads.sourceforge.net/deng/%{name}-%{version}.tar.gz
9 # Source0-md5:  9ae2a3e053a6f11f37dfb450bb5e53cb
10 Source1:        http://www.iconarchive.com/icons/3xhumed/mega-games-pack-26/Doom-1-48x48.png
11 # Source1-md5:  b7b7a9389eba56679e5db65d95c06803
12 Source2:        http://www.iconarchive.com/icons/3xhumed/mega-games-pack-23/Hexen-1-48x48.png
13 # Source2-md5:  573845e6e747f68617ac67f3a87dc78e
14 Source3:        http://www.iconarchive.com/icons/3xhumed/mega-games-pack-28/Heretic-I-1-48x48.png
15 # Source3-md5:  c89e36c49eabe2846137f313a5250308
16 Source4:        %{name}-doom.desktop
17 Source5:        %{name}-heretic.desktop
18 Source6:        %{name}-hexen.desktop
19 Patch0:         link.patch
20 URL:            http://www.dengine.net/
21 BuildRequires:  OpenAL-devel
22 BuildRequires:  OpenGL-devel >= 3.3
23 BuildRequires:  Qt5Core-devel >= 5.5
24 BuildRequires:  Qt5Gui-devel >= 5.5
25 BuildRequires:  Qt5Network-devel >= 5.5
26 BuildRequires:  Qt5OpenGL-devel >= 5.5
27 BuildRequires:  Qt5OpenGLExtensions-devel >= 5.5
28 BuildRequires:  Qt5Widgets-devel >= 5.5
29 BuildRequires:  Qt5X11Extras-devel >= 5.5
30 BuildRequires:  SDL2-devel >= 2.0
31 BuildRequires:  SDL2_mixer-devel >= 2.0
32 BuildRequires:  assimp-devel
33 BuildRequires:  cmake >= 3.1
34 BuildRequires:  fluidsynth-devel
35 BuildRequires:  libstdc++-devel >= 6:4.7
36 BuildRequires:  minizip-devel >= 1.2.11
37 BuildRequires:  ncurses-devel
38 BuildRequires:  pkgconfig
39 BuildRequires:  python3 >= 1:3.2
40 BuildRequires:  python3-modules >= 1:3.2
41 BuildRequires:  qt5-build >= 5.5
42 BuildRequires:  qt5-qmake >= 5.5
43 BuildRequires:  rpm-pythonprov
44 BuildRequires:  rpmbuild(macros) >= 1.605
45 BuildRequires:  xorg-lib-libICE-devel
46 BuildRequires:  xorg-lib-libSM-devel
47 BuildRequires:  xorg-lib-libX11-devel
48 BuildRequires:  xorg-lib-libXext-devel
49 BuildRequires:  xorg-lib-libXrandr-devel
50 BuildRequires:  xorg-lib-libXxf86vm-devel
51 BuildRequires:  zlib-devel
52 Requires(post): /sbin/ldconfig
53 Requires:       TiMidity++
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %description
57 The Doomsday Engine allows you to play the classic first-person
58 shooters DOOM, Heretic, and Hexen using modern technology, with
59 hardware accelerated 3D graphics, surround sound and much more.
60
61 %description -l pl.UTF-8
62 Silnik Doomsday pozwala grać w klasyczne strzelaniny FPP, takie
63 jak DOOM, Heretic i Hexen przy użyciu współczesnej technologii,
64 ze sprzętowo akcelerowaną grafiką 3D, dźwiękiem surround itp.
65
66 %prep
67 %setup -q
68 %patch0 -p1
69
70 %build
71 install -d build
72 cd build
73 %cmake ../doomsday \
74         -DDENG_ASSIMP_EMBEDDED=OFF
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man6}
81
82 %{__make} -C build install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/texc
86 # no -devel package. cleanup
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdeng_*.so
88 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}
89 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake
90
91 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
92 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/doom.png
93 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/hexen.png
94 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/heretic.png
95
96 cp -p %{_sourcedir}/%{name}-doom.desktop $RPM_BUILD_ROOT%{_desktopdir}
97 cp -p %{_sourcedir}/%{name}-hexen.desktop $RPM_BUILD_ROOT%{_desktopdir}
98 cp -p %{_sourcedir}/%{name}-heretic.desktop $RPM_BUILD_ROOT%{_desktopdir}
99
100 cp -p doomsday/doc/*.6 $RPM_BUILD_ROOT%{_mandir}/man6
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post
106 /sbin/ldconfig
107 %banner -o -e %{name} <<-EOF
108 To run doomsday you need some WAD file: either freedoom package
109 or some shareware or commercial WAD from Doom or Heretic:
110 Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
111 Heretic.wad or Heretic1.wad.
112 When you have them, run doomsday with:
113 doomsday -game [ jdoom | jheretic | jhexen ]
114 EOF
115
116 %postun -p /sbin/ldconfig
117
118 %files
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/doomsday
121 %attr(755,root,root) %{_bindir}/doomsday-%{version}
122 %attr(755,root,root) %{_bindir}/doomsdayscript
123 %attr(755,root,root) %{_bindir}/doomsdayscript-%{version}
124 %attr(755,root,root) %{_bindir}/doomsday-server
125 %attr(755,root,root) %{_bindir}/doomsday-server-%{version}
126 %attr(755,root,root) %{_bindir}/doomsday-shell
127 %attr(755,root,root) %{_bindir}/doomsday-shell-%{version}
128 %attr(755,root,root) %{_bindir}/doomsday-shell-text
129 %attr(755,root,root) %{_bindir}/doomsday-shell-text-%{version}
130 %attr(755,root,root) %{_bindir}/md2tool
131 %attr(755,root,root) %{_bindir}/savegametool
132 %attr(755,root,root) %{_bindir}/savegametool-%{version}
133 %attr(755,root,root) %{_bindir}/texc
134 %attr(755,root,root) %{_bindir}/wadtool
135
136 %attr(755,root,root) %{_libdir}/libdeng_core.so.*.*.*
137 %attr(755,root,root) %ghost %{_libdir}/libdeng_core.so.2.3
138 %attr(755,root,root) %{_libdir}/libdeng_appfw.so.*.*.*
139 %attr(755,root,root) %ghost %{_libdir}/libdeng_appfw.so.2.3
140 %attr(755,root,root) %{_libdir}/libdeng_doomsday.so.*.*.*
141 %attr(755,root,root) %ghost %{_libdir}/libdeng_doomsday.so.2.3
142 %attr(755,root,root) %{_libdir}/libdeng_gamefw.so.*.*.*
143 %attr(755,root,root) %ghost %{_libdir}/libdeng_gamefw.so.2.3
144 %attr(755,root,root) %{_libdir}/libdeng_gui.so.*.*.*
145 %attr(755,root,root) %ghost %{_libdir}/libdeng_gui.so.2.3
146 %attr(755,root,root) %{_libdir}/libdeng_legacy.so.*.*.*
147 %attr(755,root,root) %ghost %{_libdir}/libdeng_legacy.so.2.3
148 %attr(755,root,root) %{_libdir}/libdeng_shell.so.*.*.*
149 %attr(755,root,root) %ghost %{_libdir}/libdeng_shell.so.2.3
150
151 %{_libdir}/doomsday
152 %{_datadir}/doomsday
153 %{_datadir}/metainfo/net.dengine.Doomsday.appdata.xml
154 %{_desktopdir}/doomsday-doom.desktop
155 %{_desktopdir}/doomsday-heretic.desktop
156 %{_desktopdir}/doomsday-hexen.desktop
157 %{_desktopdir}/net.dengine.Doomsday.desktop
158 %{_desktopdir}/net.dengine.Shell.desktop
159 %{_iconsdir}/hicolor/256x256/apps/net.dengine.Doomsday.png
160 %{_pixmapsdir}/doom.png
161 %{_pixmapsdir}/heretic.png
162 %{_pixmapsdir}/hexen.png
163 %{_mandir}/man6/doomsday.6*
164 %{_mandir}/man6/doomsday-server.6*
165 %{_mandir}/man6/doomsday-shell-text.6*
This page took 0.071331 seconds and 4 git commands to generate.