forked from pool/raylib
- Switch -DUSE_EXTERNAL_GLFW to OFF:
Earlier we build required on our glfw package. But with raylib 4.2.0 they started to use features are only in the development version. They were unhappy that glfw 3.4.0 takes a long time to be relased and decided to create a in-tree copy. So for raylib 4.2.0 to build we need to use this in-tree version. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=33
This commit is contained in:
parent
ab0d88fd29
commit
d3e1f25707
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 3 12:43:51 UTC 2022 - Michael Vetter <mvetter@suse.com>
|
||||
|
||||
- Switch -DUSE_EXTERNAL_GLFW to OFF:
|
||||
Earlier we build required on our glfw package.
|
||||
But with raylib 4.2.0 they started to use features are only
|
||||
in the development version.
|
||||
They were unhappy that glfw 3.4.0 takes a long time to be
|
||||
relased and decided to create a in-tree copy.
|
||||
So for raylib 4.2.0 to build we need to use this in-tree version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 12 05:37:23 UTC 2022 - Michael Vetter <mvetter@suse.com>
|
||||
|
||||
|
20
raylib.spec
20
raylib.spec
@ -31,7 +31,10 @@ BuildRequires: libXcursor-devel
|
||||
BuildRequires: libXi-devel
|
||||
BuildRequires: libXinerama-devel
|
||||
BuildRequires: libXrandr-devel
|
||||
BuildRequires: libglfw-devel >= 3.4
|
||||
# raylib ships an in-tree glfw that is a copy of *a* git revision of upstream glfw
|
||||
# containing features they need. They are unhappy that it takes such
|
||||
# a long time for 3.4 to be released. So ship it.
|
||||
#BuildRequires: libglfw-devel >= 3.4
|
||||
|
||||
%description
|
||||
A C library for learning video game programming.
|
||||
@ -40,17 +43,17 @@ raylib is inspired by the Borland BGI graphics library and by the XNA framework.
|
||||
%package -n raylib-devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libraylib400 = %{version}
|
||||
Requires: libraylib420 = %{version}
|
||||
Requires: openal-soft-devel
|
||||
|
||||
%description -n raylib-devel
|
||||
Development files and headers for %{name}.
|
||||
|
||||
%package -n libraylib400
|
||||
%package -n libraylib420
|
||||
Summary: C library for learning video game programming
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libraylib400
|
||||
%description -n libraylib420
|
||||
A C library for learning video game programming.
|
||||
|
||||
%prep
|
||||
@ -63,22 +66,21 @@ A C library for learning video game programming.
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DOpenGL_GL_PREFERENCE=GLVND \
|
||||
-DUSE_EXTERNAL_GLFW=ON
|
||||
-DUSE_EXTERNAL_GLFW=OFF
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%post -n libraylib400 -p /sbin/ldconfig
|
||||
%postun -n libraylib400 -p /sbin/ldconfig
|
||||
%post -n libraylib420 -p /sbin/ldconfig
|
||||
%postun -n libraylib420 -p /sbin/ldconfig
|
||||
|
||||
%files -n libraylib400
|
||||
%files -n libraylib420
|
||||
%license LICENSE
|
||||
%{_libdir}/libraylib.so.*
|
||||
|
||||
%files -n raylib-devel
|
||||
%doc CHANGELOG README.md
|
||||
%{_includedir}/raylib.h
|
||||
%{_includedir}/raudio.h
|
||||
%{_includedir}/raymath.h
|
||||
%{_includedir}/rlgl.h
|
||||
%{_libdir}/libraylib.so
|
||||
|
Loading…
x
Reference in New Issue
Block a user