forked from pool/raylib
Accepting request 610387 from home:jubalh:branches:devel:libraries:c_c++
- Update to 2.0.0rc1: * Complete redesign of audio module to use mini_al audio library * Support AppVeyor and Travis CI (continuous integration) build * Reviewed raymath.h for better consistency and performance (inlining) * Refactor all #define SUPPORT_* into a single config.h * Support TCC compiler * For complete list see CHANGELOG file - Remove BR openal-soft-devel - Add packageconfig file - Add raylib-2.0.0-api-version.patch: api version should be 2 - Switch from meson to CMake OBS-URL: https://build.opensuse.org/request/show/610387 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=12
This commit is contained in:
parent
f52641abdb
commit
782113d717
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2c283f056279f2d9969b751a9e0c134558d60b2e0724dbd1c697a56f36392c0e
|
|
||||||
size 88939302
|
|
3
2.0.0-rc1.tar.gz
Normal file
3
2.0.0-rc1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:591dad75a3ff22597afa0011da4f92049942ea06fba32c723ea3d10d8dfb7da1
|
||||||
|
size 95694476
|
28
raylib-2.0.0-api-version.patch
Normal file
28
raylib-2.0.0-api-version.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
See:
|
||||||
|
https://github.com/raysan5/raylib/issues/537
|
||||||
|
https://github.com/raysan5/raylib/pull/545
|
||||||
|
--
|
||||||
|
diff -urEbwB raylib-2.0.0-rc1/src/CMakeLists.txt raylib-2.0.0-rc1.new/src/CMakeLists.txt
|
||||||
|
--- raylib-2.0.0-rc1/src/CMakeLists.txt 2018-05-14 00:33:15.000000000 +0200
|
||||||
|
+++ raylib-2.0.0-rc1.new/src/CMakeLists.txt 2018-05-18 16:01:02.430254508 +0200
|
||||||
|
@@ -3,7 +3,7 @@
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
set(PROJECT_VERSION 2.0.0)
|
||||||
|
-set(API_VERSION 1)
|
||||||
|
+set(API_VERSION 2)
|
||||||
|
set(RAYLIB raylib) # Name of the generated library
|
||||||
|
|
||||||
|
include("CMakeOptions.txt")
|
||||||
|
diff -urEbwB raylib-2.0.0-rc1/src/Makefile raylib-2.0.0-rc1.new/src/Makefile
|
||||||
|
--- raylib-2.0.0-rc1/src/Makefile 2018-05-14 00:33:15.000000000 +0200
|
||||||
|
+++ raylib-2.0.0-rc1.new/src/Makefile 2018-05-18 16:00:51.182137365 +0200
|
||||||
|
@@ -43,7 +43,7 @@
|
||||||
|
|
||||||
|
# Define required raylib variables
|
||||||
|
RAYLIB_VERSION = 2.0.0
|
||||||
|
-RAYLIB_API_VERSION = 1
|
||||||
|
+RAYLIB_API_VERSION = 2
|
||||||
|
|
||||||
|
# See below for alternatives.
|
||||||
|
RAYLIB_PATH = ..
|
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 18 14:12:17 UTC 2018 - mvetter@suse.com
|
||||||
|
|
||||||
|
- Update to 2.0.0rc1:
|
||||||
|
* Complete redesign of audio module to use mini_al audio library
|
||||||
|
* Support AppVeyor and Travis CI (continuous integration) build
|
||||||
|
* Reviewed raymath.h for better consistency and performance (inlining)
|
||||||
|
* Refactor all #define SUPPORT_* into a single config.h
|
||||||
|
* Support TCC compiler
|
||||||
|
* For complete list see CHANGELOG file
|
||||||
|
- Remove BR openal-soft-devel
|
||||||
|
- Add packageconfig file
|
||||||
|
- Add raylib-2.0.0-api-version.patch: api version should be 2
|
||||||
|
- Switch from meson to CMake
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 3 11:50:40 UTC 2017 - jengelh@inai.de
|
Fri Nov 3 11:50:40 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
49
raylib.spec
49
raylib.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package raylib
|
# spec file for package raylib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,18 +17,20 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: raylib
|
Name: raylib
|
||||||
Version: 1.8.0
|
Version: 2.0.0~rc1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: C library for learning video game programming
|
Summary: C library for learning video game programming
|
||||||
License: Zlib
|
License: Zlib
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: http://www.raylib.com
|
Url: http://www.raylib.com
|
||||||
Source: https://github.com/raysan5/%{name}/archive/%{version}.tar.gz
|
#Source: https://github.com/raysan5/%{name}/archive/%{version}.tar.gz
|
||||||
|
Source: https://github.com/raysan5/raylib/archive/2.0.0-rc1.tar.gz
|
||||||
|
# FIX-UPSTREAM: https://github.com/raysan5/raylib/pull/545
|
||||||
|
Patch0: raylib-2.0.0-api-version.patch
|
||||||
BuildRequires: Mesa-libGL-devel
|
BuildRequires: Mesa-libGL-devel
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libXi-devel
|
||||||
BuildRequires: libglfw-devel >= 3.2
|
BuildRequires: libglfw-devel >= 3.2
|
||||||
BuildRequires: meson >= 0.39.1
|
|
||||||
BuildRequires: openal-soft-devel
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A C library for learning video game programming.
|
A C library for learning video game programming.
|
||||||
@ -37,41 +39,46 @@ raylib is inspired by the Borland BGI graphics library and by the XNA framework.
|
|||||||
%package -n raylib-devel
|
%package -n raylib-devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libraylib2 = %{version}
|
||||||
Requires: openal-soft-devel
|
Requires: openal-soft-devel
|
||||||
Requires: libraylib1 = %{version}
|
|
||||||
|
|
||||||
%description -n raylib-devel
|
%description -n raylib-devel
|
||||||
Development files and headers for %{name}.
|
Development files and headers for %{name}.
|
||||||
|
|
||||||
%package -n libraylib1
|
%package -n libraylib2
|
||||||
Summary: C library for learning video game programming
|
Summary: C library for learning video game programming
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libraylib1
|
%description -n libraylib2
|
||||||
A C library for learning video game programming.
|
A C library for learning video game programming.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -n raylib-2.0.0-rc1
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{meson}
|
%cmake \
|
||||||
%{meson_build}
|
-DPLATFORM=PLATFORM_DESKTOP \
|
||||||
|
-DSHARED=ON \
|
||||||
|
-DUSE_EXTERNAL_GLFW=ON \
|
||||||
|
-DBUILD_SHARED_LIBS=ON
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{meson_install}
|
%cmake_install
|
||||||
|
rm %{buildroot}%{_libdir}/libraylib.a
|
||||||
|
|
||||||
%post -n libraylib1 -p /sbin/ldconfig
|
%post -n libraylib2 -p /sbin/ldconfig
|
||||||
%postun -n libraylib1 -p /sbin/ldconfig
|
%postun -n libraylib2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libraylib1
|
%files -n libraylib2
|
||||||
%defattr(-,root,root)
|
%{_libdir}/libraylib.so.2
|
||||||
%{_libdir}/libraylib.so.1
|
%{_libdir}/libraylib.so.2.0.0
|
||||||
%{_libdir}/libraylib.so.1.8.0
|
|
||||||
|
|
||||||
%files -n raylib-devel
|
%files -n raylib-devel
|
||||||
%defattr(-,root,root)
|
%license LICENSE.md
|
||||||
%doc CHANGELOG README.md LICENSE.md
|
%doc CHANGELOG README.md
|
||||||
%{_includedir}/raylib.h
|
%{_includedir}/raylib.h
|
||||||
%{_libdir}/libraylib.so
|
%{_libdir}/libraylib.so
|
||||||
|
%{_libdir}/pkgconfig/raylib.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user