forked from jengelh/SDL3
Accepting request 1041939 from home:jengelh:dev
+rpath OBS-URL: https://build.opensuse.org/request/show/1041939 OBS-URL: https://build.opensuse.org/package/show/games/SDL3?expand=0&rev=1
This commit is contained in:
commit
6c8fa2b016
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
|
3
SDL-3.0~git251.1a890808a.tar.xz
Normal file
3
SDL-3.0~git251.1a890808a.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4d1cd3a85ccc2e8aeaf6e5382f4c68f97314b818fb8e7debae8eb0b0a44f325e
|
||||||
|
size 9197264
|
4
SDL3.changes
Normal file
4
SDL3.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 2 21:18:51 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Initial package (3.0~git251.1a890808a) for build.opensuse.org
|
28
SDL3.keyring
Normal file
28
SDL3.keyring
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
pub 1024D/A7763BE6 2001-01-05
|
||||||
|
uid Sam Lantinga <slouken@libsdl.org>
|
||||||
|
sub 1024g/06F8768C 2001-01-05
|
||||||
|
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||||
|
|
||||||
|
mQGiBDpWOb0RBADQwd3d9mzt6KzqlsgXf9mikBuMbpKzYs1SBKYpdzUs9sRY0CnH
|
||||||
|
vCQTrL5sI57yKLnqEl6SbIiE75ZwrSWwvUDFFTh35Jew5nPZwv64en2kw2y4qrnJ
|
||||||
|
kBZCHDSU4KgfUZtoJ25Tmeru5MLNbXxCOoMszO5L5OchwMrGMtmFLRA/bwCgy5Th
|
||||||
|
d1/vJo+bej9tbgv++SJ05o0D/3MPK7EBoxWkQ0I+ScqOsvSMRQXWc/hXy4lyIp8e
|
||||||
|
xJByBApkv0LiiT3KlPpq/K2gTlDlCZ/JTt6Rv8Ug0g47R3a0aoz9kfc15UjHdiap
|
||||||
|
UOfF9MWmmbw59Lyx6+y2e0/C5xWzNOR1G4G5y4RZL/GXrp67xz/0fEhI85R+eASq
|
||||||
|
AEfSBAC5ZxwnBwyl+h+PXeJYKrPQjSUlgtSAkKp7PNBywwlue1LcSb7j4cc+cmgH
|
||||||
|
QMVuM883LPE59btNzFTAZjlzzIMiaXf5h9EkDARTGQ1wFiO3V5vIbVLh4kAoNfpT
|
||||||
|
egy7bYn3UrlbKg3V2DbCdEXm1zQufZzK7T0yenA5Ps8xXX7mNrQhU2FtIExhbnRp
|
||||||
|
bmdhIDxzbG91a2VuQGxpYnNkbC5vcmc+iF8EExECABcFAjpWOb0FCwcKAwQDFQMC
|
||||||
|
AxYCAQIXgAASCRAwpZN3p3Y75gdlR1BHAAEB31EAnjxYj6c496zRYru3fzUiPgl9
|
||||||
|
JjFZAKCOkxoODf9qHbcdmFi1Mq0dTMP3OLkBDQQ6VjnDEAQA++MHQHlE0CPyEEX8
|
||||||
|
urvzDmsnX9/lGpZeZ1/ECm4QT/04QVdRJReaz1/8ha/JJ3J/jw+Ti3aHxvyLsXR/
|
||||||
|
dH61wKnqbQ+3UFI0di6Z+a2idPLkUeqnAFWUSLsjSzmYPeTE76Tw9BsBMcfmyYWe
|
||||||
|
jPZRNz4zNCNR21PNdSRSCq9/3NMAAwYD/1j+HquGLdhhd4jpKZtepybOxArNpZWE
|
||||||
|
t7DruzN6OdiwognWNrgx59iW2EJeCYgGuI1+3Ega0EjQ9ybPCmfR6SdE0ro2CmYR
|
||||||
|
JsYoJaHn0l6IArmF0E97jstIVVy3nNI729CFEPIvOHM8+0Hdd6gpNSQtbEFItt5l
|
||||||
|
XBwc8gr/AtqXiE4EGBECAAYFAjpWOcMAEgkQMKWTd6d2O+YHZUdQRwABAcZlAJ9z
|
||||||
|
Xumd1FC6YnvEST9eUQbeitjFhQCfYSvy7PxXgSfXedKsZmHWdka01zY=
|
||||||
|
=62+H
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
149
SDL3.spec
Normal file
149
SDL3.spec
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
#
|
||||||
|
# spec file for package SDL3
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define sle_version 0
|
||||||
|
Name: SDL3
|
||||||
|
%define lname libSDL3-0
|
||||||
|
Version: 3.0~git251.1a890808a
|
||||||
|
Release: 0
|
||||||
|
Summary: Simple DirectMedia Layer Library
|
||||||
|
License: Zlib
|
||||||
|
Group: Development/Libraries/X11
|
||||||
|
URL: https://libsdl.org/
|
||||||
|
#Git-Clone: https://github.com/libsdl-org/SDL
|
||||||
|
#Source: https://libsdl.org/release/%name-%version.tar.gz
|
||||||
|
#Source2: https://libsdl.org/release/%name-%version.tar.gz.sig
|
||||||
|
Source: SDL-%version.tar.xz
|
||||||
|
Source3: %name.keyring
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libdecor-devel
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: pkgconfig(alsa) >= 1.0.11
|
||||||
|
BuildRequires: pkgconfig(dbus-1)
|
||||||
|
%if !0%{?sle_version}
|
||||||
|
BuildRequires: pkgconfig(fcitx)
|
||||||
|
%endif
|
||||||
|
BuildRequires: pkgconfig(egl)
|
||||||
|
BuildRequires: pkgconfig(gl)
|
||||||
|
BuildRequires: pkgconfig(glesv2)
|
||||||
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
|
BuildRequires: pkgconfig(glu)
|
||||||
|
BuildRequires: pkgconfig(ibus-1.0)
|
||||||
|
BuildRequires: pkgconfig(ice)
|
||||||
|
# KMS/DRM driver needs libdrm and libgbm
|
||||||
|
BuildRequires: pkgconfig(gbm) >= 11.1.0
|
||||||
|
BuildRequires: pkgconfig(libdrm) >= 2.4.82
|
||||||
|
BuildRequires: pkgconfig(libpipewire-0.3) >= 0.3.20
|
||||||
|
BuildRequires: pkgconfig(libpulse-simple) >= 0.9
|
||||||
|
BuildRequires: pkgconfig(libudev)
|
||||||
|
BuildRequires: pkgconfig(samplerate)
|
||||||
|
BuildRequires: pkgconfig(udev)
|
||||||
|
BuildRequires: pkgconfig(wayland-client) >= 1.18
|
||||||
|
BuildRequires: pkgconfig(wayland-cursor)
|
||||||
|
BuildRequires: pkgconfig(wayland-egl)
|
||||||
|
BuildRequires: pkgconfig(wayland-protocols)
|
||||||
|
BuildRequires: pkgconfig(wayland-scanner)
|
||||||
|
BuildRequires: pkgconfig(x11)
|
||||||
|
BuildRequires: pkgconfig(xcursor)
|
||||||
|
BuildRequires: pkgconfig(xext)
|
||||||
|
BuildRequires: pkgconfig(xi)
|
||||||
|
BuildRequires: pkgconfig(xinerama)
|
||||||
|
BuildRequires: pkgconfig(xkbcommon)
|
||||||
|
BuildRequires: pkgconfig(xrandr)
|
||||||
|
BuildRequires: pkgconfig(xscrnsaver)
|
||||||
|
BuildRequires: pkgconfig(xxf86vm)
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is the "Simple DirectMedia Layer" library. It provides a generic
|
||||||
|
API for access to audio, keyboard, mouse, and display framebuffer
|
||||||
|
across multiple platforms.
|
||||||
|
|
||||||
|
%package -n %lname
|
||||||
|
Summary: Simple DirectMedia Layer Library
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %lname
|
||||||
|
This is the "Simple DirectMedia Layer" library. It provides a generic
|
||||||
|
API for access to audio, keyboard, mouse, and display framebuffer
|
||||||
|
across multiple platforms.
|
||||||
|
|
||||||
|
SDL uses dlopen, so if you experience problems under X11, check
|
||||||
|
again that libXrandr2 and libXi6 are in fact installed.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: SDL3 Library Developer Files
|
||||||
|
Group: Development/Libraries/X11
|
||||||
|
Requires: %lname = %version-%release
|
||||||
|
Requires: c_compiler
|
||||||
|
Requires: pkgconfig
|
||||||
|
Requires: pkgconfig(gl)
|
||||||
|
Requires: pkgconfig(glesv1_cm)
|
||||||
|
Requires: pkgconfig(glesv2)
|
||||||
|
Requires: pkgconfig(glu)
|
||||||
|
Requires: pkgconfig(x11)
|
||||||
|
Requires: pkgconfig(xproto)
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains files needed for development with the SDL
|
||||||
|
library.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n SDL-%version
|
||||||
|
|
||||||
|
%build
|
||||||
|
%global _lto_cflags %_lto_cflags -ffat-lto-objects
|
||||||
|
# SDL_*_SHARED=false -> link to libs rather than dlopen.
|
||||||
|
%cmake \
|
||||||
|
%ifarch %ix86
|
||||||
|
-DSDL_MMX:BOOL=OFF -DSDL_SSE:BOOL=OFF -DSDL_SSE2:BOOL=OFF \
|
||||||
|
%endif
|
||||||
|
-DSDL_SSE3:BOOL=OFF -DSDL_3DNOW:BOOL=OFF \
|
||||||
|
-DSDL_ALSA_SHARED:BOOL=OFF -DSDL_LIBSAMPLERATE_SHARED:BOOL=OFF \
|
||||||
|
-DSDL_PIPEWIRE_SHARED:BOOL=OFF -DSDL_PULSEAUDIO_SHARED:BOOL=OFF \
|
||||||
|
-DSDL_X11_SHARED:BOOL=OFF -DSDL_WAYLAND_SHARED:BOOL=OFF \
|
||||||
|
-DSDL_KMSDRM_SHARED:BOOL=OFF \
|
||||||
|
-DSDL_STATIC:BOOL=OFF -DSDL_STATIC_PIC:BOOL=ON -DSDL_RPATH:BOOL=OFF
|
||||||
|
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
rm -Rf "%buildroot/%_datadir/licenses" # we use %%license
|
||||||
|
# Need to keep libSDL3main.a (empty lib), because it is referenced by
|
||||||
|
# sdl3-config.cmake, and it seems like that .cmake file cannot be edited to
|
||||||
|
# make SDL3::SDL3main a phony target with no file (just leads to more Makefile
|
||||||
|
# errors down the road).
|
||||||
|
|
||||||
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n %lname
|
||||||
|
%license LICENSE.txt
|
||||||
|
%_libdir/libSDL3.so.0*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
#%doc README.md README-SDL.txt WhatsNew.txt
|
||||||
|
%_libdir/libSDL3.so
|
||||||
|
%_includedir/SDL3/
|
||||||
|
%_libdir/pkgconfig/sdl3.pc
|
||||||
|
%_libdir/cmake/SDL3/
|
||||||
|
%_libdir/libSDL3_main.a
|
||||||
|
%_libdir/libSDL3_test.a
|
||||||
|
|
||||||
|
%changelog
|
14
_service
Normal file
14
_service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/libsdl-org/SDL</param>
|
||||||
|
<param name="revision">main</param>
|
||||||
|
<param name="parent-tag">release-2.26.0</param>
|
||||||
|
<param name="versionformat">3.0~git@TAG_OFFSET@.%h</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="disabled"/>
|
||||||
|
</services>
|
Loading…
Reference in New Issue
Block a user