]> 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.0.0
5 Release:        1
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:  add8b4b70878aa9d98b8bb9a6502882b
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:  OpenGL-devel
22 BuildRequires:  Qt5Core-devel
23 BuildRequires:  Qt5Network-devel
24 BuildRequires:  Qt5OpenGL-devel
25 BuildRequires:  Qt5OpenGLExtensions-devel
26 BuildRequires:  Qt5X11Extras-devel
27 BuildRequires:  SDL2-devel
28 BuildRequires:  SDL2_mixer-devel
29 BuildRequires:  assimp-devel
30 BuildRequires:  libpng-devel
31 BuildRequires:  libstdc++-devel
32 BuildRequires:  ncurses-devel
33 BuildRequires:  pkgconfig
34 BuildRequires:  python
35 BuildRequires:  python-modules
36 BuildRequires:  qt5-build
37 BuildRequires:  qt5-qmake
38 BuildRequires:  rpm-pythonprov
39 BuildRequires:  rpmbuild(macros) >= 1.595
40 BuildRequires:  xorg-lib-libXrandr-devel
41 Requires(post): /sbin/ldconfig
42 Requires:       TiMidity++
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 The Doomsday Engine allows you to play the classic first-person
47 shooters DOOM, Heretic, and Hexen using modern technology, with
48 hardware accelerated 3D graphics, surround sound and much more.
49
50 %description -l pl.UTF-8
51 jDoom, jHeretic i jHexen dla Linuksa.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56
57 %build
58 install -d doomsday/_build
59 cd doomsday/_build
60 %{cmake} ..
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man6}
66
67 %{__make} -C doomsday/_build install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 # no -devel package. cleanup
71 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdeng_*.so
72 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}
73 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/cmake
74
75 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
76 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/doom.png
77 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/hexen.png
78 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/heretic.png
79
80 cp -p %{_sourcedir}/%{name}-doom.desktop $RPM_BUILD_ROOT%{_desktopdir}
81 cp -p %{_sourcedir}/%{name}-hexen.desktop $RPM_BUILD_ROOT%{_desktopdir}
82 cp -p %{_sourcedir}/%{name}-heretic.desktop $RPM_BUILD_ROOT%{_desktopdir}
83
84 cp -p doomsday/doc/output/*.6 $RPM_BUILD_ROOT%{_mandir}/man6
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post
90 /sbin/ldconfig
91 %banner -o -e %{name} <<-EOF
92 To run doomsday you need some WAD file: either freedoom package
93 or some shareware or commercial WAD from Doom or Heretic:
94 Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
95 Heretic.wad or Heretic1.wad.
96 When you have them, run doomsday with:
97 doomsday -game [ jdoom | jheretic | jhexen ]
98 EOF
99
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 #%doc doomsday/build/README
105 %attr(755,root,root) %{_bindir}/doomsday
106 %attr(755,root,root) %{_bindir}/doomsday-2.0.0
107 %attr(755,root,root) %{_bindir}/doomsdayscript
108 %attr(755,root,root) %{_bindir}/doomsdayscript-2.0.0
109 %attr(755,root,root) %{_bindir}/doomsday-server
110 %attr(755,root,root) %{_bindir}/doomsday-server-2.0.0
111 %attr(755,root,root) %{_bindir}/doomsday-shell
112 %attr(755,root,root) %{_bindir}/doomsday-shell-2.0.0
113 %attr(755,root,root) %{_bindir}/doomsday-shell-text
114 %attr(755,root,root) %{_bindir}/doomsday-shell-text-2.0.0
115 %attr(755,root,root) %{_bindir}/md2tool
116 %attr(755,root,root) %{_bindir}/savegametool
117 %attr(755,root,root) %{_bindir}/savegametool-2.0.0
118 %attr(755,root,root) %{_bindir}/texc
119 %attr(755,root,root) %{_bindir}/wadtool
120
121 %attr(755,root,root) %{_libdir}/libdeng_core.so.*.*.*
122 %attr(755,root,root) %ghost %{_libdir}/libdeng_core.so.2.0
123 %attr(755,root,root) %{_libdir}/libdeng_appfw.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libdeng_appfw.so.2.0
125 %attr(755,root,root) %{_libdir}/libdeng_doomsday.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libdeng_doomsday.so.2.0
127 %attr(755,root,root) %{_libdir}/libdeng_gamefw.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libdeng_gamefw.so.2.0
129 %attr(755,root,root) %{_libdir}/libdeng_gui.so.*.*.*
130 %attr(755,root,root) %ghost %{_libdir}/libdeng_gui.so.2.0
131 %attr(755,root,root) %{_libdir}/libdeng_legacy.so.*.*.*
132 %attr(755,root,root) %ghost %{_libdir}/libdeng_legacy.so.2.0
133 %attr(755,root,root) %{_libdir}/libdeng_shell.so.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libdeng_shell.so.2.0
135
136 %{_libdir}/doomsday
137 %{_datadir}/doomsday
138 %{_desktopdir}/*.desktop
139 %{_pixmapsdir}/*.png
140 %{_mandir}/man6/*
This page took 0.10231 seconds and 3 git commands to generate.