diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a9d885e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sdl12-compat-cc5826a.tar.gz diff --git a/sdl12-compat.spec b/sdl12-compat.spec new file mode 100644 index 0000000..9320167 --- /dev/null +++ b/sdl12-compat.spec @@ -0,0 +1,99 @@ +%global commit cc5826a7553ad850de1dfc1264128d9df6d44fa2 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commitdate 20210602 + +Name: sdl12-compat +Version: 0.0.1~git.%{commitdate}.%{shortcommit} +Release: 1%{?dist} +Summary: SDL 1.2 runtime compatibility library using SDL 2.0 + +License: zlib +URL: https://github.com/libsdl-org/sdl12-compat +Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: git-core +BuildRequires: make +BuildRequires: SDL2-devel +BuildRequires: mesa-libGL-devel +BuildRequires: mesa-libGLU-devel +# This replaces SDL +Conflicts: SDL < 1.2.50 +Obsoletes: SDL < 1.2.50 +Provides: SDL = 1.2.50 +Provides: SDL%{?_isa} = 1.2.50 + +%description +Simple DirectMedia Layer (SDL) is a cross-platform multimedia library +designed to provide fast access to the graphics frame buffer and audio device. + +This code is a compatibility layer; it provides a binary-compatible API for +programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes. + +If you are writing new code, please target SDL 2.0 directly and do not use +this layer. + +%package devel +Summary: Files to develop SDL 1.2 applications using SDL 2.0 +Requires: %{name}%{?_isa} = %{version}-%{release} +# This replaces SDL-devel +Conflicts: SDL-devel < 1.2.50 +Obsoletes: SDL-devel < 1.2.50 +Provides: SDL-devel = 1.2.50 +Provides: SDL-devel%{?_isa} = 1.2.50 + +%description devel +Simple DirectMedia Layer (SDL) is a cross-platform multimedia library +designed to provide fast access to the graphics frame buffer and audio device. + +This code is a compatibility layer; it provides a source-compatible API for +programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes. + +If you are writing new code, please target SDL 2.0 directly and do not use +this layer. + + +%prep +%autosetup -n %{name}-%{commit} -S git_am + + +%build +%cmake +%cmake_build + + +%install +%cmake_install + + +%files +%license LICENSE.txt +%doc README.md BUGS.txt +%{_libdir}/libSDL-1.2.so.* + +%files devel +%{_bindir}/sdl-config +%{_includedir}/SDL/ +%{_libdir}/libSDL-1.2.so +%{_libdir}/pkgconfig/sdl12_compat.pc + + +%changelog +* Wed Jun 02 2021 Neal Gompa - 0.0.1~git.20210602.cc5826a-1 +- Update to new snapshot release + +* Sat May 29 2021 Neal Gompa - 0.0.1~git.20210528.646ecd7-0.1 +- Update to new snapshot release + +* Fri May 28 2021 Neal Gompa - 0.0.1~git.20210527.a915ff1-0.1 +- Update to new snapshot release + +* Wed May 26 2021 Neal Gompa - 0.0.1~git.20210526.848ad42-0.1 +- Update to new snapshot release + +* Mon May 24 2021 Neal Gompa - 0.0.1~git.20210524.cf71450-0.1 +- Update to new snapshot release + +* Sat May 15 2021 Neal Gompa - 0~git.20210515.9f2d88a-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6662f73 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sdl12-compat-cc5826a.tar.gz) = bc5b3299353f14b688ac39e8cef1a000d5c25f0fc1a0028197f06f2e316dd55daa2b6350d8a99bb84e7439d520d18822eab6984c3e857f8cbcf6f46083200f29