3 %bcond_without static_libs # don't build static libraries
4 Summary: SDL1.2 compat library (SDL2 to SDL1.2 compatibility wrapper)
5 Summary(pl.UTF-8): Biblioteka SDL1.2 (warstwa kompatybilności SDL2 z SDL1.2)
9 License: Zlib (BSD-like)
11 Source0: https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-%{version}.tar.gz
12 # Source0-md5: a539a4a3ceb3d09b7bf312d96210443c
13 URL: https://www.libsdl.org/
14 BuildRequires: SDL2-devel
17 BuildRequires: pkgconfig
18 Obsoletes: SDL <= 1.2.15
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 SDL (Simple DirectMedia Layer) is a library that allows you portable,
23 low level access to a video framebuffer, audio output, mouse, and
24 keyboard. It can support both windowed and DGA modes of XFree86, and
25 it is designed to be portable - applications linked with SDL can also
26 be built on Win32 and BeOS.
28 sdl12-compat is a replacement for SDL.
30 It attempts to look, feel and behave identically. The difference is
31 that it just converts the SDL-1.2 function calls into their SDL2
34 %description -l pl.UTF-8
35 SDL (Simple DirectMedia Layer) jest biblioteką udostępniającą
36 przenośny, niskopoziomowy dostęp do bufora ramki video, wyjścia audio,
37 myszy oraz klawiatury. Może obsługiwać zarówno okienkowy tryb XFree86
38 jak i DGA. Konstruując ją miano na uwadze przenośność: aplikacje
39 konsolidowane z SDL można również budować w systemach Win32 i BeOS.
42 sdl12-compat to zamiennik SDL.
44 Stara się wyglądać i zachowywać identycznie. Różnica jest taka, że
45 zamienia wywołania funkcji SDL-1.2 na odpowiedniki z SDL2.
48 Summary: Header files for libusb-compat library
49 Summary(es.UTF-8): Archivos de desarrollo de libusb-compat
50 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libusb-compat
51 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento da libusb-compat
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
55 Obsoletes: SDL-devel <= 1.2
58 This package contains header files and other resources you can use to
59 incorporate SDL-1.2 into applications.
61 %description devel -l es.UTF-8
62 Bibliotecas de desarrolo para sdl12-compat.
64 %description devel -l pl.UTF-8
65 Ten pakiet zawiera pliki nagłówkowe i inne zasoby pozwalające
66 wykorzystywać API sdl12-compat we własnych aplikacjach.
68 %description devel -l pt_BR.UTF-8
69 Bibliotecas de desenvolvimento para sdl12-compat.
72 Summary: sdl12-compat static library
73 Summary(es.UTF-8): Archivos de desarrollo de sdl12-compat - estatico
74 Summary(pl.UTF-8): Statyczna biblioteka sdl12-compat
75 Summary(pt_BR.UTF-8): Arquivos de desenvolvimento da sdl12-compat - biblioteca estática
76 Group: Development/Libraries
77 Requires: %{name}-devel = %{version}-%{release}
78 Obsoletes: SDL-static <= 1.2
81 This is package with static sdl12-compat library.
83 %description static -l es.UTF-8
84 Bibliotecas de desarrolo para linusb-compat - estatico.
86 %description static -l pl.UTF-8
87 Statyczna biblioteka sdl12-compat.
89 %description static -l pt_BR.UTF-8
90 Bibliotecas de desenvolvimento para sdl12-compat - estático.
93 %setup -q -n %{name}-release-%{version}
99 %{?with_static_libs:-DSTATICDEVEL=ON} \
104 rm -rf $RPM_BUILD_ROOT
105 %ninja_install -C build
108 rm -rf $RPM_BUILD_ROOT
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
114 %defattr(644,root,root,755)
115 %ghost %{_libdir}/libSDL-1.2.so.?
116 %attr(755,root,root) %{_libdir}/libSDL-1.2.so.1.2.*
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/sdl-config
122 %{_libdir}/libSDL-1.2.so
124 %{_libdir}/libSDLmain.a
125 %{_pkgconfigdir}/sdl12_compat.pc
126 %{_aclocaldir}/sdl.m4
128 %if %{with static_libs}
130 %defattr(644,root,root,755)