raylib/raylib.spec
Adam Majer 782113d717 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
2018-05-18 17:44:43 +00:00

85 lines
2.4 KiB
RPMSpec

#
# spec file for package raylib
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: raylib
Version: 2.0.0~rc1
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/%{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: gcc-c++
BuildRequires: libXi-devel
BuildRequires: libglfw-devel >= 3.2
%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: libraylib2 = %{version}
Requires: openal-soft-devel
%description -n raylib-devel
Development files and headers for %{name}.
%package -n libraylib2
Summary: C library for learning video game programming
Group: System/Libraries
%description -n libraylib2
A C library for learning video game programming.
%prep
%setup -q -n raylib-2.0.0-rc1
%patch0 -p1
%build
%cmake \
-DPLATFORM=PLATFORM_DESKTOP \
-DSHARED=ON \
-DUSE_EXTERNAL_GLFW=ON \
-DBUILD_SHARED_LIBS=ON
%install
%cmake_install
rm %{buildroot}%{_libdir}/libraylib.a
%post -n libraylib2 -p /sbin/ldconfig
%postun -n libraylib2 -p /sbin/ldconfig
%files -n libraylib2
%{_libdir}/libraylib.so.2
%{_libdir}/libraylib.so.2.0.0
%files -n raylib-devel
%license LICENSE.md
%doc CHANGELOG README.md
%{_includedir}/raylib.h
%{_libdir}/libraylib.so
%{_libdir}/pkgconfig/raylib.pc
%changelog