|
|
@ -1,7 +1,3 @@
|
|
|
|
%global commit 4e4527a123fb99a1677055d89c5fc74323ddc4d8
|
|
|
|
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
%global commitdate 20211125
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
%if 0%{?rhel}
|
|
|
|
# Features disabled for RHEL
|
|
|
|
# Features disabled for RHEL
|
|
|
|
%bcond_with static
|
|
|
|
%bcond_with static
|
|
|
@ -10,18 +6,20 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: sdl12-compat
|
|
|
|
Name: sdl12-compat
|
|
|
|
Version: 0.0.1~git.%{commitdate}.%{shortcommit}
|
|
|
|
Version: 1.2.60
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: SDL 1.2 runtime compatibility library using SDL 2.0
|
|
|
|
Summary: SDL 1.2 runtime compatibility library using SDL 2.0
|
|
|
|
# mp3 decoder code is MIT-0/PD
|
|
|
|
# mp3 decoder code is MIT-0/PD
|
|
|
|
# SDL_opengl.h is zlib and MIT
|
|
|
|
# SDL_opengl.h is zlib and MIT
|
|
|
|
License: zlib and (Public Domain or MIT-0) and MIT
|
|
|
|
License: zlib and (Public Domain or MIT-0) and MIT
|
|
|
|
URL: https://github.com/libsdl-org/sdl12-compat
|
|
|
|
URL: https://github.com/libsdl-org/sdl12-compat
|
|
|
|
Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
|
|
|
Source0: %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz
|
|
|
|
# Multilib aware-header stub
|
|
|
|
# Multilib aware-header stub
|
|
|
|
Source1: SDL_config.h
|
|
|
|
Source1: SDL_config.h
|
|
|
|
|
|
|
|
|
|
|
|
# Backports from upstream (0001~0500)
|
|
|
|
# Backports from upstream (0001~0500)
|
|
|
|
|
|
|
|
## From: https://github.com/libsdl-org/sdl12-compat/commit/77892a1ef5260fe78e593c8337dbe98874ff336c
|
|
|
|
|
|
|
|
Patch0001: 0001-fix-SDL12COMPAT_MAX_VIDMODE.patch
|
|
|
|
|
|
|
|
|
|
|
|
# Proposed patches (0501~1000)
|
|
|
|
# Proposed patches (0501~1000)
|
|
|
|
|
|
|
|
|
|
|
@ -38,10 +36,10 @@ BuildRequires: mesa-libGLU-devel
|
|
|
|
# This replaces SDL
|
|
|
|
# This replaces SDL
|
|
|
|
Obsoletes: SDL < 1.2.15-49
|
|
|
|
Obsoletes: SDL < 1.2.15-49
|
|
|
|
Conflicts: SDL < 1.2.50
|
|
|
|
Conflicts: SDL < 1.2.50
|
|
|
|
Provides: SDL = 1.2.50
|
|
|
|
Provides: SDL = %{version}
|
|
|
|
Provides: SDL%{?_isa} = 1.2.50
|
|
|
|
Provides: SDL%{?_isa} = %{version}
|
|
|
|
# This dlopens SDL2 (?!), so manually depend on it
|
|
|
|
# This dlopens SDL2 (?!), so manually depend on it
|
|
|
|
Requires: SDL2%{?_isa} >= 2.0.14
|
|
|
|
Requires: SDL2%{?_isa} >= 2.0.18
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
|
|
|
|
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
|
|
|
@ -59,8 +57,8 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
# This replaces SDL-devel
|
|
|
|
# This replaces SDL-devel
|
|
|
|
Obsoletes: SDL-devel < 1.2.15-49
|
|
|
|
Obsoletes: SDL-devel < 1.2.15-49
|
|
|
|
Conflicts: SDL-devel < 1.2.50
|
|
|
|
Conflicts: SDL-devel < 1.2.50
|
|
|
|
Provides: SDL-devel = 1.2.50
|
|
|
|
Provides: SDL-devel = %{version}
|
|
|
|
Provides: SDL-devel%{?_isa} = 1.2.50
|
|
|
|
Provides: SDL-devel%{?_isa} = %{version}
|
|
|
|
%if ! %{with static}
|
|
|
|
%if ! %{with static}
|
|
|
|
# We don't provide the static library, but we want to replace SDL-static anyway
|
|
|
|
# We don't provide the static library, but we want to replace SDL-static anyway
|
|
|
|
Obsoletes: SDL-static < 1.2.15-49
|
|
|
|
Obsoletes: SDL-static < 1.2.15-49
|
|
|
@ -92,8 +90,8 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
# This replaces SDL-static
|
|
|
|
# This replaces SDL-static
|
|
|
|
Obsoletes: SDL-static < 1.2.15-49
|
|
|
|
Obsoletes: SDL-static < 1.2.15-49
|
|
|
|
Conflicts: SDL-static < 1.2.50
|
|
|
|
Conflicts: SDL-static < 1.2.50
|
|
|
|
Provides: SDL-static = 1.2.50
|
|
|
|
Provides: SDL-static = %{version}
|
|
|
|
Provides: SDL-static%{?_isa} = 1.2.50
|
|
|
|
Provides: SDL-static%{?_isa} = %{version}
|
|
|
|
|
|
|
|
|
|
|
|
%description static
|
|
|
|
%description static
|
|
|
|
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
|
|
|
|
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
|
|
|
@ -111,7 +109,7 @@ this layer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{name}-%{commit} -S git_am
|
|
|
|
%autosetup -n %{name}-release-%{version} -S git_am
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -135,7 +133,7 @@ rm -rf %{buildroot}%{_libdir}/*.a
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license LICENSE.txt
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md BUGS.txt
|
|
|
|
%doc README.md BUGS.md COMPATIBILITY.md
|
|
|
|
%{_libdir}/libSDL-1.2.so.*
|
|
|
|
%{_libdir}/libSDL-1.2.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
@ -154,6 +152,14 @@ rm -rf %{buildroot}%{_libdir}/*.a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Oct 30 2022 Neal Gompa <ngompa@centosproject.org> - 1.2.60-1
|
|
|
|
|
|
|
|
- Rebase to 1.2.60
|
|
|
|
|
|
|
|
Resolves: rhbz#2127565
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 04 2022 Neal Gompa <ngompa@centosproject.org> - 1.2.52-1
|
|
|
|
|
|
|
|
- Rebase to 1.2.52
|
|
|
|
|
|
|
|
Resolves: rhbz#2060907
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Dec 11 2021 Neal Gompa <ngompa@centosproject.org> - 0.0.1~git.20211125.4e4527a-4
|
|
|
|
* Sat Dec 11 2021 Neal Gompa <ngompa@centosproject.org> - 0.0.1~git.20211125.4e4527a-4
|
|
|
|
- Conflict with all old SDL subpackages properly
|
|
|
|
- Conflict with all old SDL subpackages properly
|
|
|
|
|
|
|
|
|
|
|
|