]>
Commit | Line | Data |
---|---|---|
fcb3353f TP |
1 | Summary: Heroes 3: WoG recreated |
2 | Name: vcmi | |
d0515a20 | 3 | Version: 0.99 |
7423bc77 | 4 | Release: 0.1 |
fcb3353f TP |
5 | License: GPL v2+ |
6 | Group: X11/Applications/Games | |
0b8124b1 | 7 | Source0: https://github.com/vcmi/vcmi/archive/%{version}/%{name}-%{version}.tar.gz |
d0515a20 | 8 | # Source0-md5: 686c2a0283184add785d50b447db806f |
aa1de504 JR |
9 | Source1: http://download.vcmi.eu/core.zip |
10 | # Source1-md5: 5cf75d588cc53b93aceb809a6068ae37 | |
d0515a20 | 11 | Patch0: boost-1.66.patch |
b381a72f | 12 | URL: http://www.vcmi.eu/ |
1b8764d7 AM |
13 | BuildRequires: Qt5Network-devel |
14 | BuildRequires: qt5-build | |
15 | BuildRequires: Qt5Widgets-devel | |
16 | BuildRequires: SDL2-devel | |
17 | BuildRequires: SDL2_image-devel | |
18 | BuildRequires: SDL2_mixer-devel | |
19 | BuildRequires: SDL2_ttf-devel | |
fcb3353f | 20 | BuildRequires: boost-devel |
72c88fa4 | 21 | BuildRequires: cmake >= 2.8.5 |
fcb3353f TP |
22 | BuildRequires: ffmpeg-devel |
23 | BuildRequires: zlib-devel | |
24 | BuildRequires: libstdc++-devel | |
3c398907 | 25 | Suggests: smpeg-libs |
fcb3353f TP |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
1d194fcc JR |
28 | %define specflags -fpermissive |
29 | ||
9e9722b6 | 30 | # symbols defined in binaries and main library |
fcb3353f TP |
31 | %define skip_post_check_so vcmi/Scripting/libvcmiERM.so.0.0.0 |
32 | ||
33 | %description | |
34 | H3 engine rewrie (not another mod) with new possibilities. | |
35 | ||
36 | %prep | |
aa1de504 | 37 | %setup -q |
0b8124b1 | 38 | %patch0 -p1 |
fcb3353f TP |
39 | |
40 | %build | |
1b8764d7 AM |
41 | install -d build |
42 | cd build | |
43 | %cmake \ | |
44 | .. | |
fcb3353f TP |
45 | %{__make} |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
aa1de504 JR |
49 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
50 | $RPM_BUILD_ROOT%{_pixmapsdir} \ | |
51 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{64x64,48x48,32x32}/apps | |
fcb3353f | 52 | |
1b8764d7 | 53 | %{__make} -C build install \ |
fcb3353f TP |
54 | DESTDIR=$RPM_BUILD_ROOT |
55 | ||
aa1de504 JR |
56 | install client/icons/vcmiclient.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/vcmiclient.xpm |
57 | install client/icons/vcmiclient.64x64.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps/vcmiclient.png | |
58 | install client/icons/vcmiclient.48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vcmiclient.png | |
59 | install client/icons/vcmiclient.32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vcmiclient.png | |
60 | ||
1b8764d7 | 61 | echo A | %{__unzip} %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
fcb3353f TP |
62 | |
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
1b8764d7 | 68 | %doc AUTHORS ChangeLog README.md |
fcb3353f | 69 | %attr(755,root,root) %{_bindir}/%{name}* |
1b8764d7 | 70 | %attr(755,root,root) %{_libdir}/%{name}/lib%{name}*.so |
fcb3353f TP |
71 | %dir %{_libdir}/%{name} |
72 | %dir %{_libdir}/%{name}/AI | |
73 | %attr(755,root,root) %{_libdir}/%{name}/AI/lib*.so | |
7f61dc29 | 74 | %{_datadir}/%{name} |
fcb3353f | 75 | %{_desktopdir}/%{name}client.desktop |
1b8764d7 | 76 | %{_desktopdir}/vcmilauncher.desktop |
aa1de504 JR |
77 | %{_pixmapsdir}/%{name}client.xpm |
78 | %{_iconsdir}/hicolor/*x*/apps/%{name}client.png |