Accepting request 769643 from multimedia:libs

OBS-URL: https://build.opensuse.org/request/show/769643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libmpeg2?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-02-06 12:18:31 +00:00 committed by Git OBS Bridge
commit f1d8817c74
2 changed files with 21 additions and 5 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Feb 3 13:58:14 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- 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 Tue Feb 20 10:56:58 UTC 2018 - bjorn.lie@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package libmpeg2 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 libname libmpeg2-0
%define libconvertname libmpeg2convert0 %define libconvertname libmpeg2convert0
@ -23,9 +26,9 @@ Name: libmpeg2
Version: 0.5.1 Version: 0.5.1
Release: 0 Release: 0
Summary: MPEG-2 Video Stream Decoder Summary: MPEG-2 Video Stream Decoder
License: GPL-2.0+ License: GPL-2.0-or-later
Group: Development/Libraries/C and C++ 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 Source: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz
Source99: baselibs.conf Source99: baselibs.conf
@ -35,9 +38,11 @@ Patch2: libmpeg2-0.5.1-global-symbol-test.patch
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
%if %{with video_out}
BuildRequires: pkgconfig(sdl) BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xv) BuildRequires: pkgconfig(xv)
%endif
%description %description
libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams. 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++ Group: Development/Libraries/C and C++
Requires: %{libconvertname} = %{version} Requires: %{libconvertname} = %{version}
Requires: %{libname} = %{version} Requires: %{libname} = %{version}
Requires: SDL-devel
%description devel %description devel
Include Files and Libraries mandatory for libmpeg2 Development Include Files and Libraries mandatory for libmpeg2 Development
@ -83,7 +87,11 @@ autoreconf -vi
%configure \ %configure \
--disable-static \ --disable-static \
--disable-dependency-tracking \ --disable-dependency-tracking \
%if %{with video_out}
--enable-sdl \ --enable-sdl \
%else
--disable-sdl \
%endif
%{nil} %{nil}
make %{?_smp_mflags} make %{?_smp_mflags}