]>
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 |
d0515a20 | 4 | Version: 0.99 |
1579774b | 5 | Release: 3 |
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 |
d0515a20 | 9 | # Source0-md5: 686c2a0283184add785d50b447db806f |
aa1de504 JR |
10 | Source1: http://download.vcmi.eu/core.zip |
11 | # Source1-md5: 5cf75d588cc53b93aceb809a6068ae37 | |
d0515a20 | 12 | Patch0: boost-1.66.patch |
87e5a4d5 | 13 | Patch1: %{name}-boost.patch |
b381a72f | 14 | URL: http://www.vcmi.eu/ |
87e5a4d5 JB |
15 | BuildRequires: Qt5Network-devel >= 5 |
16 | BuildRequires: Qt5Widgets-devel >= 5 | |
17 | BuildRequires: SDL2-devel >= 2 | |
18 | BuildRequires: SDL2_image-devel >= 2 | |
19 | BuildRequires: SDL2_mixer-devel >= 2 | |
20 | BuildRequires: SDL2_ttf-devel >= 2 | |
21 | BuildRequires: boost-devel >= 1.50 | |
22 | BuildRequires: cmake >= 2.8.12 | |
23 | # avformat, swscale | |
fcb3353f | 24 | BuildRequires: ffmpeg-devel |
fcb3353f | 25 | BuildRequires: libstdc++-devel |
87e5a4d5 JB |
26 | BuildRequires: minizip-devel |
27 | BuildRequires: qt5-build >= 5 | |
28 | BuildRequires: zlib-devel | |
3c398907 | 29 | Suggests: smpeg-libs |
fcb3353f TP |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
1d194fcc JR |
32 | %define specflags -fpermissive |
33 | ||
9e9722b6 | 34 | # symbols defined in binaries and main library |
87e5a4d5 | 35 | %define skip_post_check_so vcmi/Scripting/libvcmiERM.so.0.0.0 |
fcb3353f TP |
36 | |
37 | %description | |
87e5a4d5 JB |
38 | H3 engine rewrite (not another mod) with new possibilities. |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Napisany od nowa silnik H3 (nie kolejna modyfikacja) z nowymi | |
42 | możliwościami. | |
fcb3353f TP |
43 | |
44 | %prep | |
aa1de504 | 45 | %setup -q |
0b8124b1 | 46 | %patch0 -p1 |
87e5a4d5 | 47 | %patch1 -p1 |
fcb3353f TP |
48 | |
49 | %build | |
1b8764d7 AM |
50 | install -d build |
51 | cd build | |
87e5a4d5 JB |
52 | %cmake .. \ |
53 | -DENABLE_ERM=ON | |
54 | # -DENABLE_EDITOR=ON breaks build | |
55 | ||
fcb3353f TP |
56 | %{__make} |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
aa1de504 JR |
60 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
61 | $RPM_BUILD_ROOT%{_pixmapsdir} \ | |
62 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{64x64,48x48,32x32}/apps | |
fcb3353f | 63 | |
1b8764d7 | 64 | %{__make} -C build install \ |
fcb3353f TP |
65 | DESTDIR=$RPM_BUILD_ROOT |
66 | ||
87e5a4d5 JB |
67 | # not packaged |
68 | %{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/libfuzzylite-static.a,%{_includedir}/fl} | |
69 | ||
aa1de504 JR |
70 | install client/icons/vcmiclient.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/vcmiclient.xpm |
71 | install client/icons/vcmiclient.64x64.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps/vcmiclient.png | |
72 | install client/icons/vcmiclient.48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vcmiclient.png | |
73 | install client/icons/vcmiclient.32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vcmiclient.png | |
74 | ||
87e5a4d5 | 75 | %{__unzip} -o %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
fcb3353f TP |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
1b8764d7 | 82 | %doc AUTHORS ChangeLog README.md |
87e5a4d5 JB |
83 | %attr(755,root,root) %{_bindir}/vcmibuilder |
84 | %attr(755,root,root) %{_bindir}/vcmiclient | |
85 | %attr(755,root,root) %{_bindir}/vcmilauncher | |
86 | %attr(755,root,root) %{_bindir}/vcmiserver | |
fcb3353f | 87 | %dir %{_libdir}/%{name} |
87e5a4d5 | 88 | %attr(755,root,root) %{_libdir}/%{name}/libvcmi.so |
fcb3353f TP |
89 | %dir %{_libdir}/%{name}/AI |
90 | %attr(755,root,root) %{_libdir}/%{name}/AI/lib*.so | |
0cc7b78a JB |
91 | %dir %{_libdir}/%{name}/scripting |
92 | %attr(755,root,root) %{_libdir}/%{name}/scripting/libvcmiERM.so | |
7f61dc29 | 93 | %{_datadir}/%{name} |
87e5a4d5 | 94 | %{_desktopdir}/vcmiclient.desktop |
1b8764d7 | 95 | %{_desktopdir}/vcmilauncher.desktop |
87e5a4d5 JB |
96 | %{_pixmapsdir}/vcmiclient.xpm |
97 | %{_iconsdir}/hicolor/*x*/apps/vcmiclient.png |