Initial import (RHBZ#1960960)

This commit is contained in:
Neal Gompa 2021-06-02 12:00:02 -04:00
parent 650e60b5af
commit dafe6f2122
3 changed files with 101 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/sdl12-compat-cc5826a.tar.gz

99
sdl12-compat.spec Normal file
View File

@ -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 <ngompa13@gmail.com> - 0.0.1~git.20210602.cc5826a-1
- Update to new snapshot release
* Sat May 29 2021 Neal Gompa <ngompa13@gmail.com> - 0.0.1~git.20210528.646ecd7-0.1
- Update to new snapshot release
* Fri May 28 2021 Neal Gompa <ngompa13@gmail.com> - 0.0.1~git.20210527.a915ff1-0.1
- Update to new snapshot release
* Wed May 26 2021 Neal Gompa <ngompa13@gmail.com> - 0.0.1~git.20210526.848ad42-0.1
- Update to new snapshot release
* Mon May 24 2021 Neal Gompa <ngompa13@gmail.com> - 0.0.1~git.20210524.cf71450-0.1
- Update to new snapshot release
* Sat May 15 2021 Neal Gompa <ngompa13@gmail.com> - 0~git.20210515.9f2d88a-1
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (sdl12-compat-cc5826a.tar.gz) = bc5b3299353f14b688ac39e8cef1a000d5c25f0fc1a0028197f06f2e316dd55daa2b6350d8a99bb84e7439d520d18822eab6984c3e857f8cbcf6f46083200f29