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