File xine-ui.spec of Package xine-ui

#
# spec file for package xine-ui (Version 0.99.5)
#
# Copyright (c) 2009 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:        222
License:        GPL v2 or later; 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

%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

%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
* Mon May 25 2009 lnussel@suse.de
- lirc -> lirc-devel in BuildRequires
* Fri Sep 26 2008 mhopf@suse.de
- Fix broken locale support.
* Fri Aug 22 2008 lnussel@suse.de
- include skins previously contained in xine-extra package
* Tue Feb 26 2008 crrodriguez@suse.de
- use find_lang macro
* Tue Jan 29 2008 lnussel@suse.de
- fix path to logo image
* Fri May 04 2007 mhopf@suse.de
- Update to 0.99.5:
  * Included many patches upstream
  * Updated language translations.
  * Handle audio amp level event.
  * Further VDR keys added.
  * Harmonized appearance of non-skinned windows with more space
  * Shortcut keys unused in a particular window work transparent now,
  i.e. as configured by their key bindings
  * Added support for gnome screen saver
  * Fixes and improvements for appearance and behaviour
  * Video window: User magnification ignored and auto-resizing on new stream
  maintained in background if not in visible windowed mode.
  * Improved positioning of menu windows and menu navigation by keyboard
  * OSD improvements in xitk
  * followed freedesktop standards (desktop file and icons)
  * support gapless playback while switching streams (requires xine-lib >= 1.1.1)
  * Many additional fixes and enhancements ...
* Mon Jan 15 2007 mhopf@suse.de
- Update of formatstrings security fix.
* Fri Jan 12 2007 mhopf@suse.de
- Security: Fix multiple missing "%%s" formatstrings. #233516
* Wed Oct 11 2006 mhopf@suse.de
- Fixed for building w/o automake.
- Spec file cleanup.
* Tue Oct 10 2006 mhopf@suse.de
- Fixed detection of crippled package for general playback (mpeg2 + ffmpeg).
* Wed Sep 27 2006 lnussel@suse.de
- build package separate from xine-lib
openSUSE Build Service is sponsored by