Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
kaffeine
> kaffeine.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File kaffeine.spec of Package kaffeine (Revision 2)
Currently displaying revision
2
,
show latest
# norootforbuild %define major 1 %define libname libxine%{major} %define libvers 1 %define _kde_prefix %(. /etc/opt/kde3/common_options; echo $prefix) %define _kde_mimedir %(. /etc/opt/kde3/common_options; echo $kde_mimedir) %define _mimetypebase %(if [ "release" = "release" ] ; then echo "kaffeine/mimetypes/application/"; else echo "mimetypes/application/"; fi) Name: kaffeine Summary: A xine-based Media Player for KDE3 Summary(de): Ein xine-basierender Media Player für KDE3 Version: 0.8.5 Release: 0.pm.1 License: GPL Group: Productivity/Multimedia/Video/Players Url: http://kaffeine.sourceforge.net Source0: kaffeine-0.8.5.tar.bz2 Patch0: kaffeine_remove_atsc.patch Patch1: kaffeine_configure.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: %{libname} >= %{libvers} Requires: qt3 >= %( echo `rpm -q --queryformat '%{VERSION}' qt3` | cut -b 1-3 ) Requires: kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3` | cut -b 1-3 ) Requires: libart_lgpl %if %suse_version >= 920 Requires: xorg-x11-libs %else Requires: XFree86-libs %endif Requires: freetype2 Requires: zlib Requires: libgcc Requires: libpng Requires: cdparanoia Requires: libogg Requires: libvorbis Requires: lame #%if %suse_version > 1001 #Requires: gstreamer010 #Requires: gstreamer010-plugins-base #%else #Requires: gstreamer #Requires: gstreamer-plugins-base #%endif BuildRequires: %{libname} >= %{libvers} BuildRequires: %{libname}-devel >= %{libvers} BuildRequires: qt3-devel BuildRequires: libart_lgpl %if %suse_version >= 920 BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-libs %else BuildRequires: XFree86-devel %endif BuildRequires: freetype2-devel BuildRequires: zlib-devel BuildRequires: fam-devel BuildRequires: libpng-devel BuildRequires: kdebase3-devel BuildRequires: kdebase3 BuildRequires: kdelibs3-devel BuildRequires: kdelibs3 BuildRequires: update-desktop-files BuildRequires: cdparanoia BuildRequires: gcc-c++ BuildRequires: libjpeg-devel BuildRequires: cdparanoia BuildRequires: libogg BuildRequires: libogg-devel BuildRequires: libvorbis BuildRequires: libvorbis-devel BuildRequires: lame BuildRequires: libjack0 libjack-devel #%if %suse_version > 1001 #BuildRequires: gstreamer010-plugins-base-devel #BuildRequires: unsermake #%else #BuildRequires: gstreamer-plugins-devel #%endif Provides: kaxtv Obsoletes: kaxtv %description Kaffeine plays all files and devices supported by xine. For example: MPEG files, AVI (if the codec being used is supported by xine), MP3, and Ogg Vorbis. It also handles Video CDs, DVD, and DVB cards. Authors: -------- Jürgen Kofler <kaffeine@gmx.net> %description -l de Kaffeine spielt alle Dateien und Devices, die von xine unterstützt werden. Zum Beispiel: MPEG Dateien, AVI (soweit der Codec von xine unterstützt wird), MP3, und Ogg Vorbis. Es werden auch Video CDs, DVD, und DVB-Karten unterstützt. Autor: ------ Jürgen Kofler <kaffeine@gmx.net> %prep %setup -n %{name}-%{version} %if %suse_version <= 930 %patch0 -p1 %endif %patch1 -p0 %build . /etc/opt/kde3/common_options if [ -f configure ]; then ./configure $configkde --without-gstreamer \ %ifarch x86_64 amd64 ia32e --enable-libsuffix=64 \ %endif %if %suse_version == 910 --with-xinit-workaround \ %endif --disable-final %__make else unsermake fi %install . /etc/opt/kde3/common_options [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %makeinstall %suse_update_desktop_file -r kaffeine KDE AudioVideo Player Video if [ "release" = "release" ] ; then %find_lang %name else echo "" > %name.lang fi touch CREDITS %{__rm} -f %{buildroot}%{_kde_mimedir}/application/x-mplayer2.desktop %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %post case "$1" in 1) # new install if [ ! -e %{_kde_mimedir}/application/x-mplayer2.desktop ]; then %{__ln_s} %{_datadir}/doc/packages/kaffeine/x-mplayer2.desktop %{_kde_mimedir}/application/x-mplayer2.desktop fi ;; 2) # upgrade/reinstall if [ ! -e %{_kde_mimedir}/application/x-mplayer2.desktop ]; then %{__ln_s} %{_datadir}/doc/packages/kaffeine/x-mplayer2.desktop %{_kde_mimedir}/application/x-mplayer2.desktop fi ;; esac %run_ldconfig %postun if [ "$1" = "0" ]; then # remove if [ -L %{_kde_mimedir}/application/x-mplayer2.desktop ]; then %{__rm} -f %{_kde_mimedir}/application/x-mplayer2.desktop fi fi %run_ldconfig %files -f %name.lang %defattr(-,root,root) %doc %{_mimetypebase}x-mplayer2.desktop AUTHORS ChangeLog COPYING CREDITS INSTALL README* TODO %{_kde_prefix}/bin/* %{_kde_prefix}/include/kaffeine %{_kde_prefix}/%_lib/lib* %{_kde_prefix}/%_lib/kde3/libxine*.* %{_kde_prefix}/%_lib/kde3/libkaffeine*.* %{_kde_prefix}/share/appl*/*/* %{_kde_prefix}/share/apps/kaffeine %{_kde_prefix}/share/apps/konqueror %{_kde_prefix}/share/apps/profiles %{_kde_prefix}/share/icons/* %{_kde_mimedir}/application/*.desktop %{_kde_prefix}/share/services/xine*.desktop %{_kde_prefix}/share/services/kaffeine*.desktop %{_kde_prefix}/share/servicetypes/kaffeine*.desktop %changelog * Wed Oct 03 2007 Carsten Schoene <cs@linux-administrator.com> - import for SLE_10 build