]>
Commit | Line | Data |
---|---|---|
1 | Summary: Heroes 3: WoG recreated | |
2 | Name: vcmi | |
3 | Version: 0.99 | |
4 | Release: 0.1 | |
5 | License: GPL v2+ | |
6 | Group: X11/Applications/Games | |
7 | Source0: https://github.com/vcmi/vcmi/archive/%{version}/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 686c2a0283184add785d50b447db806f | |
9 | Source1: http://download.vcmi.eu/core.zip | |
10 | # Source1-md5: 5cf75d588cc53b93aceb809a6068ae37 | |
11 | Patch0: boost-1.66.patch | |
12 | URL: http://www.vcmi.eu/ | |
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 | |
20 | BuildRequires: boost-devel | |
21 | BuildRequires: cmake >= 2.8.5 | |
22 | BuildRequires: ffmpeg-devel | |
23 | BuildRequires: zlib-devel | |
24 | BuildRequires: libstdc++-devel | |
25 | Suggests: smpeg-libs | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %define specflags -fpermissive | |
29 | ||
30 | # symbols defined in binaries and main library | |
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 | |
37 | %setup -q | |
38 | %patch0 -p1 | |
39 | ||
40 | %build | |
41 | install -d build | |
42 | cd build | |
43 | %cmake \ | |
44 | .. | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} \ | |
50 | $RPM_BUILD_ROOT%{_pixmapsdir} \ | |
51 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{64x64,48x48,32x32}/apps | |
52 | ||
53 | %{__make} -C build install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
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 | ||
61 | echo A | %{__unzip} %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc AUTHORS ChangeLog README.md | |
69 | %attr(755,root,root) %{_bindir}/%{name}* | |
70 | %attr(755,root,root) %{_libdir}/%{name}/lib%{name}*.so | |
71 | %dir %{_libdir}/%{name} | |
72 | %dir %{_libdir}/%{name}/AI | |
73 | %attr(755,root,root) %{_libdir}/%{name}/AI/lib*.so | |
74 | %{_datadir}/%{name} | |
75 | %{_desktopdir}/%{name}client.desktop | |
76 | %{_desktopdir}/vcmilauncher.desktop | |
77 | %{_pixmapsdir}/%{name}client.xpm | |
78 | %{_iconsdir}/hicolor/*x*/apps/%{name}client.png |