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