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