From 542d1a19e4808b16a6593c49eb87df3ba57dc6fbb93cb0b2ee542e90c698f8cc Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 7 Mar 2022 10:54:14 +0000 Subject: [PATCH] Accepting request 959745 from home:jengelh:dev new code from the SDL project OBS-URL: https://build.opensuse.org/request/show/959745 OBS-URL: https://build.opensuse.org/package/show/games/sdl12_compat?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + release-1.2.52.tar.gz | 3 ++ sdl12_compat-rpmlintrc | 8 ++++ sdl12_compat.changes | 4 ++ sdl12_compat.spec | 84 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 123 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 release-1.2.52.tar.gz create mode 100644 sdl12_compat-rpmlintrc create mode 100644 sdl12_compat.changes create mode 100644 sdl12_compat.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/release-1.2.52.tar.gz b/release-1.2.52.tar.gz new file mode 100644 index 0000000..0019dc9 --- /dev/null +++ b/release-1.2.52.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bd7942703575554670a8767ae030f7921a0ac3c5e2fd173a537b7c7a8599014 +size 421046 diff --git a/sdl12_compat-rpmlintrc b/sdl12_compat-rpmlintrc new file mode 100644 index 0000000..df415ab --- /dev/null +++ b/sdl12_compat-rpmlintrc @@ -0,0 +1,8 @@ +# lto go home you're drunk +addFilter("lto-no-text-in-archive") + +# another false positive +# [ 40s] sdl12_compat-devel.x86_64: E: no-library-dependency-for /usr/lib64/libSDL-1.2.so +# [ 40s] The package misses dependency on a library package that provides the shared +# [ 40s] library. +addFilter("no-library-dependency-for") diff --git a/sdl12_compat.changes b/sdl12_compat.changes new file mode 100644 index 0000000..e6a4c22 --- /dev/null +++ b/sdl12_compat.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Mar 5 16:00:57 UTC 2022 - Jan Engelhardt + +- Initial package (v1.2.52) for build.opensuse.org diff --git a/sdl12_compat.spec b/sdl12_compat.spec new file mode 100644 index 0000000..896d375 --- /dev/null +++ b/sdl12_compat.spec @@ -0,0 +1,84 @@ +# +# spec file for package sdl12_comapt +# +# 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/ +# + + +Name: sdl12_compat +%define lname libSDL-1_2-0 +%global _lto_cflags %_lto_cflags -ffat-lto-objects +Version: 1.2.52 +Release: 0 +Summary: SDL-1.2 Compatibility Layer for Simple DirectMedia Layer 2.0 +License: MIT +Group: Development/Libraries/X11 +URL: https://github.com/libsdl-org/sdl12-compat +Source: https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-%version.tar.gz +Source9: %name-rpmlintrc +BuildRequires: cmake +BuildRequires: pkg-config +BuildRequires: pkgconfig(sdl2) + +%description +This is the "Simple DirectMedia Layer" library built from sdl12_comapt. +it provides a binary and source compatible API for programs written +against SDL 1.2, but it uses SDL 2.0 behind the scenes. + +%package -n %lname +Summary: SDL Graphics Routines for Primitives and Other Support Functions +Group: System/Libraries + +%description -n %lname +This is the "Simple DirectMedia Layer" library built from sdl12_comapt. +it provides a binary and source compatible API for programs written +against SDL 1.2, but it uses SDL 2.0 behind the scenes. + +%package devel +Summary: Libraries, includes and more to develop SDL-1.2 applications +Group: Development/Libraries/X11 +Requires: %lname = %version + +%description devel +This package contains files needed for development with the SDL +library. + +%prep +%autosetup -p1 -n sdl12-compat-release-%version + +%build +%cmake +%cmake_build + +%install +%cmake_install +b="%buildroot" +ln -s sdl12_compat.pc "$b/%_libdir/pkgconfig/sdl.pc" + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%license LICENSE.txt +%_libdir/libSDL-1.2.so.* + +%files devel +%_bindir/sdl-config +%_includedir/SDL/ +%_datadir/aclocal/ +%_libdir/pkgconfig/*.pc +%_libdir/libSDLmain.a +%_libdir/libSDL*so + +%changelog