]>
Commit | Line | Data |
---|---|---|
fcb3353f TP |
1 | Summary: Heroes 3: WoG recreated |
2 | Name: vcmi | |
aa1de504 | 3 | Version: 0.90 |
0000f979 | 4 | Release: 8 |
fcb3353f TP |
5 | License: GPL v2+ |
6 | Group: X11/Applications/Games | |
aa1de504 JR |
7 | Source0: http://download.vcmi.eu/%{name}_%{version}.tar.gz |
8 | # Source0-md5: ab6772d9b8010925e6c00847b7c63c0d | |
9 | Source1: http://download.vcmi.eu/core.zip | |
10 | # Source1-md5: 5cf75d588cc53b93aceb809a6068ae37 | |
11 | Source2: ax_boost_iostreams.m4 | |
12 | Patch0: boost-build.patch | |
b381a72f | 13 | URL: http://www.vcmi.eu/ |
fcb3353f TP |
14 | BuildRequires: SDL-devel |
15 | BuildRequires: SDL_image-devel | |
16 | BuildRequires: SDL_mixer-devel | |
17 | BuildRequires: SDL_ttf-devel | |
aa1de504 JR |
18 | BuildRequires: autoconf >= 2.68 |
19 | BuildRequires: automake >= 1.11 | |
fcb3353f | 20 | BuildRequires: boost-devel |
72c88fa4 | 21 | BuildRequires: cmake >= 2.8.5 |
fcb3353f TP |
22 | BuildRequires: ffmpeg-devel |
23 | BuildRequires: zlib-devel | |
24 | BuildRequires: libstdc++-devel | |
3c398907 | 25 | Suggests: smpeg-libs |
fcb3353f TP |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
1d194fcc JR |
28 | %define specflags -fpermissive |
29 | ||
9e9722b6 | 30 | # symbols defined in binaries and main library |
fcb3353f TP |
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 | |
aa1de504 | 37 | %setup -q |
5cd1f12e | 38 | %patch0 -p1 |
aa1de504 | 39 | cp %{SOURCE2} aclocal/m4 |
fcb3353f TP |
40 | |
41 | %build | |
aa1de504 JR |
42 | %{__aclocal} -I aclocal/m4 |
43 | %{__autoconf} | |
44 | %{__automake} | |
45 | export CXXFLAGS="%{rpmcflags}" | |
fcb3353f TP |
46 | %configure |
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
aa1de504 JR |
51 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} \ |
52 | $RPM_BUILD_ROOT%{_pixmapsdir} \ | |
53 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{64x64,48x48,32x32}/apps | |
fcb3353f TP |
54 | |
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
aa1de504 JR |
58 | install client/icons/vcmiclient.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/vcmiclient.xpm |
59 | install client/icons/vcmiclient.64x64.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps/vcmiclient.png | |
60 | install client/icons/vcmiclient.48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vcmiclient.png | |
61 | install client/icons/vcmiclient.32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vcmiclient.png | |
62 | ||
fcb3353f TP |
63 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/AI/*.la |
64 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}{/Scripting,}/*.{la,so} | |
65 | ||
aa1de504 | 66 | %{__unzip} %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
fcb3353f TP |
67 | |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc AUTHORS ChangeLog README | |
74 | %attr(755,root,root) %{_bindir}/%{name}* | |
9e9722b6 TP |
75 | %attr(755,root,root) %{_libdir}/%{name}/lib%{name}*.so.?.*.* |
76 | %attr(755,root,root) %ghost %{_libdir}/%{name}/lib%{name}*.so.? | |
fcb3353f TP |
77 | %dir %{_libdir}/%{name} |
78 | %dir %{_libdir}/%{name}/AI | |
79 | %attr(755,root,root) %{_libdir}/%{name}/AI/lib*.so | |
80 | %dir %{_libdir}/%{name}/Scripting | |
81 | %attr(755,root,root) %{_libdir}/%{name}/Scripting/lib*.so.?.*.* | |
82 | %attr(755,root,root) %ghost %{_libdir}/%{name}/Scripting/lib*.so.? | |
7f61dc29 | 83 | %{_datadir}/%{name} |
fcb3353f | 84 | %{_desktopdir}/%{name}client.desktop |
aa1de504 JR |
85 | %{_pixmapsdir}/%{name}client.xpm |
86 | %{_iconsdir}/hicolor/*x*/apps/%{name}client.png |