Rebase to version 1.2.12 based on RPM Fusion package

This commit is contained in:
Neal Gompa 2023-01-23 10:01:56 -05:00
parent 833c4969df
commit 58be036c26
14 changed files with 596 additions and 451 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ xine-lib-1.1.19-pruned.tar.bz2
/xine-lib-1.1.20-pruned.tar.xz /xine-lib-1.1.20-pruned.tar.xz
/xine-lib-1.1.20.1-pruned.tar.xz /xine-lib-1.1.20.1-pruned.tar.xz
/xine-lib-1.1.21-pruned.tar.xz /xine-lib-1.1.21-pruned.tar.xz
/xine-lib-1.2.12.tar.xz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: xine-lib
# $Id$
NAME := xine-lib
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

35
ffmpeg51.patch Normal file
View File

@ -0,0 +1,35 @@
diff -uNrp a/src/combined/ffmpeg/ffmpeg_compat.h b/src/combined/ffmpeg/ffmpeg_compat.h
--- a/src/combined/ffmpeg/ffmpeg_compat.h 2022-03-06 16:31:23.000000000 +0000
+++ b/src/combined/ffmpeg/ffmpeg_compat.h 2022-08-09 12:09:50.709059577 +0100
@@ -19,6 +19,8 @@
*
* Compability macros for various ffmpeg versions
*/
+#include <libavcodec/version.h>
+#include <libavutil/version.h>
#ifndef XINE_AVCODEC_COMPAT_H
#define XINE_AVCODEC_COMPAT_H
diff -uNrp a/src/combined/ffmpeg/ffmpeg_decoder.h b/src/combined/ffmpeg/ffmpeg_decoder.h
--- a/src/combined/ffmpeg/ffmpeg_decoder.h 2022-03-06 16:31:23.000000000 +0000
+++ b/src/combined/ffmpeg/ffmpeg_decoder.h 2022-08-09 12:42:16.081772933 +0100
@@ -17,6 +17,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*/
+#include <libavcodec/version.h>
+#include <libavformat/avformat.h>
#ifndef HAVE_XINE_DECODER_H
#define HAVE_XINE_DECODER_H
diff -uNrp a/src/combined/ffmpeg/input_avio.c b/src/combined/ffmpeg/input_avio.c
--- a/src/combined/ffmpeg/input_avio.c 2022-03-06 16:31:23.000000000 +0000
+++ b/src/combined/ffmpeg/input_avio.c 2022-08-09 11:33:54.527895581 +0100
@@ -28,6 +28,7 @@
#include <string.h>
#include <pthread.h>
+#include <libavutil/avutil.h>
#include <libavformat/avio.h>
#define LOG_MODULE "libavio"

20
make_xinelib_snapshot.sh Normal file
View File

@ -0,0 +1,20 @@
#!/bin/bash
# This script is intended to make a xine-lib snapshot.
# If no argument is provided, it will make a snapshot of HEAD.
# If the svn revision is provided as an argument, it will make a snapshot of
# this revision.
TMPDIR=$(mktemp -d)
pushd "$TMPDIR" || exit
echo -n "Cloning xine-lib-1.2 "
[ -n "$1" ] && echo "revision $1" || echo "HEAD"
[ -n "$1" ] && OPT="-u $1 " || OPT=""
hg clone $OPT http://hg.code.sf.net/p/xine/xine-lib-1.2 xine-lib-1.2
cd xine-lib-1.2 || exit
autoreconf -vif
./configure
make dist
popd || exit
cp -p "$TMPDIR"/xine-lib-1.2/xine-lib-1.2*.tar.xz .
rm -rf "$TMPDIR"

View File

@ -1 +1 @@
1568a378a732bd9b69d418674ad4165c xine-lib-1.1.21-pruned.tar.xz SHA512 (xine-lib-1.2.12.tar.xz) = cdc913d0c78a3a34bd6e4060040fd844f22dbc673330e30769c83e9682a46f3369af8f59bd0c759ddc601de979b13d53e7ed10c54f3b78bdc63afceb484826be

View File

