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