2022-03-07 11:54:14 +01:00
|
|
|
#
|
2022-03-07 12:21:47 +01:00
|
|
|
# spec file for package sdl12_compat
|
2022-03-07 11:54:14 +01:00
|
|
|
#
|
2023-05-26 10:20:42 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-03-07 11:54:14 +01:00
|
|
|
#
|
|
|
|
# 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
|
2022-05-16 14:44:32 +02:00
|
|
|
%define lname libSDL-1_2-0
|
2022-03-07 11:54:14 +01:00
|
|
|
%global _lto_cflags %_lto_cflags -ffat-lto-objects
|
2023-09-26 21:06:13 +02:00
|
|
|
Version: 1.2.68
|
2022-03-07 11:54:14 +01:00
|
|
|
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
|
2022-05-17 09:46:26 +02:00
|
|
|
Source8: baselibs.conf
|
2022-03-07 11:54:14 +01:00
|
|
|
Source9: %name-rpmlintrc
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(sdl2)
|
|
|
|
|
2023-05-26 10:20:42 +02:00
|
|
|
# A list of known apps/issues is at
|
|
|
|
# docs.google.com/spreadsheets/d/1u8Rq3LVQYYgu28sBuxrZ371QolbiZu5z_LjENc4ddZs/edit
|
|
|
|
|
2022-03-07 11:54:14 +01:00
|
|
|
%description
|
2022-03-07 12:21:47 +01:00
|
|
|
This is the "Simple DirectMedia Layer" library built from sdl12_compat.
|
2022-03-07 11:54:14 +01:00
|
|
|
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
|
2022-03-07 12:21:47 +01:00
|
|
|
Conflicts: libSDL-1_2-0
|
2022-06-15 14:11:31 +02:00
|
|
|
%requires_eq %(rpm --qf "%%{name}" -qf $(readlink -f %{_libdir}/libSDL2.so))
|
2022-03-07 11:54:14 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
2022-03-07 12:21:47 +01:00
|
|
|
This is the "Simple DirectMedia Layer" library built from sdl12_compat.
|
2022-03-07 11:54:14 +01:00
|
|
|
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
|
2022-06-15 14:11:31 +02:00
|
|
|
Requires: pkgconfig(gl)
|
|
|
|
Requires: pkgconfig(glu)
|
2022-06-15 14:12:19 +02:00
|
|
|
Requires: pkgconfig(x11)
|
|
|
|
Requires: pkgconfig(xproto)
|
2022-03-07 12:21:47 +01:00
|
|
|
Conflicts: SDL-devel
|
2022-06-07 09:59:18 +02:00
|
|
|
Provides: SDL-devel = %version-%release
|
|
|
|
Provides: libSDL-devel = %version-%release
|
2022-03-07 11:54:14 +01:00
|
|
|
|
|
|
|
%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"
|
2022-03-07 13:00:49 +01:00
|
|
|
rm -v "$b/%_libdir"/*.a
|
2022-03-07 11:54:14 +01:00
|
|
|
|
|
|
|
%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/libSDL*so
|
|
|
|
|
|
|
|
%changelog
|