diff --git a/libmpeg2.changes b/libmpeg2.changes index a5463bc..44b16b5 100644 --- a/libmpeg2.changes +++ b/libmpeg2.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Feb 3 13:58:14 UTC 2020 - Stefan BrĂ¼ns + +- Remove unnecessary Requires: SDL-devel from devel package. +- Disable SDL and Xv output in mpeg2dec. There a plenty of better + video players. Removes X11 and SDL1 build dependency from + library package. + ------------------------------------------------------------------- Tue Feb 20 10:56:58 UTC 2018 - bjorn.lie@gmail.com diff --git a/libmpeg2.spec b/libmpeg2.spec index ba1a629..21f0180 100644 --- a/libmpeg2.spec +++ b/libmpeg2.spec @@ -1,7 +1,7 @@ # # spec file for package libmpeg2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,10 +12,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +# Disable SDL/Xv output in mpeg2dec, there are plenty of other tools +%bcond_with video_out + %define libname libmpeg2-0 %define libconvertname libmpeg2convert0 @@ -23,9 +26,9 @@ Name: libmpeg2 Version: 0.5.1 Release: 0 Summary: MPEG-2 Video Stream Decoder -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Development/Libraries/C and C++ -Url: http://libmpeg2.sourceforge.net/ +URL: http://libmpeg2.sourceforge.net/ Source: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz Source99: baselibs.conf @@ -35,9 +38,11 @@ Patch2: libmpeg2-0.5.1-global-symbol-test.patch BuildRequires: libtool BuildRequires: pkgconfig +%if %{with video_out} BuildRequires: pkgconfig(sdl) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xv) +%endif %description libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams. @@ -61,7 +66,6 @@ Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: %{libconvertname} = %{version} Requires: %{libname} = %{version} -Requires: SDL-devel %description devel Include Files and Libraries mandatory for libmpeg2 Development @@ -83,7 +87,11 @@ autoreconf -vi %configure \ --disable-static \ --disable-dependency-tracking \ +%if %{with video_out} --enable-sdl \ +%else + --disable-sdl \ +%endif %{nil} make %{?_smp_mflags}