From 78eb8f278f5a404c1242ebaff286b21161664c36 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 26 Oct 2019 13:56:09 +0200 Subject: [PATCH] Avoid downloading glm sources during the build --- .gitignore | 1 + mmapper.spec | 5 +++++ sources | 1 + 3 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 042d2f1..d412592 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/mmapper.spec b/mmapper.spec index 5bb5b08..81b5a8e 100644 --- a/mmapper.spec +++ b/mmapper.spec @@ -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 \ diff --git a/sources b/sources index dd75f3b..3d69cb7 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ SHA512 (MMapper-19.10.0.tar.gz) = 893ee4a99dde61e9a43357eddb001e22c8af17aa3ac5f9aa3a7593a32439a2cb65ef125e3d9613229b4569c952105d36774cca9082dc535667d4af9392db42ad +SHA512 (0.9.9-a2.zip) = b3a6200dd2f86a14e55b9ee1d045b224f189a9651cfbedd9632c8bb4b67fb2f14d0c21790f43bfddcb457741a440d868ba2becd195034f8d44f7b335a5bc02ec