SHA256
1
0
forked from pool/raylib
raylib/raylib.spec
Michael Vetter ab0d88fd29 - Update to 4.2.0:
* extra libraries cleanup:
  * examples review
  * rres resource format
  * raygui official gui library
  * new file system API
  * New audio stream processors API
  * For details see https://github.com/raysan5/raylib/releases/tag/4.2.0

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=32
2022-08-12 05:42:16 +00:00

89 lines
2.4 KiB
RPMSpec

#
# spec file for package raylib
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: raylib
Version: 4.2.0
Release: 0
Summary: C library for learning video game programming
License: Zlib
Group: Development/Libraries/C and C++
URL: https://www.raylib.com
Source: raylib-%{version}.tar.xz
BuildRequires: Mesa-libGL-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libXcursor-devel
BuildRequires: libXi-devel
BuildRequires: libXinerama-devel
BuildRequires: libXrandr-devel
BuildRequires: libglfw-devel >= 3.4
%description
A C library for learning video game programming.
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: openal-soft-devel
%description -n raylib-devel
Development files and headers for %{name}.
%package -n libraylib400
Summary: C library for learning video game programming
Group: System/Libraries
%description -n libraylib400
A C library for learning video game programming.
%prep
%setup -q
%build
%cmake \
-DBUILD_EXAMPLES=OFF \
-DPLATFORM=Desktop \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DOpenGL_GL_PREFERENCE=GLVND \
-DUSE_EXTERNAL_GLFW=ON
%install
%cmake_install
%post -n libraylib400 -p /sbin/ldconfig
%postun -n libraylib400 -p /sbin/ldconfig
%files -n libraylib400
%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
%{_libdir}/pkgconfig/raylib.pc
%{_libdir}/cmake/raylib/
%changelog