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