]>
Commit | Line | Data |
---|---|---|
87e5a4d5 JB |
1 | Summary: "Heroes 3: WoG recreated |
2 | Summary(pl.UTF-8): Gra "Heroes 3: WoG" stworzona od nowa | |
fcb3353f | 3 | Name: vcmi |
b1a5f90d JR |
4 | Version: 1.3.0 |
5 | Release: 1 | |
fcb3353f TP |
6 | License: GPL v2+ |
7 | Group: X11/Applications/Games | |
0b8124b1 | 8 | Source0: https://github.com/vcmi/vcmi/archive/%{version}/%{name}-%{version}.tar.gz |
b1a5f90d | 9 | # Source0-md5: 6a657666e335bfde5f007b9542a08cfa |
aa1de504 JR |
10 | Source1: http://download.vcmi.eu/core.zip |
11 | # Source1-md5: 5cf75d588cc53b93aceb809a6068ae37 | |
b1a5f90d | 12 | Patch0: erm.patch |
b381a72f | 13 | URL: http://www.vcmi.eu/ |
87e5a4d5 JB |
14 | BuildRequires: Qt5Network-devel >= 5 |
15 | BuildRequires: Qt5Widgets-devel >= 5 | |
16 | BuildRequires: SDL2-devel >= 2 | |
17 | BuildRequires: SDL2_image-devel >= 2 | |
18 | BuildRequires: SDL2_mixer-devel >= 2 | |
19 | BuildRequires: SDL2_ttf-devel >= 2 | |
20 | BuildRequires: boost-devel >= 1.50 | |
21 | BuildRequires: cmake >= 2.8.12 | |
22 | # avformat, swscale | |
fcb3353f | 23 | BuildRequires: ffmpeg-devel |
5cc9205d | 24 | BuildRequires: fuzzylite-devel |
fcb3353f | 25 | BuildRequires: libstdc++-devel |
87e5a4d5 JB |
26 | BuildRequires: minizip-devel |
27 | BuildRequires: qt5-build >= 5 | |
09c7c7a4 | 28 | BuildRequires: rpmbuild(macros) >= 1.605 |
87e5a4d5 | 29 | BuildRequires: zlib-devel |
3c398907 | 30 | Suggests: smpeg-libs |
fcb3353f TP |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
1d194fcc JR |
33 | %define specflags -fpermissive |
34 | ||
9e9722b6 | 35 | # symbols defined in binaries and main library |
87e5a4d5 | 36 | %define skip_post_check_so vcmi/Scripting/libvcmiERM.so.0.0.0 |
fcb3353f TP |
37 | |
38 | %description | |
87e5a4d5 JB |
39 | H3 engine rewrite (not another mod) with new possibilities. |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Napisany od nowa silnik H3 (nie kolejna modyfikacja) z nowymi | |
43 | możliwościami. | |
fcb3353f TP |
44 | |
45 | %prep | |
aa1de504 | 46 | %setup -q |
0b8124b1 | 47 | %patch0 -p1 |
fcb3353f TP |
48 | |
49 | %build | |
1b8764d7 AM |
50 | install -d build |
51 | cd build | |
87e5a4d5 | 52 | %cmake .. \ |
b1a5f90d | 53 | -DENABLE_ERM=ON \ |
5cc9205d JR |
54 | -DENABLE_EDITOR=ON \ |
55 | -DFORCE_BUNDLED_FL=OFF | |
87e5a4d5 | 56 | |
fcb3353f TP |
57 | %{__make} |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
aa1de504 JR |
61 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
62 | $RPM_BUILD_ROOT%{_pixmapsdir} \ | |
63 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{64x64,48x48,32x32}/apps | |
fcb3353f | 64 | |
1b8764d7 | 65 | %{__make} -C build install \ |
fcb3353f TP |
66 | DESTDIR=$RPM_BUILD_ROOT |
67 | ||
87e5a4d5 | 68 | %{__unzip} -o %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
fcb3353f TP |
69 | |
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
b1a5f90d | 75 | %doc AUTHORS ChangeLog.md README.md |
87e5a4d5 JB |
76 | %attr(755,root,root) %{_bindir}/vcmibuilder |
77 | %attr(755,root,root) %{_bindir}/vcmiclient | |
b1a5f90d | 78 | %attr(755,root,root) %{_bindir}/vcmieditor |
87e5a4d5 JB |
79 | %attr(755,root,root) %{_bindir}/vcmilauncher |
80 | %attr(755,root,root) %{_bindir}/vcmiserver | |
fcb3353f | 81 | %dir %{_libdir}/%{name} |
87e5a4d5 | 82 | %attr(755,root,root) %{_libdir}/%{name}/libvcmi.so |
fcb3353f TP |
83 | %dir %{_libdir}/%{name}/AI |
84 | %attr(755,root,root) %{_libdir}/%{name}/AI/lib*.so | |
0cc7b78a JB |
85 | %dir %{_libdir}/%{name}/scripting |
86 | %attr(755,root,root) %{_libdir}/%{name}/scripting/libvcmiERM.so | |
b1a5f90d | 87 | %attr(755,root,root) %{_libdir}/%{name}/scripting/libvcmiLua.so |
7f61dc29 | 88 | %{_datadir}/%{name} |
87e5a4d5 | 89 | %{_desktopdir}/vcmiclient.desktop |
b1a5f90d | 90 | %{_desktopdir}/vcmieditor.desktop |
1b8764d7 | 91 | %{_desktopdir}/vcmilauncher.desktop |
87e5a4d5 | 92 | %{_iconsdir}/hicolor/*x*/apps/vcmiclient.png |
b1a5f90d JR |
93 | %{_iconsdir}/hicolor/*x*/apps/vcmieditor.png |
94 | %{_iconsdir}/hicolor/scalable/apps/vcmiclient.svg | |
95 | %{_datadir}/metainfo/eu.vcmi.VCMI.metainfo.xml |