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