From 3964b1ecd5ff40f7da8d9bc281fba662df5211e39f4149f90eed7991105813ff Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 29 Apr 2020 20:18:53 +0000 Subject: [PATCH] - Switch to noexamples tarball as requested in: https://github.com/raysan5/raylib/issues/1180 So we don't ship examples with various licenses that we don't install anyways. - Add raylib-3.0.0-noexamples.patch: dont try to install examples Raysan seems to have forgotten that. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=24 --- 3.0.0.tar.gz | 3 --- raylib-3.0.0-noexamples.patch | 16 ++++++++++++++++ raylib-noexamples-3.0.0.tar.gz | 3 +++ raylib.changes | 11 ++++++++++- raylib.spec | 4 +++- 5 files changed, 32 insertions(+), 5 deletions(-) delete mode 100644 3.0.0.tar.gz create mode 100644 raylib-3.0.0-noexamples.patch create mode 100644 raylib-noexamples-3.0.0.tar.gz diff --git a/3.0.0.tar.gz b/3.0.0.tar.gz deleted file mode 100644 index ff8e77f..0000000 --- a/3.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:164d1cc1710bb8e711a495e84cc585681b30098948d67d482e11dc37d2054eab -size 92254615 diff --git a/raylib-3.0.0-noexamples.patch b/raylib-3.0.0-noexamples.patch new file mode 100644 index 0000000..eb79eb4 --- /dev/null +++ b/raylib-3.0.0-noexamples.patch @@ -0,0 +1,16 @@ +diff -urEbw raylib-3.0.0/CMakeLists.txt raylib-3.0.0.new/CMakeLists.txt +--- raylib-3.0.0/CMakeLists.txt 2020-04-01 11:07:01.000000000 +0200 ++++ raylib-3.0.0.new/CMakeLists.txt 2020-04-29 22:12:32.184784329 +0200 +@@ -43,12 +43,4 @@ + + add_subdirectory(src) + +-if (${BUILD_EXAMPLES}) +- add_subdirectory(examples) +-endif() +- +-if (${BUILD_GAMES}) +- add_subdirectory(games) +-endif() +- + enable_testing() diff --git a/raylib-noexamples-3.0.0.tar.gz b/raylib-noexamples-3.0.0.tar.gz new file mode 100644 index 0000000..b32779e --- /dev/null +++ b/raylib-noexamples-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be17b6b39bb0e742c0df1e683b49853981854aefa25a758ddcf40f71da8b8436 +size 4390778 diff --git a/raylib.changes b/raylib.changes index 264dbab..27c9d17 100644 --- a/raylib.changes +++ b/raylib.changes @@ -1,7 +1,16 @@ +------------------------------------------------------------------- +Wed Apr 29 20:15:43 UTC 2020 - Michael Vetter + +- Switch to noexamples tarball as requested in: + https://github.com/raysan5/raylib/issues/1180 + So we don't ship examples with various licenses that we don't + install anyways. +- Add raylib-3.0.0-noexamples.patch: dont try to install examples + Raysan seems to have forgotten that. + ------------------------------------------------------------------- Wed Apr 29 09:59:00 UTC 2020 - Scott Young - Added missing development header files. - ------------------------------------------------------------------- Tue Mar 31 09:17:57 UTC 2020 - Michael Vetter diff --git a/raylib.spec b/raylib.spec index bb6b1d0..9f82f1f 100644 --- a/raylib.spec +++ b/raylib.spec @@ -23,7 +23,8 @@ Summary: C library for learning video game programming License: Zlib Group: Development/Libraries/C and C++ URL: http://www.raylib.com -Source: https://github.com/raysan5/raylib/archive/%{version}.tar.gz +Source: https://github.com/raysan5/raylib/releases/download/%{version}/raylib-noexamples-%{version}.tar.gz +Patch0: raylib-3.0.0-noexamples.patch BuildRequires: Mesa-libGL-devel BuildRequires: cmake BuildRequires: gcc-c++ @@ -54,6 +55,7 @@ A C library for learning video game programming. %prep %setup -q -n raylib-3.0.0 +%patch0 -p1 %build %cmake \