* Sun Nov 20 2011 Kevin Kofler <Kevin@tigcc.ticalc.org> 1.1.20-1

- update to 1.1.20 (#753758)
- use .xz tarball
- drop old conditionals
- drop ESD (esound) support on F17+ (native PulseAudio just works)
- drop autotools patch, run autogen.sh in %%prep instead
- drop unused deepbind patch
This commit is contained in:
Kevin Kofler 2011-11-20 02:58:05 +01:00
parent 7a494c091c
commit f955cb1ab1
4 changed files with 48 additions and 157 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
xine-lib-1.1.19-autotools.patch.bz2 xine-lib-1.1.19-autotools.patch.bz2
xine-lib-1.1.19-pruned.tar.bz2 xine-lib-1.1.19-pruned.tar.bz2
/xine-lib-1.1.20-pruned.tar.xz

View File

@ -1,2 +1 @@
1a77122fa938a3f8cb85cef231236c39 xine-lib-1.1.19-autotools.patch.bz2 0a916dc5456276402ab2002dd68ded50 xine-lib-1.1.20-pruned.tar.xz
552e3e38f1afb77428f6aaa08e13b0d2 xine-lib-1.1.19-pruned.tar.bz2

View File

@ -1,34 +0,0 @@
#!/bin/sh
# be sure to have all build deps + libtool installed before running this
set -e
if [ -z "$1" -o $# -ne 1 ]; then
echo "Usage: $0 <xine-lib-version>"
exit 2
fi
version=$1
# missing dependency on autoconf >= (apparently) 2.61 in upstream autofoo files
acversion="$(rpm -q --qf=%{VERSION} autoconf)"
case $acversion in
2.6*) ;;
*) echo "ERROR: autoconf >= 2.61 required" ; exit 1 ;;
esac
rm -rf xine-lib-$version xine-lib-$version-pruned
tar jxf xine-lib-$version-pruned.tar.bz2
cp -a xine-lib-$version xine-lib-$version-pruned
pushd xine-lib-$version
patch -p1 < ../xine-lib-${version}-no_autopoint.patch
# extra work for to omit old libtool-related crud
rm -f configure ltmain.sh libtool m4/libtool.m4 m4/ltoptions.m4 m4/ltversion.m4
./autogen.sh noconfig
rm -rf autom4te.cache *~
popd
diff -Nru xine-lib-$version-pruned xine-lib-$version \
| bzip2 --best > xine-lib-$version-autotools.patch.bz2

View File

