%global commit 9f2d88a343cc9fc43257147093b50a2aeed9af5a %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20210515 Name: sdl12-compat Version: 0~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-c++ BuildRequires: make BuildRequires: SDL2-devel # This provides an alternative implementation of SDL 1.2 Conflicts: SDL %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. %prep %autosetup -n %{name}-%{commit} %build %cmake %cmake_build %install %cmake_install # Remove the unversioned symlink since we don't have devel headers yet rm -fv %{buildroot}%{_libdir}/libSDL-1.2.so %files %license LICENSE.txt %doc README.md BUGS.txt %{_libdir}/libSDL-1.2.so.* %changelog * Sat May 15 2021 Neal Gompa - 0~git.20210515.9f2d88a-1 - Initial package