2024-01-06 03:37:49 +01:00
|
|
|
Name: libSDL2
|
2024-01-06 03:37:56 +01:00
|
|
|
Version: 2.28.1
|
2024-01-06 03:37:49 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 03:37:49 +01:00
|
|
|
Summary: A library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 03:37:50 +01:00
|
|
|
URL: https://libsdl.org/
|
2024-01-06 03:37:49 +01:00
|
|
|
Source: http://libsdl.org/release/SDL2-%{version}.tar.gz
|
2024-01-06 03:37:49 +01:00
|
|
|
Patch0: libSDL2-2.0.4-libwayland-1.9.93.patch
|
2024-01-06 03:37:49 +01:00
|
|
|
License: zlib/libpng
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 03:37:49 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
Provides: libSDL2-2.0.so.1()(64bit)
|
|
|
|
%else
|
|
|
|
Provides: libSDL2-2.0.so.1
|
|
|
|
%endif
|
2024-01-06 03:37:49 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
|
|
|
|
%description
|
|
|
|
Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: pkg-config
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n SDL2-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 03:37:49 +01:00
|
|
|
%cmake -d build \
|
|
|
|
\
|
2024-01-06 03:37:50 +01:00
|
|
|
-DLIB_SUFFIX= \
|
2024-01-06 03:37:50 +01:00
|
|
|
%ifarch arm aarch64
|
|
|
|
-DVIDEO_RPI=on \
|
|
|
|
-DVIDEO_KMSDRM=off
|
2024-01-06 03:37:49 +01:00
|
|
|
%endif
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
# legacy workaround
|
|
|
|
ln -s libSDL2-2.0.so.0 %{buildroot}%{_libdir}/libSDL2-2.0.so.1
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
rm -f %{buildroot}%{_datadir}/licenses/SDL2/LICENSE.txt
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
#%ifarch x86_64
|
|
|
|
#mv %{buildroot}%{_prefix}/lib/cmake %{buildroot}%{_libdir}/
|
|
|
|
#%endif
|
2024-01-06 03:37:49 +01:00
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libSDL2-2.0.so.*
|
2024-01-06 03:37:50 +01:00
|
|
|
%doc LICENSE.txt
|
2024-01-06 03:37:49 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/sdl2-config
|
|
|
|
%dir %{_includedir}/SDL2
|
|
|
|
%{_includedir}/SDL2/SDL.h
|
|
|
|
%{_includedir}/SDL2/SDL_*.h
|
|
|
|
%{_includedir}/SDL2/begin_code.h
|
|
|
|
%{_includedir}/SDL2/close_code.h
|
2024-01-06 03:37:50 +01:00
|
|
|
%{_libdir}/libSDL2_test.a
|
2024-01-06 03:37:49 +01:00
|
|
|
%{_libdir}/libSDL2-2.0.so
|
|
|
|
%{_libdir}/libSDL2.so
|
|
|
|
%{_libdir}/libSDL2main.a
|
|
|
|
%{_libdir}/pkgconfig/sdl2.pc
|
|
|
|
%{_datadir}/aclocal/sdl2.m4
|
2024-01-06 03:37:49 +01:00
|
|
|
%dir %{_libdir}/cmake/SDL2
|
2024-01-06 03:37:50 +01:00
|
|
|
%{_libdir}/cmake/SDL2/SDL2*.cmake
|
2024-01-06 03:37:55 +01:00
|
|
|
%{_libdir}/cmake/SDL2/sdlfind.cmake
|
2024-01-06 03:37:49 +01:00
|
|
|
#%doc README-android.txt README-cmake.txt README-directfb.txt README-gesture.txt README-hg.txt README-ios.txt README-macosx.txt README-pandora.txt README-platforms.txt README-porting.txt README-psp.txt README-raspberrypi.txt README-SDL.txt README-touch.txt README.txt README-wince.txt
|
2024-01-06 03:37:49 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 03:37:56 +01:00
|
|
|
* Sun Jul 02 2023 Automatic Build System <autodist@mambasoft.it> 2.28.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:55 +01:00
|
|
|
* Thu Jun 29 2023 Automatic Build System <autodist@mambasoft.it> 2.28.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:54 +01:00
|
|
|
* Thu Apr 06 2023 Automatic Build System <autodist@mambasoft.it> 2.26.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:53 +01:00
|
|
|
* Tue Mar 07 2023 Automatic Build System <autodist@mambasoft.it> 2.26.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:51 +01:00
|
|
|
* Wed Feb 08 2023 Automatic Build System <autodist@mambasoft.it> 2.26.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
* Wed Jan 04 2023 Automatic Build System <autodist@mambasoft.it> 2.26.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
* Wed Nov 23 2022 Automatic Build System <autodist@mambasoft.it> 2.26.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
* Wed Nov 02 2022 Automatic Build System <autodist@mambasoft.it> 2.24.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
* Mon Aug 22 2022 Automatic Build System <autodist@mambasoft.it> 2.24.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
* Tue Apr 26 2022 Automatic Build System <autodist@mambasoft.it> 2.0.22-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
* Mon Jan 24 2022 Automatic Build System <autodist@mambasoft.it> 2.0.20-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
* Wed Dec 01 2021 Automatic Build System <autodist@mambasoft.it> 2.0.18-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
* Mon Aug 16 2021 Automatic Build System <autodist@mambasoft.it> 2.0.16-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:50 +01:00
|
|
|
* Mon Feb 22 2021 Automatic Build System <autodist@mambasoft.it> 2.0.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
* Sat May 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.12-1mamba
|
|
|
|
- update to 2.0.12
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
* Sat Sep 01 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.8-1mamba
|
|
|
|
- update to 2.0.8
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
* Fri Dec 08 2017 Automatic Build System <autodist@mambasoft.it> 2.0.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
* Sun Feb 14 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.4-2mamba
|
|
|
|
- provide libSDL2-2.0.so.1 for legacy with previous version
|
|
|
|
|
|
|
|
* Fri Jan 29 2016 Automatic Build System <autodist@mambasoft.it> 2.0.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
* Sat Jul 12 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.3-2mamba
|
|
|
|
- rebuilt to fix wrong duplicated SDL2 added
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
* Sat May 24 2014 Automatic Build System <autodist@mambasoft.it> 2.0.3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 03:37:49 +01:00
|
|
|
* Thu Nov 28 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-1mamba
|
|
|
|
- package created using the webbuild interface
|