@ -1,7 +1,6 @@
# TODO, sometime, maybe: # TODO, sometime, maybe:
# - libstk: http://www.libstk.net/ - probably not, see 1.1.5 ChangeLog # - libstk: http://www.libstk.net/ - probably not, see 1.1.5 ChangeLog
# - drop the opengl video out plugin? # - drop the opengl video out plugin?
# - deprecate ESD support?
%define plugin_abi 1.29 %define plugin_abi 1.29
%define codecdir %{_libdir}/codecs %define codecdir %{_libdir}/codecs
@ -12,61 +11,34 @@
%define have_vidix 0 %define have_vidix 0
%endif # ix86 %endif # ix86
%if 0%{?fedora} %ifarch %{arm}
%define _disable_gnomevfs --disable-gnomevfs
%define with_aalib %{?_without_aalib:0}%{!?_without_aalib:1}
%else
%define with_aalib %{?_with_aalib:1}%{!?_with_aalib:0}
%endif # Fedora
%define _enable_xvmc --enable-xvmc
%if 0%{?rhel} > 5
%ifarch ppc64
%undefine _enable_xvmc
%endif
%endif
%ifarch %{arm}
%define _without_directfb 1 %define _without_directfb 1
%endif %endif
%if 0%{?fedora} > 8 || 0%{?rhel} > 5 %if 0%{?fedora} > 14
%define _enable_v4l --enable-v4l
%define _enable_libv4l --enable-libv4l
%define _without_arts --without-arts
%define _with_pa %{?_without_pulseaudio:0}%{!?_without_pulseaudio:1}
%define _with_xcb %{?_without_xcb:0}%{!?_without_xcb:1}
%endif
%if 0%{?fedora} > 14
%define _disable_v4l1 1 %define _disable_v4l1 1
%endif %endif
%if 0%{?fedora} > 11 || 0%{?rhel} > 5 %if 0%{?fedora} > 16
%define pa_in_main 1 %define _without_esound 1
%endif %endif
Summary: A multimedia engine Summary: A multimedia engine
Name: xine-lib Name: xine-lib
Version: 1.1.19 Version: 1.1.20
Release: 7%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.xine-project.org/ URL: http://www.xine-project.org/
# The tarball is generated from the upstream tarball using # The tarball is generated from the upstream tarball using
# the script in SOURCE1. It prunes potentially patented code # the script in SOURCE1. It prunes potentially patented code
#Source0: http://downloads.sourceforge.net/xine/xine-lib-%{version}.tar.bz2 #Source0: http://downloads.sourceforge.net/xine/xine-lib-%{version}.tar.xz
Source0: xine-lib-%{version}-pruned.tar.bz2 Source0: xine-lib-%{version}-pruned.tar.xz
Source1: xine-lib-cleanup-sources.sh Source1: xine-lib-cleanup-sources.sh
Source2: xine-lib-mk-autotools-patch.sh
# autotools patch created with source2
Patch0: xine-lib-%{version}-autotools.patch.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: xine-lib-1.1.19-no_autopoint.patch
Patch1: xine-lib-1.1.4-optflags.patch Patch1: xine-lib-1.1.4-optflags.patch
# used to help
Patch2: xine-lib-%{version}-no_autopoint.patch
Patch6: xine-lib-1.1.1-deepbind-939.patch
# http://bugzilla.redhat.com/470568 # http://bugzilla.redhat.com/470568
Patch8: xine-lib-1.1.17-avsync_hack.patch Patch8: xine-lib-1.1.17-avsync_hack.patch
# http://bugzilla.redhat.com/477226 # http://bugzilla.redhat.com/477226
@ -79,71 +51,56 @@ Patch50: xine-lib-1.1.19-xvmclib_header.patch
Provides: xine-lib(plugin-abi) = %{plugin_abi} Provides: xine-lib(plugin-abi) = %{plugin_abi}
%{?_isa:Provides: xine-lib(plugin-abi)%{?_isa} = %{plugin_abi}} %{?_isa:Provides: xine-lib(plugin-abi)%{?_isa} = %{plugin_abi}}
BuildRequires: automake libtool BuildRequires: autoconf automake libtool
# X11 # X11
BuildRequires: libX11-devel BuildRequires: libX11-devel
BuildRequires: libXv-devel BuildRequires: libXv-devel
BuildRequires: libXinerama-devel BuildRequires: libXinerama-devel
%{?_enable_xvmc:BuildRequires: libXvMC-devel} BuildRequires: libXvMC-devel
BuildRequires: libGLU-devel BuildRequires: libGLU-devel
%if 0%{?_enable_libv4l:1}
BuildRequires: libv4l-devel BuildRequires: libv4l-devel
%endif
%if 0%{?_with_xcb:1}
BuildRequires: libxcb-devel BuildRequires: libxcb-devel
%endif # xcb
# Video # Video
BuildRequires: SDL-devel BuildRequires: SDL-devel
BuildRequires: libtheora-devel BuildRequires: libtheora-devel
BuildRequires: libmng-devel BuildRequires: libmng-devel
%if %{with_aalib}
BuildRequires: aalib-devel >= 1.4 BuildRequires: aalib-devel >= 1.4
%endif # aalib
BuildRequires: libcaca-devel >= 0.99-0.5.beta14 BuildRequires: libcaca-devel >= 0.99-0.5.beta14
%if 0%{!?_without_directfb:1} %if 0%{!?_without_directfb:1}
BuildRequires: directfb-devel BuildRequires: directfb-devel
%endif # directfb %endif # directfb
%if 0%{!?_without_imagemagick:1}
BuildRequires: ImageMagick-devel >= 6.2.4.6-1 BuildRequires: ImageMagick-devel >= 6.2.4.6-1
%endif # imagemagick
%if 0%{?_with_freetype:1} %if 0%{?_with_freetype:1}
BuildRequires: fontconfig-devel BuildRequires: fontconfig-devel
%endif # freetype %endif # freetype
# Audio # Audio
BuildRequires: alsa-lib-devel >= 0.9.0 BuildRequires: alsa-lib-devel >= 0.9.0
%if 0%{!?_without_esound:1}
BuildRequires: esound-devel BuildRequires: esound-devel
%endif # esound
BuildRequires: flac-devel BuildRequires: flac-devel
BuildRequires: jack-audio-connection-kit-devel BuildRequires: jack-audio-connection-kit-devel
BuildRequires: libmodplug-devel BuildRequires: libmodplug-devel
BuildRequires: libmpcdec-devel BuildRequires: libmpcdec-devel
BuildRequires: libvorbis-devel BuildRequires: libvorbis-devel
%if 0%{?_with_pa:1}
BuildRequires: pulseaudio-lib-devel BuildRequires: pulseaudio-lib-devel
%endif # pa
BuildRequires: speex-devel BuildRequires: speex-devel
%if 0%{?_without_arts:1}
Obsoletes: xine-lib-arts < %{version}-%{release}
%else
BuildRequires: arts-devel
%endif
BuildRequires: wavpack-devel BuildRequires: wavpack-devel
# CDs # CDs
BuildRequires: libcdio-devel BuildRequires: libcdio-devel
# Other # Other
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: gtk2-devel BuildRequires: gtk2-devel
%if 0%{?fedora} > 6 || 0%{?rhel} > 5
BuildRequires: libsmbclient-devel BuildRequires: libsmbclient-devel
%else
BuildRequires: samba-common
%endif
BuildRequires: libdvdnav-devel BuildRequires: libdvdnav-devel
BuildRequires: libdvdread-devel BuildRequires: libdvdread-devel
%if 0%{?pa_in_main} # 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 Obsoletes: xine-lib-pulseaudio < 1.1.16.3-5
Provides: xine-lib-pulseaudio = %{version}-%{release} Provides: xine-lib-pulseaudio = %{version}-%{release}
%endif
%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
@ -160,21 +117,6 @@ Requires: zlib-devel
%description devel %description devel
This package contains development files for %{name}. This package contains development files for %{name}.
%package arts
Summary: aRts plugin for %{name}
Group: System Environment/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
#Requires: xine-lib(plugin-abi) = %{plugin_abi}
%description arts
This package contains the aRts plugin for %{name}.
%package pulseaudio
Summary: Pulseaudio plugin for %{name}
Group: System Environment/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description pulseaudio
This package contains the pulseaudio plugin for %{name}.
%package extras %package extras
Summary: Additional plugins for %{name} Summary: Additional plugins for %{name}
Group: System Environment/Libraries Group: System Environment/Libraries
@ -182,21 +124,16 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
#Requires: xine-lib(plugin-abi) = %{plugin_abi} #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 - EsounD
%endif # esound
- JACK - JACK
- GDK-Pixbuf - GDK-Pixbuf
%if ! 0%{?_disable_gnomevfs:1}
- GNOME VFS
%endif
- SMB - SMB
- SDL - SDL
%if %{with_aalib}
- AA-lib - AA-lib
%endif # aalib
- Libcaca - Libcaca
%if 0%{!?_without_imagemagick:1}
- Image decoding - Image decoding
%endif # imagemagick
%if 0%{!?_without_directfb:1} %if 0%{!?_without_directfb:1}
- DirectFB output - DirectFB output
%endif # directfb %endif # directfb
@ -204,14 +141,15 @@ This package contains extra plugins for %{name}:
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .autotools %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
./autogen.sh noconfig
rm -rf autom4te.cache *~
touch -r configure.ac aclocal.m4 touch -r configure.ac aclocal.m4
touch -r m4/optimizations.m4 m4/optimizations.m4.stamp touch -r m4/optimizations.m4 m4/optimizations.m4.stamp
%patch1 -p1 -b .optflags %patch1 -p1 -b .optflags
touch -r m4/optimizations.m4.stamp m4/optimizations.m4 touch -r m4/optimizations.m4.stamp m4/optimizations.m4
# needed at least when compiling with external ffmpeg and internal faad livna bug#939.
# see also http://bugzilla.redhat.com/480504 for side-effects
#patch6 -p1 -b .deepbind
%patch8 -p1 -b .avsync_hack %patch8 -p1 -b .avsync_hack
%patch9 -p1 -b .multilib %patch9 -p1 -b .multilib
%patch50 -p1 -b .xvmclib_header %patch50 -p1 -b .xvmclib_header
@ -236,10 +174,10 @@ export SDL_CFLAGS="$(sdl-config --cflags)" SDL_LIBS="$(sdl-config --libs)"
%if 0%{!?_without_directfb:1} %if 0%{!?_without_directfb:1}
--enable-directfb \ --enable-directfb \
%endif # directfb %endif # directfb
%{?_enable_v4l}%{!?_enable_v4l:--disable-v4l} \ --enable-v4l \
%{?_enable_libv4l}%{!?_enable_libv4l:--disable-libv4l} \ --enable-libv4l \
%{?_enable_xvmc}%{!?_enable_xvmc:--disable-xvmc} \ --enable-xvmc \
%{?_disable_gnomevfs} \ --disable-gnomevfs \
--disable-a52dec \ --disable-a52dec \
--disable-mad \ --disable-mad \
--disable-vcd \ --disable-vcd \
@ -248,19 +186,19 @@ export SDL_CFLAGS="$(sdl-config --cflags)" SDL_LIBS="$(sdl-config --libs)"
%if 0%{?_with_freetype:1} %if 0%{?_with_freetype:1}
%if 0%{?_with_antialiasing:1} %if 0%{?_with_antialiasing:1}
--enable-antialiasing \ --enable-antialiasing \
--with-caca \
%endif # antialiasing %endif # antialiasing
--with-freetype \ --with-freetype \
--with-fontconfig \ --with-fontconfig \
%endif # freetype %endif # freetype
--with-caca \
--with-external-ffmpeg \ --with-external-ffmpeg \
--with-xv-path=%{_libdir} \ --with-xv-path=%{_libdir} \
--with-libflac \ --with-libflac \
--with-external-libmpcdec \ --with-external-libmpcdec \
%if 0%{?_without_imagemagick:1} --without-arts \
--without-imagemagick \ %if 0%{?_without_esound:1}
%endif # imagemagick --without-esound \
%{!?_without_arts:--with-arts} %{?_without_arts} \ %endif
--with-wavpack \ --with-wavpack \
--with-real-codecs-path=%{codecdir} \ --with-real-codecs-path=%{codecdir} \
--with-w32-path=%{codecdir} --with-w32-path=%{codecdir}
@ -339,6 +277,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_file.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_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_decode_bitplane.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_bitplane.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_lpcm.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_lpcm.so
@ -395,13 +334,11 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_rtp.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_rtsp.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_stdin_fifo.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_stdin_fifo.so
%if 0%{?_enable_v4l:1}
%if ! 0%{?_disable_v4l1:1} %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_v4l.so
%endif %endif
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_v4l2.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_v4l2.so
%endif
%{_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_out_none.so
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_opengl.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_opengl.so
@ -410,44 +347,24 @@ rm -rf $RPM_BUILD_ROOT
%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 # vidix
%if 0%{?_with_xcb:1}
%{_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
%endif # xcb
%{_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
%if 0%{?_enable_xvmc:1}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_xvmc.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_vo_out_xxmc.so
%endif
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_wavpack.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_wavpack.so
%if 0%{?_with_pa:1}
%if ! 0%{?pa_in_main}
%files pulseaudio
%defattr(-,root,root,-)
%endif
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_pulseaudio.so
%endif
%if 0%{!?_without_arts:1}
%files arts
%defattr(-,root,root,-)
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_arts.so
%endif
%files extras %files extras
%defattr(-,root,root,-) %defattr(-,root,root,-)
%if 0%{!?_without_esound:1}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_ao_out_esd.so %{_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
%if 0%{!?_without_imagemagick:1}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_image.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_decode_image.so
%endif # imagemagick
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_smb.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_inp_smb.so
%if %{with_aalib}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_aa.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_aa.so
%endif # aalib
%{_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} %if 0%{!?_without_directfb:1}
%{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_directfb.so %{_libdir}/xine/plugins/%{plugin_abi}/xineplug_vo_out_directfb.so
@ -470,6 +387,14 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Sun Nov 20 2011 Kevin Kofler <Kevin@tigcc.ticalc.org> 1.1.20-1
- update to 1.1.20 (#753758)
- use .xz tarball
- drop old conditionals
- drop ESD (esound) support on F17+ (native PulseAudio just works)
- drop autotools patch, run autogen.sh in %%prep instead
- drop unused deepbind patch
* Fri Jul 15 2011 Kevin Kofler <Kevin@tigcc.ticalc.org> 1.1.19-7 * Fri Jul 15 2011 Kevin Kofler <Kevin@tigcc.ticalc.org> 1.1.19-7
- rebuild for new DirectFB (1.5.0) - rebuild for new DirectFB (1.5.0)