Avoid downloading glm sources during the build

This commit is contained in:
Kalev Lember 2019-10-26 13:56:09 +02:00
parent aef0060fd5
commit 78eb8f278f
3 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ mmapper-2.0.4-final2-source.tar.gz
/MMapper-2.8.0.tar.gz
/MMapper-19.04.0.tar.gz
/MMapper-19.10.0.tar.gz
/0.9.9-a2.zip

View File

@ -6,6 +6,7 @@ Summary: Graphical MUME mapper
License: GPLv2+
URL: https://github.com/MUME/MMapper
Source0: https://github.com/MUME/MMapper/archive/v%{version}/MMapper-%{version}.tar.gz
Source1: https://github.com/g-truc/glm/archive/0.9.9-a2.zip
BuildRequires: /usr/bin/appstream-util
BuildRequires: cmake
@ -17,6 +18,8 @@ BuildRequires: zlib-devel
Requires: hicolor-icon-theme
Provides: bundled(glm) = 0.9.9-a2
%description
MMapper is a graphical mapper for a MUD named MUME (Multi-Users in Middle
Earth). The game is traditionally played in a text-only mode, but MMapper tries
@ -32,6 +35,8 @@ data in real time and show player's position in a map.
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
mkdir -p external/glm/glm-prefix/src
cp -a %{S:1} external/glm/glm-prefix/src/
%{cmake} \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_MAP=OFF \

View File

@ -1 +1,2 @@
SHA512 (MMapper-19.10.0.tar.gz) = 893ee4a99dde61e9a43357eddb001e22c8af17aa3ac5f9aa3a7593a32439a2cb65ef125e3d9613229b4569c952105d36774cca9082dc535667d4af9392db42ad
SHA512 (0.9.9-a2.zip) = b3a6200dd2f86a14e55b9ee1d045b224f189a9651cfbedd9632c8bb4b67fb2f14d0c21790f43bfddcb457741a440d868ba2becd195034f8d44f7b335a5bc02ec