5f8640bd51bc0ba2ca523b8961b2d1919211ffb7
[packages/vcmi.git] / vcmi.spec
1 Summary:        Heroes 3: WoG recreated
2 Name:           vcmi
3 Version:        0.98
4 Release:        3
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:  6a69e52a3380358220eba67332b097c6
9 Source1:        http://download.vcmi.eu/core.zip
10 # Source1-md5:  5cf75d588cc53b93aceb809a6068ae37
11 Patch0:         boost-1.58.patch
12 Patch1:         ffmpeg3.patch
13 URL:            http://www.vcmi.eu/
14 BuildRequires:  Qt5Network-devel
15 BuildRequires:  qt5-build
16 BuildRequires:  Qt5Widgets-devel
17 BuildRequires:  SDL2-devel
18 BuildRequires:  SDL2_image-devel
19 BuildRequires:  SDL2_mixer-devel
20 BuildRequires:  SDL2_ttf-devel
21 BuildRequires:  boost-devel
22 BuildRequires:  cmake >= 2.8.5
23 BuildRequires:  ffmpeg-devel
24 BuildRequires:  zlib-devel
25 BuildRequires:  libstdc++-devel
26 Suggests:       smpeg-libs
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         specflags       -fpermissive
30
31 # symbols defined in binaries and main library
32 %define skip_post_check_so      vcmi/Scripting/libvcmiERM.so.0.0.0
33
34 %description
35 H3 engine rewrie (not another mod) with new possibilities.
36
37 %prep
38 %setup -q
39 %patch0 -p1
40 %patch1 -p1
41
42 %build
43 install -d build
44 cd build
45 %cmake \
46         ..
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{_datadir}/%{name} \
52         $RPM_BUILD_ROOT%{_pixmapsdir} \
53         $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{64x64,48x48,32x32}/apps
54
55 %{__make} -C build install \
56         DESTDIR=$RPM_BUILD_ROOT
57
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
63 echo A | %{__unzip} %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc AUTHORS ChangeLog README.md
71 %attr(755,root,root) %{_bindir}/%{name}*
72 %attr(755,root,root) %{_libdir}/%{name}/lib%{name}*.so
73 %dir %{_libdir}/%{name}
74 %dir %{_libdir}/%{name}/AI
75 %attr(755,root,root) %{_libdir}/%{name}/AI/lib*.so
76 %{_datadir}/%{name}
77 %{_desktopdir}/%{name}client.desktop
78 %{_desktopdir}/vcmilauncher.desktop
79 %{_pixmapsdir}/%{name}client.xpm
80 %{_iconsdir}/hicolor/*x*/apps/%{name}client.png
This page took 0.030617 seconds and 2 git commands to generate.