]>
Commit | Line | Data |
---|---|---|
1748e707 | 1 | # TODO |
96e1b283 | 2 | # - sync pl |
9d6c2050 | 3 | # - clean up spec. cleanup what? |
65f3387c | 4 | %define subver stable |
613b8bc6 | 5 | Summary: jDoom, jHeretic and jHexen for Linux |
5398b956 | 6 | Summary(pl.UTF-8): jDoom, jHeretic i jHexen dla Linuksa |
613b8bc6 | 7 | Name: doomsday |
65f3387c LM |
8 | Version: 1.15.4 |
9 | Release: 0.1 | |
a4a33ef2 | 10 | License: GPL v2 / CC 3.0 (icons) |
613b8bc6 | 11 | Group: Applications/Games |
65f3387c LM |
12 | Source0: http://downloads.sourceforge.net/deng/%{name}-%{subver}-%{version}.tar.gz |
13 | # Source0-md5: 8329eacdea73edca7aea4034ca8d78aa | |
a4a33ef2 | 14 | Source1: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-26/Doom-1-48x48.png |
76bc3a41 | 15 | # Source1-md5: b7b7a9389eba56679e5db65d95c06803 |
a4a33ef2 | 16 | Source2: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-23/Hexen-1-48x48.png |
76bc3a41 | 17 | # Source2-md5: 573845e6e747f68617ac67f3a87dc78e |
a4a33ef2 | 18 | Source3: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-28/Heretic-I-1-48x48.png |
76bc3a41 | 19 | # Source3-md5: c89e36c49eabe2846137f313a5250308 |
46c1e1fa ER |
20 | Source4: %{name}-doom.desktop |
21 | Source5: %{name}-heretic.desktop | |
22 | Source6: %{name}-hexen.desktop | |
9d6c2050 | 23 | #Patch0: %{name}-libpng15.patch |
27c6a781 | 24 | #Patch1: %{name}-format.patch |
96e1b283 | 25 | URL: http://www.dengine.net/ |
613b8bc6 | 26 | BuildRequires: OpenGL-devel |
5a429c39 ER |
27 | BuildRequires: QtCore-devel |
28 | BuildRequires: QtNetwork-devel | |
29 | BuildRequires: QtOpenGL-devel | |
65f3387c LM |
30 | BuildRequires: SDL2-devel |
31 | BuildRequires: SDL2_mixer-devel | |
65f3387c | 32 | BuildRequires: assimp-devel |
8755e793 | 33 | BuildRequires: libpng-devel |
5a429c39 | 34 | BuildRequires: libstdc++-devel |
8755e793 | 35 | BuildRequires: ncurses-devel |
5a429c39 | 36 | BuildRequires: pkgconfig |
8755e793 | 37 | BuildRequires: python |
38 | BuildRequires: python-modules | |
5a429c39 | 39 | BuildRequires: qt4-build |
1305a4f7 | 40 | BuildRequires: qt4-qmake |
5a429c39 | 41 | BuildRequires: rpm-pythonprov |
96e1b283 | 42 | BuildRequires: rpmbuild(macros) >= 1.595 |
5a429c39 | 43 | BuildRequires: xorg-lib-libXrandr-devel |
85be4bea | 44 | Requires(post): /sbin/ldconfig |
663fb57e | 45 | Requires: TiMidity++ |
613b8bc6 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
613b8bc6 | 48 | %description |
96e1b283 ER |
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. | |
613b8bc6 | 52 | |
39e9285b | 53 | %description -l pl.UTF-8 |
6f1050b2 | 54 | jDoom, jHeretic i jHexen dla Linuksa. |
613b8bc6 | 55 | |
56 | %prep | |
1305a4f7 | 57 | %setup -q -n %{name}-%{subver}-%{version} |
65f3387c LM |
58 | #%patch0 -p1 |
59 | #%patch1 -p1 | |
613b8bc6 | 60 | |
61 | %build | |
663fb57e ER |
62 | install -d build |
63 | cd build | |
96e1b283 | 64 | LDFLAGS="-lm" |
65f3387c LM |
65 | qmake-qt4 CONFIG+=deng_notools \ |
66 | -r ../doomsday/doomsday.pro | |
613b8bc6 | 67 | %{__make} |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
1748e707 | 71 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
9d6c2050 ER |
72 | %{__make} -C build install \ |
73 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
613b8bc6 | 74 | |
1305a4f7 ER |
75 | # no -devel package. cleanup |
76 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdeng_*.so | |
77 | # junk links | |
78 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdeng_*.so.1.15 | |
79 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdeng_core.so.2.0 | |
80 | ||
a4a33ef2 | 81 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
9d6c2050 ER |
82 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/doom.png |
83 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/hexen.png | |
84 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/heretic.png | |
a4a33ef2 | 85 | |
46c1e1fa ER |
86 | cp -p %{_sourcedir}/%{name}-doom.desktop $RPM_BUILD_ROOT%{_desktopdir} |
87 | cp -p %{_sourcedir}/%{name}-hexen.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
88 | cp -p %{_sourcedir}/%{name}-heretic.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
1748e707 | 89 | |
613b8bc6 | 90 | %clean |
6f1050b2 | 91 | rm -rf $RPM_BUILD_ROOT |
613b8bc6 | 92 | |
85be4bea ER |
93 | %post |
94 | /sbin/ldconfig | |
96e1b283 ER |
95 | %banner -o -e %{name} <<-EOF |
96 | To run doomsday you need some WAD file: either freedoom package | |
97 | or some shareware or commercial WAD from Doom or Heretic: | |
98 | Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad, | |
99 | Heretic.wad or Heretic1.wad. | |
100 | When you have them, run doomsday with: | |
101 | doomsday -game [ jdoom | jheretic | jhexen ] | |
1748e707 | 102 | EOF |
613b8bc6 | 103 | |
65f3387c LM |
104 | %postun -p /sbin/ldconfig |
105 | ||
613b8bc6 | 106 | %files |
107 | %defattr(644,root,root,755) | |
65f3387c | 108 | #%doc doomsday/build/README |
613b8bc6 | 109 | %attr(755,root,root) %{_bindir}/doomsday |
65f3387c LM |
110 | %attr(755,root,root) %{_bindir}/doomsday-server |
111 | %attr(755,root,root) %{_bindir}/launch-doomsday | |
112 | ||
b72a2307 | 113 | %attr(755,root,root) %{_libdir}/libdeng_core.so.*.*.* |
65f3387c | 114 | %attr(755,root,root) %ghost %{_libdir}/libdeng_core.so.2 |
b72a2307 | 115 | %attr(755,root,root) %{_libdir}/libdeng_appfw.so.*.*.* |
65f3387c | 116 | %attr(755,root,root) %ghost %{_libdir}/libdeng_appfw.so.1 |
b72a2307 | 117 | %attr(755,root,root) %{_libdir}/libdeng_doomsday.so.*.*.* |
65f3387c | 118 | %attr(755,root,root) %ghost %{_libdir}/libdeng_doomsday.so.1 |
b72a2307 | 119 | %attr(755,root,root) %{_libdir}/libdeng_gui.so.*.*.* |
65f3387c | 120 | %attr(755,root,root) %ghost %{_libdir}/libdeng_gui.so.1 |
b72a2307 | 121 | %attr(755,root,root) %{_libdir}/libdeng_legacy.so.*.*.* |
65f3387c | 122 | %attr(755,root,root) %ghost %{_libdir}/libdeng_legacy.so.1 |
b72a2307 | 123 | %attr(755,root,root) %{_libdir}/libdeng_shell.so.*.*.* |
65f3387c LM |
124 | %attr(755,root,root) %ghost %{_libdir}/libdeng_shell.so.1 |
125 | ||
1305a4f7 | 126 | |
65f3387c LM |
127 | %{_libdir}/doomsday |
128 | %{_datadir}/doomsday | |
1748e707 | 129 | %{_desktopdir}/*.desktop |
a4a33ef2 | 130 | %{_pixmapsdir}/*.png |
65f3387c | 131 | %{_mandir}/man6/* |