@ -1,16 +0,0 @@
diff -up xine-lib-1.1.16.2/misc/xine-config.in.multilib xine-lib-1.1.16.2/misc/xine-config.in
--- xine-lib-1.1.16.2/misc/xine-config.in.multilib 2008-06-25 08:04:09.000000000 -0500
+++ xine-lib-1.1.16.2/misc/xine-config.in 2009-02-20 07:34:27.000000000 -0600
@@ -6,12 +6,6 @@ unset prefix
unset exec_prefix
unset args
-PKG_CONFIG_PATH="`cat <<'EOF'
-@XINE_PKGCONFIG_DIR@
-EOF
-`${PKG_CONFIG_PATH:+:}$PKG_CONFIG_PATH"
-export PKG_CONFIG_PATH
-
usage()
{
cat <<EOF

View File

@ -1,22 +0,0 @@
diff -up xine-lib-1.1.17/src/xine-engine/audio_out.c.avsync_hack xine-lib-1.1.17/src/xine-engine/audio_out.c
--- xine-lib-1.1.17/src/xine-engine/audio_out.c.avsync_hack 2009-11-30 19:33:30.000000000 -0600
+++ xine-lib-1.1.17/src/xine-engine/audio_out.c 2009-12-02 09:07:37.622805780 -0600
@@ -1156,8 +1156,17 @@ static void *ao_loop (void *this_gen) {
/*
* calculate gap:
+ *
+ * HACK (rwa): If we have no video stream we do not need an AV sync and so
+ * we assume a gap of 0. This seems to avoid the skips in the
+ * first seconds when playing audio-only via the "glitch-free"
+ * pulseaudio server.
*/
- gap = in_buf->vpts - hw_vpts;
+ if (in_buf && in_buf->stream && in_buf->stream->video_decoder_plugin) {
+ gap = in_buf->vpts - hw_vpts;
+ } else {
+ gap = 0;
+ }
lprintf ("hw_vpts : %" PRId64 " buffer_vpts : %" PRId64 " gap : %" PRId64 "\n",
hw_vpts, in_buf->vpts, gap);

View File

@ -1,17 +0,0 @@
diff -up xine-lib-1.1.17/autogen.sh.no_autopoint xine-lib-1.1.17/autogen.sh
--- xine-lib-1.1.17/autogen.sh.no_autopoint 2009-10-09 09:33:31.000000000 -0500
+++ xine-lib-1.1.17/autogen.sh 2009-12-02 09:15:48.534555467 -0600
@@ -229,10 +229,10 @@ run_aclocal () {
echo
fi
- echo $_echo_n " + Running autopoint: $_echo_c"
+ #echo $_echo_n " + Running autopoint: $_echo_c"
- autopoint
- echo "done."
+ #autopoint
+ #echo "done."
echo $_echo_n " + Running aclocal: $_echo_c"

View File

@ -1,32 +0,0 @@
diff -ur xine-lib-1.1.21/configure.ac xine-lib-1.1.21-samba4/configure.ac
--- xine-lib-1.1.21/configure.ac 2012-07-16 21:42:38.000000000 +0200
+++ xine-lib-1.1.21-samba4/configure.ac 2013-02-12 15:44:33.000000000 +0100
@@ -1698,12 +1698,10 @@
[with_samba=$enableval], [with_samba=yes])
if test "x$with_samba" = "xyes"; then
- AC_CHECK_LIB(smbclient, smbc_init,
- [ AC_CHECK_HEADER(libsmbclient.h,
- [ have_libsmbclient=yes
- LIBSMBCLIENT_LIBS="-lsmbclient" ],
- AC_MSG_RESULT([*** All libsmbclient dependent parts will be disabled ***]))],
- AC_MSG_RESULT([*** All libsmbclient dependent parts will be disabled ***]))
+ PKG_CHECK_MODULES([LIBSMBCLIENT], [smbclient],
+ [have_libsmbclient=yes],
+ AC_MSG_RESULT(*** All libsmbclient dependent parts will be disabled ***))
+ AC_SUBST(LIBSMBCLIENT_CFLAGS)
AC_SUBST(LIBSMBCLIENT_LIBS)
fi
AM_CONDITIONAL(HAVE_LIBSMBCLIENT, test "x$have_libsmbclient" = "xyes")
diff -ur xine-lib-1.1.21/src/input/Makefile.am xine-lib-1.1.21-samba4/src/input/Makefile.am
--- xine-lib-1.1.21/src/input/Makefile.am 2012-07-16 21:42:38.000000000 +0200
+++ xine-lib-1.1.21-samba4/src/input/Makefile.am 2013-02-12 15:46:45.000000000 +0100
@@ -150,7 +150,7 @@
xineplug_inp_smb_la_SOURCES = input_smb.c
xineplug_inp_smb_la_LIBADD = $(XINE_LIB) $(LIBSMBCLIENT_LIBS) $(LTLIBINTL)
-xineplug_inp_smb_la_CFLAGS = $(VISIBILITY_FLAG) $(AM_CFLAGS)
+xineplug_inp_smb_la_CFLAGS = $(VISIBILITY_FLAG) $(AM_CFLAGS) $(LIBSMBCLIENT_CFLAGS)
xineplug_inp_smb_la_LDFLAGS = $(xineplug_ldflags)
xineplug_inp_pvr_la_SOURCES = input_pvr.c

View File

@ -1,11 +0,0 @@
--- xine-lib-1.1.4/m4/optimizations.m4~ 2006-06-17 18:20:56.000000000 +0300
+++ xine-lib-1.1.4/m4/optimizations.m4 2007-01-30 23:03:27.000000000 +0200
@@ -107,7 +107,7 @@
DEBUG_CFLAGS="-O $DEBUG_CFLAGS"
- if test x"$sarchopt" != "xno"; then
+ if false ; then
archopt_val=
case "$host_or_hostalias" in

View File

@ -0,0 +1,40 @@
# HG changeset patch
# User Petri Hintukainen <phintuka@users.sourceforge.net>
# Date 1648142359 -7200
# Thu Mar 24 19:19:19 2022 +0200
# Node ID 97248a71021428baa49e2b2af34f566a3257452a
# Parent b044102cc61810eec217d3911028ec18f87408cc
dav1d 1.0.0 support
https://sourceforge.net/p/xine/tickets/11/
diff -r b044102cc618 -r 97248a710214 ChangeLog
--- a/ChangeLog Thu Mar 17 14:05:08 2022 +0200
+++ b/ChangeLog Thu Mar 24 19:19:19 2022 +0200
@@ -1,3 +1,5 @@
+ * Add dav1d 1.0.0 support.
+
xine-lib (1.2.12) 2022-03-09
* Add string tree library (generic info parser).
* Add OpenSL ES audio output plugin.
diff -r b044102cc618 -r 97248a710214 src/video_dec/dav1d.c
--- a/src/video_dec/dav1d.c Thu Mar 17 14:05:08 2022 +0200
+++ b/src/video_dec/dav1d.c Thu Mar 24 19:19:19 2022 +0200
@@ -544,11 +544,17 @@
/* multithreading */
ncpu = xine_cpu_count();
+#if DAV1D_API_VERSION_MAJOR > 5
+ settings.n_threads = ncpu + 1;
+ xprintf(stream->xine, XINE_VERBOSITY_DEBUG, LOG_MODULE ": "
+ "Using %d threads\n", settings.n_threads);
+#else
settings.n_frame_threads = (ncpu > 8) ? 4 : (ncpu < 2) ? 1 : ncpu/2;
settings.n_tile_threads = MAX(1, ncpu - settings.n_frame_threads + 1);
xprintf(stream->xine, XINE_VERBOSITY_DEBUG, LOG_MODULE ": "
"Using %d frame threads, %d tile threads\n",
settings.n_frame_threads, settings.n_tile_threads);
+#endif
/* dri frame allocator */
settings.allocator.cookie = this;

View File

@ -0,0 +1,22 @@
# HG changeset patch
# User Xavier Bachelot <xavier@bachelot.org>
# Date 1646916446 -3600
# Thu Mar 10 13:47:26 2022 +0100
# Node ID 6488085f778dd8115562ca308e2a60b502954dfc
# Parent 41217d6440d1f52478180d7e477aa7e7df953507
Fix build with older libcaca
This was introduced in 3f383e
diff -r 41217d6440d1 -r 6488085f778d src/video_out/video_out_caca.c
--- a/src/video_out/video_out_caca.c Wed Mar 09 15:12:14 2022 +0200
+++ b/src/video_out/video_out_caca.c Thu Mar 10 13:47:26 2022 +0100
@@ -44,7 +44,7 @@
# define caca_get_canvas_height cucul_get_canvas_height
# define caca_free_canvas cucul_free_canvas
# define caca_dither_t cucul_dither_t
-# define caca_create_dither define cucul_create_dither
+# define caca_create_dither cucul_create_dither
# define caca_dither_bitmap cucul_dither_bitmap
# define caca_free_dither cucul_free_dither
#endif

View File

@ -1,90 +0,0 @@
#!/bin/bash
if [ -z "$1" -o $# -ne 1 ]; then
echo "Usage: $0 <xine-version>"
exit 2
fi
version=$1
tarball="xine-lib-$version.tar.xz"
dir="xine-lib-$version"
modtarball="xine-lib-$version-pruned.tar.xz"
if [ ! -f $tarball ]; then
echo "Can't find $tarball !"
exit 1
fi
echo "Uncompressing $tarball..."
rm -rf $dir
tar -xJf $tarball
cd $dir
rmpluglib()
{
echo "removing src/$1/$2..."
rm -rf src/$1/$2
sed -i -e "s/SUBDIRS = \(.*\)$2\(.*\)/SUBDIRS = \1\2/g" src/$1/Makefile.am
sed -i -e "/^src\/$1\/$2/d" configure.ac
}
# Main libraries
for remove in libfaad libffmpeg libmad libmpeg2 libmpeg2new dxr3 liba52 libdts; do
echo "removing src/$remove..."
rm -rf src/$remove
sed -i -e "/$remove/d" src/Makefile.am
sed -i -e "/^src\/$remove/d" configure.ac
done
# Input plugin libraries
for remove in vcd; do
rmpluglib input vcd
done
for remove in ffmpeg; do
rmpluglib combined ffmpeg
done
# Input plugins
# DVD reading (dvd input plugin) has now been in Fedora for a while (libdvdread,
# libdvdnav), the xine-lib code only wraps those libraries. (Decrypting and
# decoding are of course still separate and forbidden in Fedora.)
for p in vcd mms; do
echo "removing $p input plugin..."
# Remove sources
for sourcefile in `awk '/^xineplug_inp_'$p'_la_SOURCES/ { $1=""; $2=""; print $0}' src/input/Makefile.am`; do
if [ "`grep -v '^EXTRA_DIST = ' src/input/Makefile.am | grep -c $sourcefile`" -le 1 ]; then # if this file is only used for this plugin
rm -f src/input/$sourcefile
fi
done
# Remove from Makefile
sed -i -e "/xineplug_inp_$p/d" src/input/Makefile.am
done
# Demuxers
# These are ok now ( http://bugzilla.redhat.com/213597 )
#for p in mpeg mpeg_block mpeg_ts mpeg_elem mpeg_pes yuv4mpeg2; do
# echo "removing $p demuxer..."
# [ -f src/demuxers/demux_$p.c ] && rm -f src/demuxers/demux_$p.c
# sed -i -e "/xineplug_dmx_$p/d" src/demuxers/Makefile.am
#done
# Postprocessors
echo "removing planar and deinterlace postprocessors..."
sed -i -e 's/deinterlace //g' src/post/Makefile.am # see comments in speedy.c
sed -i -e 's/planar //g' src/post/Makefile.am # requires libpostproc
sed -i -e '/post\/\(deinterlace\|planar\)/d' configure.ac
rm -rf src/post/{deinterlace,planar}
# NSF decoder
echo "removing NSF decoder..."
rm -rf src/libxineadec/{nosefart,nsf.c}
sed -i -e '/^xineplug_decode_nsf_la/,/^\s*$/d' \
-e /xineplug_decode_nsf/d \
-e 's/ nosefart//' \
src/libxineadec/Makefile.am
sed -i -e '/nosefart\/Makefile/d' configure.ac
# Patches for forbidden libraries
rm -fv misc/lib*.patch win32/scripts/*.patch
# All clean !
cd ..
echo "Generating $modtarball..."
tar -cJf $modtarball $dir
rm -rf $dir

View File

@ -1,252 +1,194 @@
# TODO, sometime, maybe: %define _legacy_common_support 1
# - libstk: http://www.libstk.net/ - probably not, see 1.1.5 ChangeLog %global plugin_abi 2.10
# - drop the opengl video out plugin? %global codecdir %{_libdir}/codecs
%define plugin_abi 1.30 %if 0%{?el9}
%define codecdir %{_libdir}/codecs # RHBZ 2031269 / 2031744
%global _without_dvdnav 1
# RHBZ 2031270
%global _without_nfs 1
%endif
# Not permitted in Fedora, ffmpeg covers this anyway
%global _without_faad2 1
%global _without_fame 1
# Pending inclusion to Fedora
%global _without_dca 1
%global _without_vcd 1
%ifarch %{ix86} %ifarch %{ix86}
%define have_vidix 1 %global have_vidix 1
%else %else
%define have_vidix 0 %global have_vidix 0
%endif # ix86
%ifarch %{arm}
%define _without_directfb 1
%endif %endif
%if 0%{?fedora} > 14 #global snapshot 1
%define _disable_v4l1 1 #global date 20220307
%endif #global revision 15076
%if 0%{?fedora} > 16
%define _without_esound 1
%endif
%if 0%{?fedora} > 16
%define bluray 1
%endif
%if 0%{?fedora} > 19
%define _without_directfb 1
%endif
Summary: A multimedia engine Summary: A multimedia engine
Name: xine-lib Name: xine-lib
Version: 1.1.21 Version: 1.2.12
Release: 10%{?dist} Release: 10%{?snapshot:.%{date}hg%{revision}}%{?dist}
License: GPLv2+ License: GPL-2.0-or-later
Group: System Environment/Libraries URL: https://www.xine-project.org/
URL: http://www.xine-project.org/ %if ! 0%{?snapshot}
# The tarball is generated from the upstream tarball using Source0: https://downloads.sourceforge.net/xine/xine-lib-%{version}.tar.xz
# the script in SOURCE1. It prunes potentially patented code %else
#Source0: http://downloads.sourceforge.net/xine/xine-lib-%{version}.tar.xz Source0: xine-lib-%{version}-%{date}hg%{revision}.tar.xz
Source0: xine-lib-%{version}-pruned.tar.xz %endif
Source1: xine-lib-cleanup-sources.sh # Script to make a snapshot
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source1: make_xinelib_snapshot.sh
Patch0: xine-lib-1.1.19-no_autopoint.patch # https://sourceforge.net/p/xine/xine-lib-1.2/ci/928cdea835e656d6e1411c767eace0d10b6cc452/
Patch1: xine-lib-1.1.4-optflags.patch Patch1: xine-lib-1.2.12-fix_older_libcaca.patch
# http://bugzilla.redhat.com/470568 # https://sourceforge.net/p/xine/xine-lib-1.2/ci/97248a71021428baa49e2b2af34f566a3257452a/
Patch2: xine-lib-1.1.17-avsync_hack.patch Patch2: xine-lib-1.2.12-dav1d_100_support.patch
# http://bugzilla.redhat.com/477226 Patch3: ffmpeg51.patch
Patch3: xine-lib-1.1.16.2-multilib.patch
# find the Samba 4 libsmbclient.h using pkg-config (#909825)
Patch4: xine-lib-1.1.21-samba4.patch
Provides: xine-lib(plugin-abi) = %{plugin_abi} Provides: xine-lib(plugin-abi) = %{plugin_abi}
%{?_isa:Provides: xine-lib(plugin-abi)%{?_isa} = %{plugin_abi}} Provides: xine-lib(plugin-abi)%{?_isa} = %{plugin_abi}
# DVD plugin moved from there Obsoletes: xine-lib-extras-freeworld < 1.1.21-10
Conflicts: xine-lib-extras-freeworld < 1.1.21-3 Provides: xine-lib-extras-freeworld = %{version}-%{release}
BuildRequires: autoconf automake libtool BuildRequires: a52dec-devel
# X11 BuildRequires: aalib-devel
BuildRequires: libX11-devel BuildRequires: alsa-lib-devel
BuildRequires: libXv-devel %{!?_without_faad2:BuildRequires: faad2-devel}
BuildRequires: libXinerama-devel BuildRequires: ffmpeg-free-devel
BuildRequires: libXvMC-devel
BuildRequires: libGLU-devel
BuildRequires: libv4l-devel
BuildRequires: libxcb-devel
# Video
BuildRequires: SDL-devel
BuildRequires: libtheora-devel
BuildRequires: libmng-devel
BuildRequires: aalib-devel >= 1.4
BuildRequires: libcaca-devel >= 0.99-0.5.beta14
%if 0%{!?_without_directfb:1}
BuildRequires: directfb-devel
%endif # directfb
BuildRequires: ImageMagick-devel >= 6.2.4.6-1
%if 0%{?_with_freetype:1}
BuildRequires: fontconfig-devel
%endif # freetype
# Audio
BuildRequires: alsa-lib-devel >= 0.9.0
%if 0%{!?_without_esound:1}
BuildRequires: esound-devel
%endif # esound
BuildRequires: flac-devel BuildRequires: flac-devel
BuildRequires: jack-audio-connection-kit-devel BuildRequires: fontconfig-devel
BuildRequires: gcc
BuildRequires: gettext-devel
BuildRequires: gnutls-devel
BuildRequires: gtk2-devel
%{!?_without_imagemagick:BuildRequires: ImageMagick-devel}
BuildRequires: pipewire-jack-audio-connection-kit-devel
BuildRequires: libaom-devel >= 1.0.0
BuildRequires: libbluray-devel >= 0.2.1
BuildRequires: libcaca-devel
BuildRequires: libcdio-devel
BuildRequires: libdav1d-devel >= 0.3.1
%{!?_without_dca:BuildRequires: libdca-devel}
%{!?_without_dvdnav:BuildRequires: libdvdnav-devel}
BuildRequires: libdvdread-devel
%{!?_without_fame:BuildRequires: libfame-devel}
BuildRequires: libgcrypt-devel
BuildRequires: libGLU-devel
BuildRequires: libmad-devel
BuildRequires: libmng-devel
BuildRequires: libmodplug-devel BuildRequires: libmodplug-devel
BuildRequires: libmpcdec-devel BuildRequires: libmpcdec-devel
BuildRequires: libvorbis-devel %{!?_without_nfs:BuildRequires: libnfs-devel}
BuildRequires: speex-devel BuildRequires: libpng-devel >= 1.6.0
BuildRequires: wavpack-devel
# CDs
BuildRequires: libcdio-devel
# Other
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libpulse)
BuildRequires: gtk2-devel
BuildRequires: libsmbclient-devel BuildRequires: libsmbclient-devel
BuildRequires: libdvdnav-devel BuildRequires: libssh2-devel
BuildRequires: libdvdread-devel BuildRequires: libtheora-devel
%if 0%{?bluray} BuildRequires: libtool
BuildRequires: libbluray-devel BuildRequires: libv4l-devel
%endif BuildRequires: libva-devel
BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel
BuildRequires: libvpx-devel
BuildRequires: libX11-devel
BuildRequires: libxcb-devel
BuildRequires: libXext-devel
BuildRequires: libXinerama-devel
BuildRequires: libXt-devel
BuildRequires: libXv-devel
BuildRequires: mesa-libEGL-devel
BuildRequires: openssl-devel >= 1.0.2
BuildRequires: pkgconfig(libpulse)
BuildRequires: SDL-devel
BuildRequires: speex-devel
%{!?_without_vcd:BuildRequires: vcdimager-devel}
BuildRequires: wavpack-devel
BuildRequires: wayland-devel
# Dropped in Fedora 9
Obsoletes: xine-lib-arts < %{version}-%{release}
# Included in main package since Fedora 12
Obsoletes: xine-lib-pulseaudio < 1.1.16.3-5
Provides: xine-lib-pulseaudio = %{version}-%{release}
%description %description
This package contains the Xine library. It can be used to play back This package contains the Xine library. It can be used to play back
various media, decode multimedia files from local disk drives, and display various media, decode multimedia files from local disk drives, and display
multimedia streamed over the Internet. It interprets many of the most multimedia streamed over the Internet. It interprets many of the most
common multimedia formats available - and some uncommon formats, too. common multimedia formats available - and some uncommon formats, too.
%package devel %package devel
Summary: Xine library development files Summary: Xine library development files
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig Requires: zlib-devel%{?_isa}
Requires: zlib-devel
%description devel %description devel
This package contains development files for %{name}. This package contains development files for %{name}.
%package extras %package extras
Summary: Additional plugins for %{name} Summary: Additional plugins for %{name}
Group: System Environment/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
#Requires: xine-lib(plugin-abi) = %{plugin_abi}
%description extras %description extras
This package contains extra plugins for %{name}: This package contains extra plugins for %{name}:
%if 0%{!?_without_esound:1}
- EsounD
%endif # esound
- JACK - JACK
- GDK-Pixbuf - GDK-Pixbuf
- SMB - SMB
- SDL - SDL
- AA-lib - AA-lib
- Libcaca - Libcaca
- Image decoding %{!?_without_imagemagick: - Image decoding}
%if 0%{!?_without_directfb:1}
- DirectFB output
%endif # directfb
%prep %prep
%setup -q %autosetup -p1 %{?snapshot:-n %{name}-%{version}-%{date}hg%{revision}}
%patch0 -p1 -b .no_autopoint
# extra work for to omit old libtool-related crud
rm -f configure ltmain.sh libtool m4/libtool.m4 m4/ltoptions.m4 m4/ltversion.m4
%patch1 -p1 -b .optflags
%patch2 -p1 -b .avsync_hack
%patch3 -p1 -b .multilib
%patch4 -p1 -b .samba4
./autogen.sh noconfig
%build %build
export FFMPEG_CFLAGS=" " FFMPEG_LIBS=" " autoreconf -fiv
export FFMPEG_POSTPROC_CFLAGS=" " FFMPEG_POSTPROC_LIBS=" "
export FFMPEG_UTIL_CFLAGS=" " FFMPEG_UTIL_LIBS=" "
export SDL_CFLAGS="$(sdl-config --cflags)" SDL_LIBS="$(sdl-config --libs)"
# Keep list of options in mostly the same order as ./configure --help. # Keep list of options in mostly the same order as ./configure --help.
%configure \ %configure \
--disable-dependency-tracking \ --disable-dependency-tracking \
--enable-ipv6 \ --enable-ipv6 \
%if 0%{!?_without_directfb:1} --enable-v4l2 \
--enable-directfb \
%endif # directfb
--enable-v4l \
--enable-libv4l \ --enable-libv4l \
--enable-xvmc \
--disable-gnomevfs \ --disable-gnomevfs \
--disable-a52dec \ %{?_without_faad2:--disable-faad} \
--disable-mad \ %{?_without_dca:--disable-dts} \
--disable-vcd \
--disable-asf \
--disable-faad \
%if 0%{?_with_freetype:1}
%if 0%{?_with_antialiasing:1}
--enable-antialiasing \ --enable-antialiasing \
%endif # antialiasing
--with-freetype \ --with-freetype \
--with-fontconfig \ --with-fontconfig \
%endif # freetype
--with-caca \ --with-caca \
--with-external-ffmpeg \ %{!?_without_dvdnav:--with-external-dvdnav} \
--with-external-dvdnav \
--with-xv-path=%{_libdir} \ --with-xv-path=%{_libdir} \
--with-libflac \ --with-libflac \
--with-external-libmpcdec \
--without-arts \
%if 0%{?_without_esound:1}
--without-esound \ --without-esound \
%endif
--with-wavpack \ --with-wavpack \
--with-real-codecs-path=%{codecdir} \ --with-real-codecs-path=%{codecdir} \
--with-w32-path=%{codecdir} --with-w32-path=%{codecdir}
make %{?_smp_mflags} # Remove rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install %install
rm -rf $RPM_BUILD_ROOT __docs %make_install
make install DESTDIR=$RPM_BUILD_ROOT %find_lang libxine2
%find_lang libxine1 mv %{buildroot}%{_docdir}/xine-lib __docs
cp -pR $RPM_BUILD_ROOT%{_docdir}/xine-lib __docs
rm -rf $RPM_BUILD_ROOT%{_docdir}/xine-lib
# Removing useless files # Removing useless files
rm -Rf $RPM_BUILD_ROOT%{_libdir}/libxine.la __docs/README \ rm -Rf %{buildroot}%{_libdir}/libxine*.la __docs/README \
__docs/README.{freebsd,irix,solaris,MINGWCROSS,WIN32} \ __docs/README.{freebsd,irix,macosx,solaris,MINGWCROSS,WIN32}
__docs/README.{dxr3,network_dvd}
# Directory for binary codecs # Directory for binary codecs
mkdir -p $RPM_BUILD_ROOT%{codecdir} mkdir -p %{buildroot}%{codecdir}
# unpackaged files
%if 0%{?_disable_v4l1:1}
rm -fv $RPM_BUILD_ROOT%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_pvr.so
rm -fv $RPM_BUILD_ROOT%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_v4l.so
%endif
%clean %files -f libxine2.lang
rm -rf $RPM_BUILD_ROOT %doc AUTHORS CREDITS ChangeLog* README TODO
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f libxine1.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING.LIB CREDITS ChangeLog* README TODO
%doc __docs/README.* __docs/faq.* %doc __docs/README.* __docs/faq.*
%license COPYING COPYING.LIB
%dir %{codecdir}/ %dir %{codecdir}/
%{_datadir}/xine/ %{_datadir}/xine-lib/
%{_libdir}/libxine.so.* %{_libdir}/libxine.so.2*
%{_mandir}/man5/xine.5* %{_mandir}/man5/xine.5*
%dir %{_libdir}/xine/ %dir %{_libdir}/xine/
%dir %{_libdir}/xine/plugins/ %dir %{_libdir}/xine/plugins/
@ -259,7 +201,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_audio_filters.so %{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_audio_filters.so
%{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_goom.so %{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_goom.so
%{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_mosaico.so %{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_mosaico.so
%{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_planar.so
%{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_switch.so %{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_switch.so
%{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_tvtime.so
%{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_visualizations.so %{_libdir}/xine/plugins/%{plugin_abi}/post/xineplug_post_visualizations.so
%if %{have_vidix} %if %{have_vidix}
%dir %{_libdir}/xine/plugins/%{plugin_abi}/vidix/ %dir %{_libdir}/xine/plugins/%{plugin_abi}/vidix/
@ -275,112 +219,104 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/xine/plugins/%{plugin_abi}/vidix/savage_vid.so %{_libdir}/xine/plugins/%{plugin_abi}/vidix/savage_vid.so
%{_libdir}/xine/plugins/%{plugin_abi}/vidix/sis_vid.so %{_libdir}/xine/plugins/%{plugin_abi}/vidix/sis_vid.so
%{_libdir}/xine/plugins/%{plugin_abi}/vidix/unichrome_vid.so %{_libdir}/xine/plugins/%{plugin_abi}/vidix/unichrome_vid.so
%endif # vidix %endif
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_alsa.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_alsa.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_file.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_none.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_oss.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_oss.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_pulseaudio.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_pulseaudio.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_bitplane.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_a52.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_dav1d.so
%{!?_without_dca:%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_dts.so}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_dvaudio.so
%{!?_without_faad2:%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_faad.so}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_ff.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_gsm610.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_gsm610.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_libaom.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_libjpeg.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_libpng.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_libvpx.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_lpcm.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_lpcm.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_mad.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_mpc.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_mpc.so
%ifarch %{ix86} %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_mpeg2.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_qt.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_rawvideo.so
%endif # ix86
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_real.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_real.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_rgb.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_speex.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spu.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spu.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spucc.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spucc.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spucmml.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spucmml.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spudvb.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spudvb.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spuhdmv.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_spuhdmv.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_sputext.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_to_spdif.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_theora.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_vdpau.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_vorbis.so
%ifarch %{ix86} %ifarch %{ix86}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_w32dll.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_w32dll.so
%endif # ix86
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_yuv.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_audio.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_avi.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_fli.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_flv.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_games.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_iff.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_image.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_matroska.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_mng.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_mpeg.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_mpeg_block.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_mpeg_elem.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_mpeg_pes.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_mpeg_ts.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_nsv.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_ogg.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_pva.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_qt.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_rawdv.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_real.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_slave.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_sputext.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_yuv_frames.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_yuv4mpeg2.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_flac.so
%if 0%{?bluray}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_bluray.so
%endif %endif
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_asf.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_audio.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_fli.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_games.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_image.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_mng.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_modplug.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_nsv.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_playlist.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_pva.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_slave.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dmx_video.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_dxr3.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_flac.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_hw_frame_vaapi.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_bluray.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_cdda.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_cdda.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_crypto.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_dvb.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_dvb.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_dvd.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_dvd.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_file.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_mms.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_http.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_network.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_net.so %{!?_without_nfs:%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_nfs.so}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_pnm.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_rtp.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_rtsp.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_stdin_fifo.so
%if ! 0%{?_disable_v4l1:1}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_pvr.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_pvr.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_v4l.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_rtp.so
%endif %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_ssh.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_v4l2.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_v4l2.so
%{!?_without_vcd:%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_vcd.so}
%{!?_without_vcd:%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_vcdo.so}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_nsf.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_sputext.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_tls_gnutls.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_tls_openssl.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_va_display_drm.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_va_display_glx.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_va_display_wl.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_va_display_x11.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vdr.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_fb.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_fb.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_none.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_gl_glx.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_gl_egl_x11.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_gl_egl_wl.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_opengl.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_opengl.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_opengl2.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_raw.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_raw.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_syncfb.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_vaapi.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_vdpau.so
%if %{have_vidix} %if %{have_vidix}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_vidix.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_vidix.so
%endif # vidix %endif
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xcbshm.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xcbshm.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xcbxv.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xcbxv.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xshm.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xshm.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xv.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xv.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xvmc.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xxmc.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_wavpack.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_wavpack.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_xiph.so
%files extras %files extras
%defattr(-,root,root,-)
%if 0%{!?_without_esound:1}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_esd.so
%endif # esound
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_jack.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_jack.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_gdk_pixbuf.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_gdk_pixbuf.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_image.so %{!?_without_imagemagick:%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_image.so}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_smb.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_smb.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_aa.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_aa.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_caca.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_caca.so
%if 0%{!?_without_directfb:1}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_directfb.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xdirectfb.so
%endif # directfb
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_sdl.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_sdl.so
%files devel %files devel
%defattr(-,root,root,-)
%doc __docs/hackersguide/* %doc __docs/hackersguide/*
%{_bindir}/xine-config %{_bindir}/xine-config
%{_bindir}/xine-list* %{_bindir}/xine-list*
@ -394,6 +330,306 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Mon Jan 23 2023 Neal Gompa <ngompa@fedoraproject.org> - 1.2.12-10
- Adapt for Fedora
* Sun Dec 04 2022 Sérgio Basto <sergio@serjux.com> - 1.2.12-9
- Rebuild for libjxl on el9
* Mon Sep 26 2022 Leigh Scott <leigh123linux@gmail.com> - 1.2.12-8
- Rebuild for new flac
* Sun Sep 04 2022 Leigh Scott <leigh123linux@gmail.com> - 1.2.12-7
- Add requires ffmpeg-libs
* Mon Aug 08 2022 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.2.12-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
* Sat Jul 23 2022 Leigh Scott <leigh123linux@gmail.com> - 1.2.12-5
- Rebuild for new ffmpeg
* Thu Jun 23 2022 Robert-André Mauchin <zebob.m@gmail.com> - 1.2.12-4
- Rebuilt for new AOM, dav1d and jpegxl
* Fri Mar 25 2022 Xavier Bachelot <xavier@bachelot.org> - 1.2.12-3
- Add patch for dav1d 1.0.0 support
* Thu Mar 10 2022 Xavier Bachelot <xavier@bachelot.org> - 1.2.12-2
- Fix build on EL7 and EL8
* Thu Mar 10 2022 Xavier Bachelot <xavier@bachelot.org> - 1.2.12-1
- Update to 1.2.12
* Tue Mar 08 2022 Xavier Bachelot <xavier@bachelot.org> 1.2.11-14.20220307hg15076
- Specfile clean up
- Update xine-lib snapshot
- Add support for EL9
* Sat Feb 05 2022 Leigh Scott <leigh123linux@gmail.com> - 1.2.11-13.20220131hg15030
- Update to xine-lib snapshot.
* Wed Jan 19 2022 Nicolas Chauvet <kwizart@gmail.com> - 1.2.11-12
- Rebuilt
* Sat Dec 11 2021 Sérgio Basto <sergio@serjux.com> - 1.2.11-11
- Rebuilt for new ImageMagick on F34
* Thu Dec 02 2021 Sérgio Basto <sergio@serjux.com> - 1.2.11-10
- Rebuilt for libjxl-0.6.1
* Mon Nov 22 2021 Sérgio Basto <sergio@serjux.com> - 1.2.11-9
- Rebuilt for new ImageMagick
* Tue Aug 03 2021 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.2.11-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sun Jun 13 2021 Robert-André Mauchin <zebob.m@gmail.com> - 1.2.11-7
- Rebuild for new aom
* Thu Feb 04 2021 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.2.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Dec 31 2020 Leigh Scott <leigh123linux@gmail.com> - 1.2.11-5
- Rebuilt for new ffmpeg snapshot
* Mon Dec 14 2020 Leigh Scott <leigh123linux@gmail.com> - 1.2.11-4
- Actually do the dav1d rebuild
* Mon Dec 14 2020 Robert-André Mauchin <zebob.m@gmail.com> 1.2.11-3
- Rebuild for dav1d SONAME bump
* Fri Dec 11 2020 Xavier Bachelot <xavier@bachelot.org> 1.2.11-2
- Drop support for EOL distros
* Tue Dec 08 2020 Xavier Bachelot <xavier@bachelot.org> 1.2.11-1
- Update to 1.2.11
* Wed Oct 21 2020 Leigh Scott <leigh123linux@gmail.com> - 1.2.10-12
- Rebuild for new libdvdread
* Sat Oct 17 2020 Xavier Bachelot <xavier@bachelot.org> 1.2.10-11
- Re-enable libssh2 for EL8 and F31+
- Fix build if libssh2 support is disabled but libssh2-devel is installed (RFBZ#5796)
* Wed Aug 19 2020 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.2.10-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 08 2020 Leigh Scott <leigh123linux@gmail.com> - 1.2.10-9
- Rebuilt
* Wed Jul 01 2020 Leigh Scott <leigh123linux@gmail.com> - 1.2.10-8
- Rebuilt
* Sun May 24 2020 Leigh Scott <leigh123linux@gmail.com> - 1.2.10-7
- Rebuild for dav1d SONAME bump
* Wed May 20 2020 Sérgio Basto <sergio@serjux.com> - 1.2.10-6
- Rebuild for ImageMagick on el7
* Fri Apr 10 2020 Leigh Scott <leigh123linux@gmail.com> - 1.2.10-5
- Rebuild for new libcdio version
* Sat Feb 22 2020 RPM Fusion Release Engineering <leigh123linux@googlemail.com> - 1.2.10-4
- Rebuild for ffmpeg-4.3 git
* Wed Feb 05 2020 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.2.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Jan 18 2020 Xavier Bachelot <xavier@bachelot.org> 1.2.10-2
- Disable libssh2 for EL8.
* Fri Dec 13 2019 Xavier Bachelot <xavier@bachelot.org> 1.2.10-1
- Update to 1.2.10.
- Enable aom for EL7.
- Enable libcaca and ImageMagick for EL8.
* Fri Nov 15 2019 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> - 1.2.9-22.20190831hg14506
- rebuild for libdvdread ABI bump
* Thu Oct 24 2019 Leigh Scott <leigh123linux@gmail.com> - 1.2.9-21.20190831hg14506
- Rebuild for dav1d SONAME bump
* Wed Sep 11 2019 Leigh Scott <leigh123linux@googlemail.com> - 1.2.9-20.20190831hg14506
- Rebuild for new libnfs version
* Tue Sep 03 2019 Xavier Bachelot <xavier@bachelot.org> 1.2.9-19.20190831hg14506
- Fix 32 bits build.
* Tue Sep 03 2019 Xavier Bachelot <xavier@bachelot.org> 1.2.9-18.20190831hg14506
- Update xine-lib snapshot.
- Enable libpng based video decoder.
- Add XvMC support back.
- Enable libdav1d based video decoder (F31+).
- Rework features enablement.
- Disable currently missing features on EL8.
* Wed Aug 21 2019 Leigh Scott <leigh123linux@gmail.com> - 1.2.9-17.20190525hg14404
- Rebuild for aom SONAME bump
- Drop XvMC support (rfbz #5328)
* Tue Aug 06 2019 Leigh Scott <leigh123linux@gmail.com> - 1.2.9-16.20190525hg14404
- Rebuild for new ffmpeg version
* Mon May 27 2019 Xavier Bachelot <xavier@bachelot.org> 1.2.9-15.20190525hg14404
- Update xine-lib snapshot.
- Remove now unneeded 32 bits build fix.
- Cosmetic spec cleanup.
- Remove unneeded SDL build flags setting.
* Fri May 17 2019 Xavier Bachelot <xavier@bachelot.org> 1.2.9-14.20190516hg14396
- Update to xine-lib snapshot.
- Add script to make a snapshot.
- Enable EGL support.
- Enable mpeg2 encoding support for dxr3.
- Don't glob soname.
- Clean up and sort BuildRequires.
- Enable fontconfig support.
- No NFS support on EL6.
- Add patch to revert gettext version bump on EL6.
- No wayland nor openssl support on EL6.
* Tue Mar 05 2019 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.2.9-13.20181129hg14263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Dec 10 2018 Xavier Bachelot <xavier@bachelot.org> 1.2.9-12.20181129hg14263
- Update to xine-lib snapshot.
- Enable SSH and NFS input plugins.
- Enable TLS support.
- Enable AV1 support through libaom (Fedora only).
- Add support for RPI.
* Thu Dec 06 2018 Antonio Trande <sagitter@fedoraproject.org> - 1.2.9-11
- Rebuild for ffmpeg-3.* on el7
* Wed Aug 29 2018 Xavier Bachelot <xavier@bachelot.org> 1.2.9-10.1
- Rebuilt for ImageMagick soname bump.
* Sun Aug 19 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.2.9-9
- Rebuilt for Fedora 29 Mass Rebuild binutils issue
* Fri Jul 27 2018 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.2.9-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jul 20 2018 Xavier Bachelot <xavier@bachelot.org> 1.2.9-7
- Add BR: gcc.
* Thu Mar 08 2018 RPM Fusion Release Engineering <leigh123linux@googlemail.com> - 1.2.9-6
- Rebuilt for new ffmpeg snapshot
* Thu Mar 01 2018 RPM Fusion Release Engineering <leigh123linux@googlemail.com> - 1.2.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Jan 27 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.2.9-4
- Rebuild for new libcdio, libvpx and vcdimager
* Thu Jan 18 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.2.9-3
- Rebuilt for ffmpeg-3.5 git
* Mon Jan 15 2018 Nicolas Chauvet <kwizart@gmail.com> - 1.2.9-2
- Rebuilt for VA-API 1.0.0
* Fri Jan 12 2018 Xavier Bachelot <xavier@bachelot.org> 1.2.9-1
- Update to 1.2.9.
* Sun Aug 27 2017 Nicolas Chauvet <kwizart@gmail.com> - 1.2.8-4
- Rebuilt for ImageMagick
* Sat Apr 29 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.2.8-3
- Rebuild for ffmpeg update
* Tue Mar 21 2017 RPM Fusion Release Engineering <kwizart@rpmfusion.org> - 1.2.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Feb 21 2017 Xavier Bachelot <xavier@bachelot.org> 1.2.8-1
- Update to 1.2.8.
- All patches are now upstream, remove them.
- Use %%license.
- Fix building on EL6.
- Drop now obsolete BR: gawk and sed.
* Fri Nov 18 2016 Adrian Reber <adrian@lisas.de> - 1.2.6-14
- Rebuilt for libcdio-0.94
* Sat Jul 30 2016 Julian Sikorski <belegdol@fedoraproject.org> - 1.2.6-13
- Rebuilt for ffmpeg-3.1.1
* Mon Jul 25 2016 Sérgio Basto <sergio@serjux.com> - 1.2.6-12
- Fix build with libxcb-1.12, https://bugs.xine-project.org/show_bug.cgi?id=573
* Fri Jul 08 2016 Sérgio Basto <sergio@serjux.com> - 1.2.6-11
- Build again with vcd support
* Fri Jul 01 2016 Sérgio Basto <sergio@serjux.com> - 1.2.6-10
- Remove BR: vcdimager-devel and disable vcd; package retired in F24
* Sun May 01 2016 Sérgio Basto <sergio@serjux.com> - 1.2.6-9
- Add patch to build with ffmpeg3
* Tue Nov 04 2014 Nicolas Chauvet <kwizart@gmail.com> - 1.2.6-8
- Rebuilt for vaapi 0.36
* Mon Oct 20 2014 Sérgio Basto <sergio@serjux.com> - 1.2.6-7
- Rebuilt for FFmpeg 2.4.3
* Wed Oct 01 2014 Sérgio Basto <sergio@serjux.com> - 1.2.6-6
- Rebuilt again for FFmpeg 2.3.x (with FFmpeg 2.3.x in build root)
* Wed Oct 01 2014 Sérgio Basto <sergio@serjux.com> - 1.2.6-5
- Rebuilt for FFmpeg 2.3.x (with FFmpeg 2.3.x in build root)
* Sat Sep 27 2014 kwizart <kwizart@gmail.com> - 1.2.6-4
- Rebuilt for FFmpeg 2.3x
* Thu Sep 25 2014 Xavier Bachelot <xavier@bachelot.org> 1.2.6-3
- Rebuild for ffmpeg 2.4.
* Thu Aug 07 2014 Sérgio Basto <sergio@serjux.com> - 1.2.6-2
- Rebuilt for ffmpeg-2.3
* Sun Jul 06 2014 Xavier Bachelot <xavier@bachelot.org> 1.2.6-1
- Update to 1.2.6.
* Tue Apr 08 2014 Xavier Bachelot <xavier@bachelot.org> 1.2.5-1
- Update to 1.2.5.
- Drop upstream'ed patch.
- Enable VP8/9 decoder through libvpx.
* Tue Mar 25 2014 Xavier Bachelot <xavier@bachelot.org> 1.2.4-5
- Rebuild for ffmpeg 2.2.
* Wed Feb 26 2014 Nicolas Chauvet <kwizart@gmail.com> - 1.2.4-4
- Rebuilt for libcdio
* Tue Nov 05 2013 Xavier Bachelot <xavier@bachelot.org> 1.2.4-3
- Rebuild for ffmpeg 2.1.
* Sat Oct 12 2013 Xavier Bachelot <xavier@bachelot.org> 1.2.4-2
- Make the build more verbose.
- Don't run autogen.sh gratuitously and drop BR: autoconf automake libtool.
Consequently, add a code snippet to remove rpath.
- Drop obsolete no autopoint patch and Requires: gettext-devel instead.
- Drop obsolete Requires: pkgconfig for -devel subpackage.
- Drop obsolete Group: tags.
- Bump xine-lib-extras-freeworld Obsoletes:.
* Tue Sep 24 2013 Xavier Bachelot <xavier@bachelot.org> 1.2.4-1
- Update to 1.2.4.
- Drop upstream'ed patches and hacks.
- More spec file cleanup.
* Fri Sep 20 2013 Xavier Bachelot <xavier@bachelot.org> 1.2.3-2
- Update to 1.2.3.
- Merge xine-lib and xine-lib-extras-freeworld.
- Use pristine source.
- Clean up old Obsoletes/Provides.
- Clean up old conditional building.
- Clean up spec.
- Enable VDPAU support.
- Enable VAAPI support.
- Add a patch to fix a lock up when vaapi plugin init fails.
- Move test input plugin to -extras.
* Fri Sep 20 2013 Xavier Bachelot <xavier@bachelot.org> 1.1.21-10 * Fri Sep 20 2013 Xavier Bachelot <xavier@bachelot.org> 1.1.21-10
- Rebuild for libbluray-0.4.0. - Rebuild for libbluray-0.4.0.