add -static Requires to -devel to make CMake stop failing on missing files (bz1965359)

This commit is contained in:
Tom spot Callaway 2021-06-03 12:00:04 -04:00
parent 104dfc214c
commit 3d9b542bfe

View File

@ -1,8 +1,7 @@
Name: SDL2
Version: 2.0.14
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Cross-platform multimedia library
License: zlib and MIT
URL: http://www.libsdl.org/
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
@ -62,6 +61,8 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: mesa-libEGL-devel%{?_isa}
Requires: mesa-libGLES-devel%{?_isa}
Requires: libX11-devel%{?_isa}
# Needed to keep CMake happy
Requires: %{name}-static%{?_isa} = %{version}-%{release}
%description devel
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed
@ -131,6 +132,9 @@ install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/SDL2/SDL_config.h
%{_libdir}/lib*.a
%changelog
* Thu Jun 3 2021 Tom Callaway <spot@fedoraproject.org> - 2.0.14-5
- add -static Requires to -devel to make CMake stop failing on missing files (bz1965359)
* Mon May 17 2021 Neal Gompa <ngompa13@gmail.com> - 2.0.14-4
- Switch to CMake to build SDL2
- Build JACK support unconditionally since PipeWire-JACK exists in RHEL 9