Avoid downloading the map data during build

This commit is contained in:
Kalev Lember 2019-10-26 13:54:51 +02:00
parent 3d1b96827c
commit aef0060fd5
1 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,10 @@ data in real time and show player's position in a map.
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake} -DCMAKE_BUILD_TYPE=Release ..
%{cmake} \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_MAP=OFF \
..
popd
%make_build -C %{_target_platform}
@ -41,9 +44,6 @@ popd
%install
%make_install -C %{_target_platform}
# It is questionable if one is allowed to redistribute the map.
rm -f $RPM_BUILD_ROOT/%{_datadir}/games/mmapper/arda.mm2
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/org.mume.MMapper.appdata.xml
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.mume.MMapper.desktop