File xine-ui.spec of Package xine-ui
#
# spec file for package xine-ui (Version 0.99.5)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xine-ui
BuildRequires: aalib-devel curl-devel libpng-devel lirc-devel readline-devel
BuildRequires: update-desktop-files xine-devel xorg-x11-devel
Summary: Video player with plugins
Version: 0.99.5
Release: 224
License: GPLv2+ ; Public Domain, Freeware
Group: Productivity/Multimedia/Video/Players
Url: http://xine.sourceforge.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: xine:/usr/bin/xine
Source: xine-ui-%version.tar.bz2
Source1: xine-ui.png
Source2: xine-ui-crippled.png
# extra skins
Source11: caramel.tar.bz2
Source12: CelomaChrome.tar.bz2
Source13: lcd.tar.bz2
Source99: baselibs.conf
# *** xine-lib: Bugfixes
Patch0: xine-ui-various.diff
Patch1: xine-ui-logopng.diff
Patch20: xine-ui-broken-configure.diff
Patch21: locale_fix.diff
# *** SUSE only changes
Patch50: xine-ui-crippled-LOCAL.diff
Patch60: xine-ui-AUTOMAKE.diff
Patch61: xine-ui-png_check_sig.diff
%description
xine is a free multimedia player. It plays back CDs, DVDs, and VCDs. It
also decodes multimedia files like AVI, MOV, WMV, and MP3 from local
disk drives, and displays multimedia streamed over the Internet. It
interprets many of the most common multimedia formats available - and
some of the most uncommon formats, too.
Authors:
--------
Guenter Bartsch <guenter@sourceforge.net>
%prep
%setup -q
%patch0
%patch1
%patch20
%patch21
%patch50
%patch60
%patch61
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# ignore nonupdated automake+co files
rm -f missing ; touch missing
%configure \
--enable-vdr-keys \
--with-pic \
--disable-static
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
install -d -m755 $RPM_BUILD_ROOT%{_defaultdocdir}
mv $RPM_BUILD_ROOT/usr/share/doc/xine-ui $RPM_BUILD_ROOT%{_defaultdocdir}/xine-ui
mv $RPM_BUILD_ROOT/usr/share/doc/xitk $RPM_BUILD_ROOT%{_defaultdocdir}/xine-ui
mkdir -p $RPM_BUILD_ROOT/usr/share/applications/
rm $RPM_BUILD_ROOT/usr/share/xine/desktop/xine.desktop
rmdir $RPM_BUILD_ROOT/usr/share/xine/desktop
install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/xine/skins/xine-ui_logo.png
rm -f $RPM_BUILD_ROOT/usr/share/xine/skins/xine-ui_logo.mpv
install -m 0644 %SOURCE2 $RPM_BUILD_ROOT/usr/share/xine/skins/xine-ui_logo-crippled.png
# extra skins
install -d -m755 %buildroot/usr/share/xine/skins/
for i in %SOURCE11 %SOURCE12 %SOURCE13 ; do
tar xfvj $i -C %buildroot/usr/share/xine/skins/
done
#
%suse_update_desktop_file -i xine AudioVideo Player Video
%find_lang %{name}
%find_lang xitk %{name}.lang
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,0755)
%dir %_mandir/??
%dir %_mandir/??/man1
%doc %_mandir/*/man1/xine.1.gz
%doc %_mandir/*/man1/xine-check.1.gz
%doc %_mandir/*/man1/xine-remote.1.gz
%doc %_mandir/*/man1/aaxine*
%doc %_mandir/man1/aaxine*
%doc %_mandir/man1/xine.1.gz
%doc %_mandir/man1/xine-check.1.gz
%doc %_mandir/man1/xine-remote.1.gz
/usr/bin/aaxine
/usr/bin/fbxine
/usr/bin/xine
/usr/bin/xine-check
/usr/bin/xine-remote
%dir /usr/share/icons/hicolor
%dir /usr/share/icons/hicolor/*
%dir /usr/share/icons/hicolor/*/apps
/usr/share/icons/hicolor/*/apps/xine.png
%dir /usr/share/xine/skins
/usr/share/xine/skins/xine-ui_logo.png
/usr/share/xine/skins/xine-ui_logo-crippled.png
/usr/share/xine/skins/xine_splash.png
/usr/share/xine/skins/xinetic
/usr/share/xine/skins/CelomaChrome
/usr/share/xine/skins/caramel
/usr/share/xine/skins/lcd
%dir /usr/share/xine/visuals
/usr/share/xine/visuals/default.avi
/usr/share/applications/xine.desktop
/usr/share/xine/oxine
/usr/share/pixmaps/*
%_defaultdocdir/xine-ui
%doc %_mandir/*/man1/xine-bugreport.1.gz
%doc %_mandir/man1/xine-bugreport.1.gz
/usr/bin/xine-bugreport
%changelog