OBS User unknown 2008-09-08 15:07:11 +00:00 committed by Git OBS Bridge
parent 1c657ab52d
commit ff34c470ce
2 changed files with 506 additions and 132 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 4 14:56:47 CEST 2008 - lnussel@suse.de
- split and rename package to adhere to library package conventions
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 26 11:15:41 CEST 2008 - lnussel@suse.de Tue Aug 26 11:15:41 CEST 2008 - lnussel@suse.de

View File

@ -19,39 +19,77 @@
Name: xine-lib Name: xine-lib
# --with-internal -> build xine+xine-internal # %bcond_with = default off
# --without-internal -> don't build xine-internal # %bcond_without = default on
#
# --with distributable -> don't build libxine1-codecs
# --without distributable -> build libxine1-codecs
# #
# default for buildservice is no patented codecs # default for buildservice is no patented codecs
%if 0%{?opensuse_bs} %bcond_without distributable
%define build_xine_default 0 %bcond_with onlynondistributable
%else %bcond_without pulseaudio
%if 0%{?_without_internal:1} %bcond_with sdl
%define build_xine_default 0 %bcond_with aalib
%else %bcond_with arts
%define build_xine_default 2 %bcond_with esd
%endif %bcond_with jack
%endif %bcond_without gnome_vfs
# 0: Build all except xine-internal 1: Build only xine-internal 2: Build all %bcond_with directfb
# 1+2 need uncrippled source %bcond_with modplug
%define BUILD_XINE %{?_with_internal:2}%{!?_with_internal:%build_xine_default} #
BuildRequires: ImageMagick-devel SDL-devel aalib-devel arts-devel cdparanoia curl-devel esound-devel flac-devel giflib-devel glib2-devel gnome-common gnome-vfs2-devel gnutls-devel gtk2-devel imlib2-devel krb5-devel libcdio-devel libdrm-devel libmng-devel libsmbclient libsmbclient-devel libtheora-devel libvorbis-devel lirc readline-devel speex-devel update-desktop-files vcdimager-devel %bcond_without external_ffmpeg
%if %BUILD_XINE > 0 #
BuildRequires: ImageMagick-devel alsa-devel flac-devel giflib-devel
BuildRequires: glib2-devel gnutls-devel gtk2-devel imlib2-devel krb5-devel
BuildRequires: libcdio-devel libdrm-devel libmng-devel libsmbclient
BuildRequires: libsmbclient-devel libtheora-devel libvorbis-devel lirc-devel
BuildRequires: readline-devel speex-devel update-desktop-files vcdimager-devel
%if !%{with distributable}
# those requiremens are optional but internal copies are likely old # those requiremens are optional but internal copies are likely old
BuildRequires: faad2-devel ffmpeg-devel %if %{with external_ffmpeg}
BuildRequires: libfaad2-devel libffmpeg-devel
%endif
%endif
%if %{with pulseaudio}
BuildRequires: libpulse-devel
%endif
%if %{with sdl}
BuildRequires: SDL-devel
%endif
%if %{with aalib}
BuildRequires: aalib-devel
BuildRequires: libcaca-devel
%endif
%if %{with arts}
BuildRequires: arts-devel
%endif
%if %{with esd}
BuildRequires: esound-devel
%endif
%if %{with gnome_vfs}
BuildRequires: gnome-vfs2-devel
%endif
%if %{with jack}
BuildRequires: libjack-devel
%endif
%if %{with directfb}
BuildRequires: DirectFB-devel
%endif
%if %{with modplug}
BuildRequires: libmodplug
%endif %endif
Recommends: opensuse-codecs-installer
Version: 1.1.15 Version: 1.1.15
Release: 5 Release: 16
%define abiversion 1.24 %define abiversion 1.24
Summary: Video Player with Plug-Ins Summary: Video Player with Plug-Ins
Group: Productivity/Multimedia/Video/Players Group: Productivity/Multimedia/Video/Players
License: GPL v2 or later; Public Domain, Freeware License: GPL v2 or later; Public Domain, Freeware
Url: http://xine.sourceforge.net Url: http://xine.sourceforge.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: xine-lib-%version-crippled.tar.bz2 Source: xine-lib-%{version}-crippled.tar.bz2
%if 0 %if 0
Source: xine-lib-%version.tar.bz2 Source: xine-lib-%{version}.tar.bz2
%endif %endif
Source10: README.SuSE Source10: README.SuSE
Source99: precheckin_cripple_tarball.sh Source99: precheckin_cripple_tarball.sh
@ -94,15 +132,51 @@ Authors:
-------- --------
Guenter Bartsch <guenter@sourceforge.net> Guenter Bartsch <guenter@sourceforge.net>
%if %BUILD_XINE != 1 %package -n libxine1
Summary: Video Player with Plug-Ins
Group: Productivity/Multimedia/Video/Players
License: GPL v2 or later; Public Domain, Freeware
Provides: xine-lib = %{version}-%{release}
Obsoletes: xine-lib < %{version}-%{release}
Obsoletes: xine-extra < %{version}-%{release}
Provides: libxine1-syncfb = %{version}-%{release}
Obsoletes: libxine1-syncfb < %{version}-%{release}
Provides: libxine1-xvmc = %{version}-%{release}
Obsoletes: libxine1-xvmc < %{version}-%{release}
Provides: libxine1-dvb = %{version}-%{release}
Obsoletes: libxine1-dvb < %{version}-%{release}
Recommends: libxine1-codecs < %{version}-%{release}
Recommends: opensuse-codecs-installer
%package -n xine-devel %description -n libxine1
Xine is a video player with a graphical front-end that supports a large
number of file formats (VCD and MPEG2, for example) using plug-ins.
Several plug-ins are included. Others can be installed after Xine
installation. Xine supports stereo sound using OSS and AC5.1 using
Alsa.
This version of Xine may lack certain features because of legal
requirements (potential patent violation). See
http://www.opensuse.org/XINE#Legal_Matters
More information about Xine plug-ins can be found at
http://www.xinehq.de/
Authors:
--------
Guenter Bartsch <guenter@sourceforge.net>
%package -n libxine-devel
License: GPL v2 or later License: GPL v2 or later
Summary: Development environment for Xine-based media players Summary: Development environment for Xine-based media players
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: glibc-devel freetype2-devel zlib-devel xine-lib = %version Requires: glibc-devel freetype2-devel zlib-devel libxine1 = %{version}
Obsoletes: xine-devel < %{version}-%{release}
Provides: xine-devel = %{version}-%{release}
%description -n xine-devel %description -n libxine-devel
This package contains all necessary include files, libraries and This package contains all necessary include files, libraries and
configuration files needed to compile applications that use the Xine configuration files needed to compile applications that use the Xine
media player. media player.
@ -125,13 +199,16 @@ Authors:
-------- --------
Guenter Bartsch <guenter@users.sourceforge.net> Guenter Bartsch <guenter@users.sourceforge.net>
%package -n xine-extra %if %{with pulseaudio}
%package -n libxine1-pulse
License: GPL v2 or later License: GPL v2 or later
Summary: Optional Xine plugins Summary: Optional Xine plugins
Group: Productivity/Multimedia/Video/Players Group: Productivity/Multimedia/Video/Players
Requires: xine-lib = %version Requires: libxine1 = %{version}
Supplements: packageand(libpulse0:libxine1)
%description -n xine-extra %description -n libxine1-pulse
The package contains less often needed xine plugins with extra The package contains less often needed xine plugins with extra
dependencies. For example to use aRts or esd audio output or visual dependencies. For example to use aRts or esd audio output or visual
output via SDL or aalib. output via SDL or aalib.
@ -143,22 +220,233 @@ Authors:
Guenter Bartsch <guenter@users.sourceforge.net> Guenter Bartsch <guenter@users.sourceforge.net>
%endif %endif
%if %BUILD_XINE != 0 %if %{with sdl}
%package -n xine-internal %package -n libxine1-sdl
License: GPL v2 or later; Public Domain, Freeware
Summary: Video Player with Plug-Ins
Group: Productivity/Multimedia/Video/Players
Requires: libxine1 = %{version}
%description -n libxine1-sdl
Xine is a video player with a graphical front-end that supports a large
number of file formats (VCD and MPEG2, for example) using plug-ins.
Several plug-ins are included. Others can be installed after Xine
installation. Xine supports stereo sound using OSS and AC5.1 using
Alsa.
This version of Xine may lack certain features because of legal
requirements (potential patent violation). See
http://www.opensuse.org/XINE#Legal_Matters
More information about Xine plug-ins can be found at
http://www.xinehq.de/
Authors:
--------
Guenter Bartsch <guenter@sourceforge.net>
%endif
%if %{with arts}
%package -n libxine1-arts
License: GPL v2 or later; Public Domain, Freeware
Summary: Video Player with Plug-Ins
Group: Productivity/Multimedia/Video/Players
Requires: libxine1 = %{version}
%description -n libxine1-arts
Xine is a video player with a graphical front-end that supports a large
number of file formats (VCD and MPEG2, for example) using plug-ins.
Several plug-ins are included. Others can be installed after Xine
installation. Xine supports stereo sound using OSS and AC5.1 using
Alsa.
This version of Xine may lack certain features because of legal
requirements (potential patent violation). See
http://www.opensuse.org/XINE#Legal_Matters
More information about Xine plug-ins can be found at
http://www.xinehq.de/
Authors:
--------
Guenter Bartsch <guenter@sourceforge.net>
%endif
%if %{with aalib}
%package -n libxine1-aa
License: GPL v2 or later; Public Domain, Freeware
Summary: Video Player with Plug-Ins
Group: Productivity/Multimedia/Video/Players
Requires: libxine1 = %{version}
%description -n libxine1-aa
Xine is a video player with a graphical front-end that supports a large
number of file formats (VCD and MPEG2, for example) using plug-ins.
Several plug-ins are included. Others can be installed after Xine
installation. Xine supports stereo sound using OSS and AC5.1 using
Alsa.
This version of Xine may lack certain features because of legal
requirements (potential patent violation). See
http://www.opensuse.org/XINE#Legal_Matters
More information about Xine plug-ins can be found at
http://www.xinehq.de/
Authors:
--------
Guenter Bartsch <guenter@sourceforge.net>
%endif
%if %{with esd}
%package -n libxine1-esd
License: GPL v2 or later; Public Domain, Freeware
Summary: Video Player with Plug-Ins
Group: Productivity/Multimedia/Video/Players
Requires: libxine1 = %{version}
%description -n libxine1-esd
Xine is a video player with a graphical front-end that supports a large
number of file formats (VCD and MPEG2, for example) using plug-ins.
Several plug-ins are included. Others can be installed after Xine
installation. Xine supports stereo sound using OSS and AC5.1 using
Alsa.
This version of Xine may lack certain features because of legal
requirements (potential patent violation). See
http://www.opensuse.org/XINE#Legal_Matters
More information about Xine plug-ins can be found at
http://www.xinehq.de/
Authors:
--------
Guenter Bartsch <guenter@sourceforge.net>
%endif
%if %{with jack}
%package -n libxine1-jack
License: GPL v2 or later; Public Domain, Freeware
Summary: Video Player with Plug-Ins
Group: Productivity/Multimedia/Video/Players
Requires: libxine1 = %{version}
%description -n libxine1-jack
Xine is a video player with a graphical front-end that supports a large
number of file formats (VCD and MPEG2, for example) using plug-ins.
Several plug-ins are included. Others can be installed after Xine
installation. Xine supports stereo sound using OSS and AC5.1 using
Alsa.
This version of Xine may lack certain features because of legal
requirements (potential patent violation). See
http://www.opensuse.org/XINE#Legal_Matters
More information about Xine plug-ins can be found at
http://www.xinehq.de/
Authors:
--------
Guenter Bartsch <guenter@sourceforge.net>
%endif
%if %{with directfb}
%package -n libxine1-directfb
License: GPL v2 or later; Public Domain, Freeware
Summary: Video Player with Plug-Ins
Group: Productivity/Multimedia/Video/Players
Requires: libxine1 = %{version}
%description -n libxine1-directfb
Xine is a video player with a graphical front-end that supports a large
number of file formats (VCD and MPEG2, for example) using plug-ins.
Several plug-ins are included. Others can be installed after Xine
installation. Xine supports stereo sound using OSS and AC5.1 using
Alsa.
This version of Xine may lack certain features because of legal
requirements (potential patent violation). See
http://www.opensuse.org/XINE#Legal_Matters
More information about Xine plug-ins can be found at
http://www.xinehq.de/
Authors:
--------
Guenter Bartsch <guenter@sourceforge.net>
%endif
%if %{with gnome_vfs}
%package -n libxine1-gnome-vfs
License: GPL v2 or later
Summary: Optional Xine plugins
Group: Productivity/Multimedia/Video/Players
Requires: libxine1 = %{version}
Supplements: packageand(gnome-vfs2:libxine1)
%description -n libxine1-gnome-vfs
The package contains less often needed xine plugins with extra
dependencies. For example to use aRts or esd audio output or visual
output via SDL or aalib.
Authors:
--------
Guenter Bartsch <guenter@users.sourceforge.net>
%endif
%if !%{with distributable}
%package -n libxine1-codecs
License: GPL v2 or later; Public Domain, Freeware License: GPL v2 or later; Public Domain, Freeware
# these libs are possibly illegal and may not work without libdvdcss anyway # these libs are possibly illegal and may not work without libdvdcss anyway
Summary: xine plugins for watching DVDs, DivX and more Summary: Video Player with Plug-Ins
Group: SUSE internal Group: Productivity/Multimedia/Video/Players
Requires: xine-lib = %version Requires: libxine1 = %{version}
Provides: xine-lib:%_libdir/xine/plugins/1.0.0/xineplug_decode_mad.so xine-mad
Obsoletes: xine-mad Obsoletes: xine-mad
Obsoletes: xine-internal < %{version}-%{release}
Provides: libxine1-dvd = %{version}-%{release}
Obsoletes: libxine1-dvd < %{version}-%{release}
Provides: libxine1-dxr3 = %{version}-%{release}
Obsoletes: libxine1-dxr3 < %{version}-%{release}
%ifarch %{ix86}
Provides: libxine1-w32dll = %{version}-%{release}
Obsoletes: libxine1-w32dll < %{version}-%{release}
%endif
Recommends: libdvdcss >= 1.2.6 Recommends: libdvdcss >= 1.2.6
Recommends: opensuse-codecs-installer
%description -n xine-internal %description -n libxine1-codecs
With these Xine plug-ins, you can watch DVDs and all other kind of Xine is a video player with a graphical front-end that supports a large
media using Xine. More information about Xine plug-ins can be found at number of file formats (VCD and MPEG2, for example) using plug-ins.
Several plug-ins are included. Others can be installed after Xine
installation. Xine supports stereo sound using OSS and AC5.1 using
Alsa.
This version of Xine may lack certain features because of legal
requirements (potential patent violation). See
http://www.opensuse.org/XINE#Legal_Matters
More information about Xine plug-ins can be found at
http://www.xinehq.de/ http://www.xinehq.de/
@ -170,14 +458,35 @@ Authors:
%endif %endif
%prep %prep
%if %{with distributable} && %{with onlynondistributable}
%error need --without distributable for --with onlynondistributable
%endif
cat <<EOF
+++ rpm build options +++'
Distributable version: %{with distributable}
%if !%{with distributable}
Codecs package only: %{with onlynondistributable}
External ffmpeg: %{with external_ffmpeg}
%endif
Pulseaudio: %{with pulseaudio}
SDL: %{with sdl}
aalib: %{with aalib}
arts: %{with arts}
esd: %{with esd}
jack: %{with jack}
gnome_vfs: %{with gnome_vfs}
directfb: %{with directfb}
modplug: %{with modplug}
+++++++++++++++++++++++++'
EOF
%setup -q -c -T %setup -q -c -T
# Unpack crippled version only if full version does not exist # Unpack crippled version only if full version does not exist
if test -s %_sourcedir/%name-%version.tar.bz2 ; then if test -s %{_sourcedir}/%{name}-%{version}.tar.bz2 ; then
tar xfj %_sourcedir/%name-%version.tar.bz2 tar xfj %{_sourcedir}/%{name}-%{version}.tar.bz2
else else
tar xfj %_sourcedir/%name-%version-crippled.tar.bz2 tar xfj %{_sourcedir}/%{name}-%{version}-crippled.tar.bz2
fi fi
cd xine-lib-%version cd xine-lib-%{version}
%patch26 %patch26
%patch27 -p1 %patch27 -p1
%patch28 -p1 %patch28 -p1
@ -191,7 +500,7 @@ sed -i 's|^noinst_HEADERS = input_vdr.h|xineinclude_HEADERS = input_vdr.h|' src/
%patch70 %patch70
%patch71 -p1 %patch71 -p1
# Only apply to uncrippled source # Only apply to uncrippled source
%if %BUILD_XINE > 0 %if !%{with distributable}
%patch80 %patch80
%endif %endif
%patch72 -p1 %patch72 -p1
@ -200,40 +509,54 @@ sed -i 's|^noinst_HEADERS = input_vdr.h|xineinclude_HEADERS = input_vdr.h|' src/
rm -f m4/libtool15.m4 rm -f m4/libtool15.m4
%build %build
cd xine-lib-%version %if %{with external_ffmpeg}
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fno-force-addr" # remove included ffmpeg header, they are old and may cause incompatibility
rm -rf src/libffmpeg/libav*/*.h
%endif
cd xine-lib-%{version}
export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fno-force-addr"
export CCASFLAGS=-Wa,--noexecstack export CCASFLAGS=-Wa,--noexecstack
%if 0%suse_version < 1011 %if 0%{suse_version} < 1011
echo 'AC_DEFUN([AC_REQUIRE_AUX_FILE])dnl' >> acinclude.m4 echo 'AC_DEFUN([AC_REQUIRE_AUX_FILE])dnl' >> acinclude.m4
%endif %endif
if [ ! -f configure ]; then
NO_CONFIGURE=1 ./autogen.sh
fi
AUTOPOINT=true autoreconf -fi AUTOPOINT=true autoreconf -fi
./configure --prefix=/usr \ ./configure --prefix=/usr \
--libdir=%_libdir \ --libdir=%{_libdir} \
--mandir=%_mandir \ --mandir=%{_mandir} \
%if 0%suse_version > 1010 %if 0%{suse_version} > 1010
--docdir=%_defaultdocdir/xine \ --docdir=%{_defaultdocdir}/xine \
%else %else
docdir=%_defaultdocdir/xine \ docdir=%{_defaultdocdir}/xine \
%endif %endif
--enable-fpic \ --enable-fpic \
--enable-antialiasing \ --enable-antialiasing \
--with-arts \
--with-libflac \ --with-libflac \
--with-freetype \ --with-freetype \
%{?with_modplug:--enable-modplug} \
%{?with_directfb:--enable-directfb} \
%{?with_arts:--with-arts} \
%if !%{with distributable}
%{?with_external_ffmpeg:--with-external-ffmpeg} \
%endif
%ifarch %{ix86}
--with-w32-path=/usr/lib/win32 \ --with-w32-path=/usr/lib/win32 \
--with-install-plugins-helper=%_prefix/lib/opensuse-codecs-installer %endif
make %{?jobs:-j%jobs} --with-install-plugins-helper=${_prefix}/lib/opensuse-codecs-installer
make %{?jobs:-j%{jobs}}
%install %install
cd xine-lib-%version cd xine-lib-%{version}
make install DESTDIR=%buildroot make install DESTDIR=%{buildroot}
LIB="%buildroot%_libdir/xine/plugins/%abiversion" LIB="%{buildroot}%{_libdir}/xine/plugins/%{abiversion}"
# install documentation # install documentation
install -m 0644 %SOURCE10 COPYING AUTHORS %buildroot%_defaultdocdir/xine/ install -m 0644 %{SOURCE10} COPYING AUTHORS %{buildroot}%{_defaultdocdir}/xine/
# remove usless READMEs # remove usless READMEs
rm %buildroot%_defaultdocdir/xine/README.{irix,solaris,WIN32} rm %{buildroot}%{_defaultdocdir}/xine/README.{irix,solaris,WIN32}
%ifarch %ix86 %ifarch %{ix86}
mkdir -p %buildroot/usr/lib/win32 mkdir -p %{buildroot}/usr/lib/win32
%endif %endif
cd - cd -
# #
@ -250,7 +573,7 @@ xineplug_vo_out_none
xineplug_vo_out_opengl xineplug_vo_out_opengl
xineplug_vo_out_xshm xineplug_vo_out_xshm
xineplug_vo_out_xv xineplug_vo_out_xv
%if 0%suse_version > 1020 %if 0%{suse_version} > 1020
xineplug_vo_out_xcbshm xineplug_vo_out_xcbshm
xineplug_vo_out_xcbxv xineplug_vo_out_xcbxv
%endif %endif
@ -281,6 +604,8 @@ xineplug_decode_mpc
xineplug_decode_gdk_pixbuf xineplug_decode_gdk_pixbuf
xineplug_decode_spucmml xineplug_decode_spucmml
xineplug_decode_sputext xineplug_decode_sputext
# requires ImageMagick
xineplug_decode_image
xineplug_dmx_yuv_frames xineplug_dmx_yuv_frames
xineplug_dmx_real xineplug_dmx_real
xineplug_dmx_audio xineplug_dmx_audio
@ -303,6 +628,10 @@ xineplug_flac
xineplug_vdr xineplug_vdr
xineplug_vo_out_xxmc xineplug_vo_out_xxmc
xineplug_vo_out_xvmc xineplug_vo_out_xvmc
xineplug_vo_out_syncfb
%ifarch %{ix86}
xineplug_vo_out_vidix
%endif
post/xineplug_post_audio_filters post/xineplug_post_audio_filters
post/xineplug_post_goom post/xineplug_post_goom
post/xineplug_post_mosaico post/xineplug_post_mosaico
@ -310,27 +639,33 @@ post/xineplug_post_switch
post/xineplug_post_tvtime post/xineplug_post_tvtime
post/xineplug_post_visualizations post/xineplug_post_visualizations
# #
.extra .pulse
# xineplug_ao_out_pulseaudio
# we do not want the depending stuff installed by default
# #
.arts
xineplug_ao_out_arts xineplug_ao_out_arts
xineplug_ao_out_esd
xineplug_ao_out_jack
xineplug_vo_out_aa
%if 0%suse_version > 1010
xineplug_vo_out_sdl
%endif
xineplug_vo_out_syncfb
xineplug_inp_gnome_vfs
# requires ImageMagick
xineplug_decode_image
%ifarch %ix86
# needs dha ...
xineplug_vo_out_vidix
%endif
# #
.internal .esd
xineplug_ao_out_esd
#
.jack
xineplug_ao_out_jack
#
.aalib
xineplug_vo_out_aa
xineplug_vo_out_caca
#
.sdl
xineplug_vo_out_sdl
#
.gnome-vfs
xineplug_inp_gnome_vfs
#
.directfb
xineplug_vo_out_directfb
xineplug_vo_out_xdirectfb
#
.codecs
# libmad and MPEG related plugins # libmad and MPEG related plugins
xineplug_decode_mad xineplug_decode_mad
xineplug_decode_spudvb xineplug_decode_spudvb
@ -359,7 +694,7 @@ xineplug_decode_spu
xineplug_decode_nsf xineplug_decode_nsf
# Philips claimed intellectual property on GSM 06.10 # Philips claimed intellectual property on GSM 06.10
xineplug_decode_gsm610 xineplug_decode_gsm610
%ifarch %ix86 %ifarch %{ix86}
xineplug_decode_qt xineplug_decode_qt
xineplug_decode_w32dll xineplug_decode_w32dll
%endif %endif
@ -374,93 +709,127 @@ EOF
# #
OUT_FILE="" OUT_FILE=""
grep -v ^# plugins | while read i; do grep -v ^# plugins | while read i; do
[ "${i:0:1}" = "." ] && OUT_FILE=$i && continue [ "${i:0:1}" = "." ] && OUT_FILE=${i} && continue
echo %_libdir/xine/plugins/%abiversion/$i.so >> files$OUT_FILE echo %{_libdir}/xine/plugins/%{abiversion}/${i}.so >> files${OUT_FILE}
done done
%find_lang libxine1 %find_lang libxine1
cat libxine1.lang >>files cat libxine1.lang >>files
%if %BUILD_XINE == 0 %if %{with distributable}
xargs -i+ rm -f %buildroot/+ <files.internal xargs -i+ rm -f %{buildroot}/+ <files.codecs
%else %else
%if 0%{?__debug_package} %if 0%{?__debug_package}
# strip internal plugins to prevent their source from ending up in # strip patent encumbered plugins to prevent their source from
# the debuginfo package # ending up in the debuginfo package
xargs -i+ strip --strip-debug %buildroot/+ <files.internal xargs -i+ strip --strip-debug %{buildroot}/+ <files.codecs
%endif %endif
%endif %endif
%if %BUILD_XINE == 1 %if %{with onlynondistributable}
xargs -i+ rm -f %buildroot/+ <files for i in files files.*; do
xargs -i+ rm -f %buildroot/+ <files.extra test "$i" = 'files.codecs' || xargs -i+ rm -f %{buildroot}/+ < $i
rm -rf %buildroot/usr/share %buildroot/usr/bin done
rm -rf %buildroot%_defaultdocdir/xine %buildroot/usr/include rm -rf %{buildroot}/usr/share %{buildroot}/usr/bin
rm -rf %buildroot/usr/lib/win32 %buildroot/%_libdir/pkgconfig rm -rf %{buildroot}%{_defaultdocdir}/xine %{buildroot}/usr/include
rm -rf %buildroot%_libdir/xine/plugins/%abiversion/{post,vidix,mime.types} rm -rf %{buildroot}/usr/lib/win32 %{buildroot}/%{_libdir}/pkgconfig
rm -f %buildroot%_libdir/libxine* rm -rf %{buildroot}%{_libdir}/xine/plugins/%{abiversion}/{vidix,mime.types}
%endif rm -f %{buildroot}%{_libdir}/libxine*
%if %BUILD_XINE > 0
# we need this dir to detect mp3 support easily
mkdir -p %buildroot/usr/share/xine
touch %buildroot/usr/share/xine/mad
echo "/usr/share/xine/mad" >> files.internal
%endif %endif
%clean %clean
rm -rf %buildroot rm -rf %{buildroot}
%if %BUILD_XINE != 1 %if !%{with onlynondistributable}
%post -n xine-lib -p /sbin/ldconfig %post -n libxine1 -p /sbin/ldconfig
%postun -n xine-lib -p /sbin/ldconfig %postun -n libxine1 -p /sbin/ldconfig
%files -n xine-lib -f files %files -n libxine1 -f files
%defattr(-,root,root) %defattr(-,root,root)
%_bindir/xine-list-1.1 %_bindir/xine-list-1.1
%ifarch %ix86 %ifarch %{ix86}
%dir /usr/lib/win32 %dir /usr/lib/win32
%endif %endif
%dir /%_libdir/xine %dir /%{_libdir}/xine
%dir /%_libdir/xine/plugins %dir /%{_libdir}/xine/plugins
%dir /%_libdir/xine/plugins/%abiversion %dir /%{_libdir}/xine/plugins/%{abiversion}
%dir /usr/share/xine %dir /usr/share/xine
%dir /usr/share/xine/libxine1 %dir /usr/share/xine/libxine1
%_libdir/libxine.so.* %{_libdir}/libxine.so.*
%doc %_mandir/man1/xine-list-1.1.1.gz %doc %{_mandir}/man1/xine-list-1.1.1.gz
%doc %_mandir/man5/xine.* %doc %{_mandir}/man5/xine.*
%_defaultdocdir/xine %{_defaultdocdir}/xine
%dir %_libdir/xine/plugins/%abiversion/post %dir %{_libdir}/xine/plugins/%{abiversion}/post
%_libdir/xine/plugins/%abiversion/vidix %{_libdir}/xine/plugins/%{abiversion}/vidix
%_libdir/xine/plugins/%abiversion/mime.types %{_libdir}/xine/plugins/%{abiversion}/mime.types
# #
# xine fonts # xine fonts
# cetus is a freeware font from http://www.fontfreak.com/authors/gregfonts.htm # cetus is a freeware font from http://www.fontfreak.com/authors/gregfonts.htm
# #
/usr/share/xine/libxine1/fonts /usr/share/xine/libxine1/fonts
%if %{with pulseaudio}
%files -n xine-extra -f files.extra %files -n libxine1-pulse -f files.pulse
%defattr(-,root,root,0755) %defattr(-,root,root,0755)
%endif
%if %{with sdl}
%files -n xine-devel %files -n libxine1-sdl -f files.sdl
%defattr(-,root,root,0755)
%endif
%if %{with arts}
%files -n libxine1-arts -f files.arts
%defattr(-,root,root,0755)
%endif
%if %{with esd}
%files -n libxine1-esd -f files.esd
%defattr(-,root,root,0755)
%endif
%if %{with jack}
%files -n libxine1-jack -f files.jack
%defattr(-,root,root,0755)
%endif
%if %{with aalib}
%files -n libxine1-aa -f files.aalib
%defattr(-,root,root,0755)
%endif
%if %{with directfb}
%files -n libxine1-directfb -f files.directfb
%defattr(-,root,root,0755)
%endif
%if %{with gnome_vfs}
%files -n libxine1-gnome-vfs -f files.gnome-vfs
%defattr(-,root,root,0755)
%endif
%files -n libxine-devel
%defattr(-,root,root) %defattr(-,root,root)
%doc %_mandir/man1/xine-config.1.gz %doc %{_mandir}/man1/xine-config.1.gz
/usr/bin/xine-config /usr/bin/xine-config
%_libdir/pkgconfig/libxine.pc %{_libdir}/pkgconfig/libxine.pc
%_libdir/libxine.la %{_libdir}/libxine.la
%_libdir/libxine.so %{_libdir}/libxine.so
/usr/share/aclocal/xine.m4 /usr/share/aclocal/xine.m4
/usr/include/xine /usr/include/xine
/usr/include/xine.h /usr/include/xine.h
%endif %endif # onlynondistributable
%if %BUILD_XINE != 0 %if !%{with distributable}
%files -n xine-internal -f files.internal %files -n libxine1-codecs -f files.codecs
%defattr(-,root,root) %defattr(-,root,root)
%dir %_libdir/xine %dir %{_libdir}/xine
%dir %_libdir/xine/plugins %dir %{_libdir}/xine/plugins
%dir %_libdir/xine/plugins/%abiversion %dir %{_libdir}/xine/plugins/%{abiversion}
%dir /usr/share/xine %dir %{_libdir}/xine/plugins/%{abiversion}/post
%endif %endif
%changelog %changelog
* Thu Sep 04 2008 lnussel@suse.de
- split and rename package to adhere to library package conventions
* Tue Aug 26 2008 lnussel@suse.de * Tue Aug 26 2008 lnussel@suse.de
- remove fuzzy hunk from xine-lib-1.1.15-cpp-compilation.diff to fix - remove fuzzy hunk from xine-lib-1.1.15-cpp-compilation.diff to fix
build on older distributions build on older distributions