]>
Commit | Line | Data |
---|---|---|
fcb3353f TP |
1 | Summary: Heroes 3: WoG recreated |
2 | Name: vcmi | |
3 | Version: 0.89 | |
4 | Release: 1 | |
5 | License: GPL v2+ | |
6 | Group: X11/Applications/Games | |
7 | Source0: http://dl.dropbox.com/u/22372764/vcmi/packages/%{name}_%{version}.tar.gz | |
8 | # Source0-md5: 3f67cabb2b395f933b0e14c412e0f0f9 | |
9 | BuildRequires: SDL-devel | |
10 | BuildRequires: SDL_image-devel | |
11 | BuildRequires: SDL_mixer-devel | |
12 | BuildRequires: SDL_ttf-devel | |
13 | #BuildRequires: autoconf >= 2.68 | |
14 | #BuildRequires: automake >= 1.11 | |
15 | BuildRequires: boost-devel | |
16 | BuildRequires: ffmpeg-devel | |
17 | BuildRequires: zlib-devel | |
18 | BuildRequires: libstdc++-devel | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | # object defined in binaries and main library | |
22 | %define skip_post_check_so vcmi/Scripting/libvcmiERM.so.0.0.0 | |
23 | ||
24 | %description | |
25 | H3 engine rewrie (not another mod) with new possibilities. | |
26 | ||
27 | %prep | |
28 | %setup | |
29 | ||
30 | %build | |
31 | #%%{__aclocal} | |
32 | #%%{__autoconf} | |
33 | #%%{__automake} | |
34 | export CXXFLAGSc="%{rpmcflags}" | |
35 | %configure | |
36 | %{__make} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/AI/*.la | |
45 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}{/Scripting,}/*.{la,so} | |
46 | ||
47 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/{%{name}/lib%{name}.so*,} | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
a3c4fe85 TP |
52 | %post -p /sbin/ldconfig |
53 | %postun -p /sbin/ldconfig | |
54 | ||
fcb3353f TP |
55 | %files |
56 | %defattr(644,root,root,755) | |
57 | %doc AUTHORS ChangeLog README | |
58 | %attr(755,root,root) %{_bindir}/%{name}* | |
59 | %attr(755,root,root) %{_libdir}/lib%{name}*.so.?.*.* | |
60 | %attr(755,root,root) %ghost %{_libdir}/lib%{name}*.so.? | |
61 | %dir %{_libdir}/%{name} | |
62 | %dir %{_libdir}/%{name}/AI | |
63 | %attr(755,root,root) %{_libdir}/%{name}/AI/lib*.so | |
64 | %dir %{_libdir}/%{name}/Scripting | |
65 | %attr(755,root,root) %{_libdir}/%{name}/Scripting/lib*.so.?.*.* | |
66 | %attr(755,root,root) %ghost %{_libdir}/%{name}/Scripting/lib*.so.? | |
67 | %{_desktopdir}/%{name}client.desktop | |
68 | %{_iconsdir}/%{name}client.png |