SDL/SDL.spec

123 lines
3.5 KiB
RPMSpec
Raw Normal View History

2019-11-19 11:57:04 +08:00
Name: SDL
Summary: A cross-platform multimedia library
Version: 1.2.15
Release: 38
2019-11-19 11:57:04 +08:00
License: LGPLv2+
URL: http://www.libsdl.org/
2020-09-11 11:54:19 +08:00
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
2019-11-19 11:57:04 +08:00
Source1: SDL_config.h
Patch0: SDL-1.2.15-add_sdl_config_man.patch
2020-03-18 17:33:26 +08:00
Patch1: CVE-2019-7637.patch
Patch2: CVE-2019-7636.patch
Patch3: CVE-2019-7635_1.patch
Patch4: CVE-2019-7635_2.patch
Patch5: CVE-2019-7573_CVE-2019-7576.patch
Patch6: CVE-2019-7578.patch
Patch7: CVE-2019-7577.patch
Patch8: SDL-1.2.10-GrabNotViewable.patch
Patch9: SDL-1.2.15-const_XData32.patch
Patch10: SDL-1.2.15-ignore_insane_joystick_axis.patch
Patch11: SDL-1.2.15-no-default-backing-store.patch
Patch12: SDL-1.2.15-SDL_EnableUNICODE_drops_keyboard_events.patch
Patch13: SDL-1.2.15-vec_perm-ppc64le.patch
Patch14: CVE-2019-13616.patch
2019-11-19 11:57:04 +08:00
BuildRequires: alsa-lib-devel gdb-headless libtool
2019-11-19 11:57:04 +08:00
%description
Simple DirectMedia Layer(SDL) 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
Summary: Development files for %{name}
Provides: %{name}-static
Obsoletes: %{name}-static
Requires: %{name} = %{version}-%{release}
Requires: alsa-lib-devel mesa-libGL-devel mesa-libGLU-devel
Requires: libX11-devel libXext-devel libXrandr-devel libXrender-devel
%description devel
Libraries and header files of %{name} are all in the %{name}-devel package.
%package help
Summary: Help manual for %{name}
%description help
The %{name}-help package conatins man manual etc
%prep
%autosetup -n %{name}-%{version} -p1
2019-11-19 11:57:04 +08:00
for F in CREDITS; do
iconv -f iso8859-1 -t utf-8 < "$F" > "${F}.utf"
touch --reference "$F" "${F}.utf"
mv "${F}.utf" "$F"
done
sed -i -e 's/.*AM_PATH_ESD.*//' configure.in
cp -p %{_datadir}/automake-*/config.{sub,guess} build-scripts
%build
aclocal
libtoolize
autoconf
%configure \
--disable-video-svga \
--disable-video-ggi \
--disable-video-aalib \
--enable-sdl-dlopen \
--disable-arts \
--disable-esd \
--disable-nas \
--enable-pulseaudio-shared \
--enable-alsa \
--disable-video-ps3 \
--disable-rpath
%make_build
%install
%make_install
# Rename SDL_config.h to SDL_config-<arch>.h to avoid file conflicts on
# multilib systems and install SDL_config.h wrapper
mv %{buildroot}/%{_includedir}/SDL/SDL_config.h %{buildroot}/%{_includedir}/SDL/SDL_config-%{_arch}.h
install -m644 %{SOURCE1} %{buildroot}/%{_includedir}/SDL/SDL_config.h
rm -f %{buildroot}%{_libdir}/*.la
%files
%license COPYING
%doc BUGS CREDITS README-SDL.txt
%{_libdir}/lib*.so.*
%files devel
%doc README docs.html docs/html docs/index.html TODO WhatsNew
%{_bindir}/*-config
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/sdl.pc
%{_includedir}/SDL
%{_datadir}/aclocal/*
%{_libdir}/lib*.a
%files help
%{_mandir}/man1/*
%{_mandir}/man3/SDL*.3*
%changelog
* Wed Aug 11 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.2.15-38
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
2020-09-11 11:54:19 +08:00
* Fri Sep 11 2020 liuweibo <liuweibo10@huawei.com> - 1.2.15-37
- Fix Source0
* Wed Mar 18 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.2.15-36
2020-03-18 17:33:26 +08:00
- Type:CVE
- ID:NA
- SUG:NA
- DESC:Fix CVE-2019-13616
2020-01-16 15:31:16 +08:00
* Thu Jan 16 2020 shijian <shijian16@huawei.com> - 1.2.15-35
- Modify Spec
2019-11-19 11:57:04 +08:00
* Wed Nov 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.2.15-34
- Package init