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

Resolves: rhbz#1989083
This commit is contained in:
Tom spot Callaway 2021-06-03 12:00:04 -04:00 committed by Wim Taymans
parent c087e4e7e8
commit 7e4a331aff

View File

@ -1,8 +1,7 @@
Name: SDL2
Version: 2.0.14
Release: 6%{?dist}
Release: 7%{?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 Aug 26 2021 Tom Callaway <spot@fedoraproject.org> - 2.0.14-7
- add -static Requires to -devel to make CMake stop failing on missing files (bz1965359)
* Thu Aug 26 2021 Neal Gompa <ngompa13@gmail.com> - 2.0.14-6
- Switch to CMake to build SDL2
- Build JACK support unconditionally since PipeWire-JACK exists in RHEL 9