Accepting request 501012 from home:jubalh
Please add me as maintainer OBS-URL: https://build.opensuse.org/request/show/501012 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=1
This commit is contained in:
commit
18eb7c4d9c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
1.7.0.tar.gz
Normal file
3
1.7.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cf305f22da26ebad6b6d8f848e89bcee9224fe8e990c1d8913b52cd375e2451d
|
||||
size 157305564
|
21
raylib.changes
Normal file
21
raylib.changes
Normal file
@ -0,0 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 4 19:36:11 UTC 2017 - mvetter@suse.com
|
||||
|
||||
- Move Requires openal-soft-devel to devel package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 29 17:19:06 UTC 2017 - mvetter@suse.com
|
||||
|
||||
- Add Requires: openal-soft-devel
|
||||
It will be needed when one uses raylib
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 29 16:47:32 UTC 2017 - mvetter@suse.com
|
||||
|
||||
- Add OpenAL to BuildRequires
|
||||
- Add raylig-use-optflags.patch: allow passing of optflags
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 29 10:26:46 UTC 2017 - mvetter@suse.com
|
||||
|
||||
- Inital package of raylib version 1.7.0
|
66
raylib.spec
Normal file
66
raylib.spec
Normal file
@ -0,0 +1,66 @@
|
||||
#
|
||||
# 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
|
12
raylig-use-optflags.patch
Normal file
12
raylig-use-optflags.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -urEbwB raylib-1.7.0/src/Makefile raylib-1.7.0.new/src/Makefile
|
||||
--- raylib-1.7.0/src/Makefile 2017-05-19 01:02:01.000000000 +0200
|
||||
+++ raylib-1.7.0.new/src/Makefile 2017-05-29 18:21:55.452829234 +0200
|
||||
@@ -198,7 +198,7 @@
|
||||
# -fgnu89-inline declaring inline functions support (GCC optimized)
|
||||
# -Wno-missing-braces ignore invalid warning (GCC bug 53119)
|
||||
# -D_DEFAULT_SOURCE use with -std=c99
|
||||
-CFLAGS = -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -fgnu89-inline -Wno-missing-braces
|
||||
+CFLAGS += -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -fgnu89-inline -Wno-missing-braces
|
||||
|
||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||
CFLAGS += -s USE_GLFW=3 -s ASSERTIONS=1 --profiling --preload-file resources
|
Loading…
Reference in New Issue
Block a user