- added boost patch (fixes build with boost 1.70; it reverts changes from boost-1...
[packages/vcmi.git] / vcmi.spec
1 Summary:        "Heroes 3: WoG recreated
2 Summary(pl.UTF-8):      Gra "Heroes 3: WoG" stworzona od nowa
3 Name:           vcmi
4 Version:        0.99
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications/Games
8 Source0:        https://github.com/vcmi/vcmi/archive/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  686c2a0283184add785d50b447db806f
10 Source1:        http://download.vcmi.eu/core.zip
11 # Source1-md5:  5cf75d588cc53b93aceb809a6068ae37
12 Patch0:         boost-1.66.patch
13 Patch1:         %{name}-boost.patch
14 URL:            http://www.vcmi.eu/
15 BuildRequires:  Qt5Network-devel >= 5
16 BuildRequires:  Qt5Widgets-devel >= 5
17 BuildRequires:  SDL2-devel >= 2
18 BuildRequires:  SDL2_image-devel >= 2
19 BuildRequires:  SDL2_mixer-devel >= 2
20 BuildRequires:  SDL2_ttf-devel >= 2
21 BuildRequires:  boost-devel >= 1.50
22 BuildRequires:  cmake >= 2.8.12
23 # avformat, swscale
24 BuildRequires:  ffmpeg-devel
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  minizip-devel
27 BuildRequires:  qt5-build >= 5
28 BuildRequires:  zlib-devel
29 Suggests:       smpeg-libs
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         specflags       -fpermissive
33
34 # symbols defined in binaries and main library
35 %define         skip_post_check_so      vcmi/Scripting/libvcmiERM.so.0.0.0
36
37 %description
38 H3 engine rewrite (not another mod) with new possibilities.
39
40 %description -l pl.UTF-8
41 Napisany od nowa silnik H3 (nie kolejna modyfikacja) z nowymi
42 możliwościami.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47 %patch1 -p1
48
49 %build
50 install -d build
51 cd build
52 %cmake .. \
53         -DENABLE_ERM=ON
54 # -DENABLE_EDITOR=ON breaks build
55
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_datadir}/%{name} \
61         $RPM_BUILD_ROOT%{_pixmapsdir} \
62         $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{64x64,48x48,32x32}/apps
63
64 %{__make} -C build install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 # not packaged
68 %{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/libfuzzylite-static.a,%{_includedir}/fl}
69
70 install client/icons/vcmiclient.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/vcmiclient.xpm
71 install client/icons/vcmiclient.64x64.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/64x64/apps/vcmiclient.png
72 install client/icons/vcmiclient.48x48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/vcmiclient.png
73 install client/icons/vcmiclient.32x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/vcmiclient.png
74
75 %{__unzip} -o %{SOURCE1} -d $RPM_BUILD_ROOT%{_datadir}/%{name}
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog README.md
83 %attr(755,root,root) %{_bindir}/vcmibuilder
84 %attr(755,root,root) %{_bindir}/vcmiclient
85 %attr(755,root,root) %{_bindir}/vcmilauncher
86 %attr(755,root,root) %{_bindir}/vcmiserver
87 %dir %{_libdir}/%{name}
88 %attr(755,root,root) %{_libdir}/%{name}/libvcmi.so
89 %attr(755,root,root) %{_libdir}/%{name}/libvcmiERM.so
90 %dir %{_libdir}/%{name}/AI
91 %attr(755,root,root) %{_libdir}/%{name}/AI/lib*.so
92 %{_datadir}/%{name}
93 %{_desktopdir}/vcmiclient.desktop
94 %{_desktopdir}/vcmilauncher.desktop
95 %{_pixmapsdir}/vcmiclient.xpm
96 %{_iconsdir}/hicolor/*x*/apps/vcmiclient.png
This page took 0.093199 seconds and 3 git commands to generate.