# # spec file for package raylib # # Copyright (c) 2017 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: 1.7.0 Release: 0 Summary: C library to learn videogames programming License: Zlib Group: Development/Libraries Url: http://www.raylib.com Source: https://github.com/raysan5/%{name}/archive/%{version}.tar.gz Patch0: raylig-use-optflags.patch BuildRequires: Mesa-libGL-devel BuildRequires: libglfw-devel BuildRequires: openal-soft-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A C library to learn videogames programming. raylib is highly inspired by Borland BGI graphics lib and by XNA framework. %package -n raylib-devel Summary: Development files for %{name} Group: Development/Libraries Requires: openal-soft-devel %description -n raylib-devel Development files and headers for %{name} %prep %setup -q %patch0 -p1 %build cd src CFLAGS="%optflags" make %{?_smp_mflags} PLATFORM=PLATFORM_DESKTOP SHARED_RAYLIB=YES %install cd src # for some reason that doesnt work #%make_install SHARED_RAYLIB=YES # so lets install manually install -Dm 0755 ../release/linux/libraylib.so %{buildroot}%{_libdir}/libraylib.so install -Dm 0644 ../release/linux/raylib.h %{buildroot}%{_includedir}/raylib.h %files -n raylib-devel %defattr(-,root,root) %doc CHANGELOG README.md LICENSE.md %{_includedir}/raylib.h %{_libdir}/libraylib.so %changelog