raylib/raylib.spec
Michael Vetter d23987996a - Update to 3.5.0:
* Platform supported: Raspberry Pi 4 native mode (no X11 windows)
    through DRM subsystem and GBM API. Actually this is a really
    interesting improvement because it opens the door to raylib to
	support other embedded platforms (Odroid, GameShell, NanoPi...).
    Also worth mentioning the un-official homebrew ports of raylib
    for PS4 and PSVita.
  * NEW configuration options exposed: For custom raylib builds,
    config.h now exposes more than 150 flags and defines to build
    raylib with only the desired features, for example, it allows to
    build a minimal raylib library in just some KB removing all
    external data filetypes supported, very useful to generate small
    executables or embedded devices.
  * NEW automatic GIF recording feature: Actually, automatic GIF
    recording (CTRL+F12) for any raylib application has been available
    for some versions but this feature was really slow and low-performant
    using an old gif library with many file-accesses. It has been replaced
    by a high-performant alternative (msf_gif.h) that operates directly
    on memory... and actually works very well! Try it out!
  * NEW RenderBatch system: rlgl module has been redesigned to support
    custom render batches to allow grouping draw calls as desired, previous
    implementation just had one default render batch. This feature has not
    been exposed to raylib API yet but it can be used by advance users dealing
    with rlgl directly. For example, multiple RenderBatch can be created
    for 2D sprites and 3D geometry independently.
  * NEW Framebuffer system: rlgl module now exposes an API for custom Framebuffer
    attachments (including cubemaps!). raylib RenderTexture is a basic
    use-case, just allowing color and depth textures, but this new API allows
    the creation of more advance Framebuffers with multiple attachments,
    like the G-Buffers. GenTexture*() functions have been redesigned to use this new API.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=26
2021-01-04 14:51:24 +00:00

90 lines
2.5 KiB
RPMSpec

#
# spec file for package raylib
#
# Copyright (c) 2021 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: 3.5.0
Release: 0
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/releases/download/%{version}/raylib-noexamples-%{version}.tar.gz
Patch0: raylib-3.0.0-noexamples.patch
BuildRequires: Mesa-libGL-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libXcursor-devel
BuildRequires: libXi-devel
BuildRequires: libXinerama-devel
BuildRequires: libXrandr-devel
%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: libraylib351 = %{version}
Requires: openal-soft-devel
%description -n raylib-devel
Development files and headers for %{name}.
%package -n libraylib351
Summary: C library for learning video game programming
Group: System/Libraries
%description -n libraylib351
A C library for learning video game programming.
%prep
%setup -q -n raylib-3.5.0
%patch0 -p1
%build
%cmake \
-DPLATFORM=Desktop \
-DSHARED=ON
%install
%cmake_install
for f in build/src/*.h; do
install -Dm 644 "$f" "$RPM_BUILD_ROOT/usr/include/$(basename $f)"
done
%post -n libraylib351 -p /sbin/ldconfig
%postun -n libraylib351 -p /sbin/ldconfig
%files -n libraylib351
%{_libdir}/libraylib.so.*
%files -n raylib-devel
%license LICENSE
%doc CHANGELOG README.md
%{_includedir}/raylib.h
%{_includedir}/raudio.h
%{_includedir}/physac.h
%{_includedir}/raymath.h
%{_includedir}/rlgl.h
%{_libdir}/libraylib.so
%{_libdir}/pkgconfig/raylib.pc
%{_libdir}/cmake/raylib/
%changelog