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 6)
Currently displaying revision
6
,
show latest
# # Kaffeine spec file # # norootforbuild %define major 1 %define libname libxine%{major} %define libvers 1.1.12 %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.6 Release: 54 License: GPL v2 or later Group: Productivity/Multimedia/Video/Players Url: http://kaffeine.sourceforge.net Source0: kaffeine-0.8.6.tar.bz2 Source1: cs.po Patch0: kaffeine_configure.patch Patch1: mutex.diff Patch2: kaffeine-link.diff Patch3: kaffeine-quote-subs.patch Patch4: pedantic.diff Patch5: kaffeine-tmpobject.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: %{libname} >= %{libvers} Requires: qt3 Requires: kdelibs3 Requires: libart_lgpl %if 0%{?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 BuildRequires: %{libname} >= %{libvers} BuildRequires: %{libname}-devel >= %{libvers} BuildRequires: qt3-devel BuildRequires: libart_lgpl %if 0%{?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: gstreamer010-plugins-base-devel BuildRequires: jack >= 0.109 BuildRequires: libjack0 >= 0.109 BuildRequires: libjack-devel >= 0.109 %if 0%{?suse_version} > 1020 Requires: %{name}-lang = %{version} %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> %package gstreamer Group: Productivity/Multimedia/Video/Players Summary: Multimedia Player using Gstreamer Summary(de): Multimedia Player verwendet Gstreamer %description gstreamer This plugin enables Kaffeine to play via the Gstreamer framework instead of Xine. The gstreamer backend can only get used for the visualization of audio sources. %description gstreamer -l de Dieses Plugin ermöglicht Kaffeine mit Hilfe von Gstreamer anstelle von Xine zu arbeiten. Der gstreamer Backend kann derzeit nur zur Visualisierung von Audiodaten verwendet werden. %lang_package %debug_package %prep %setup -n %{name}-%{version} %patch0 %patch1 %patch2 %patch3 %patch4 %patch5 cp %SOURCE1 po/ #. /etc/opt/kde3/common_options #update_admin %build . /etc/opt/kde3/common_options if [ ! -f configure ]; then cd .. make -f Makefile.cvs fi ./configure $configkde \ %ifarch x86_64 amd64 ia32e --enable-libsuffix=64 \ %endif %if 0%{?suse_version} == 910 --with-xinit-workaround \ %endif --disable-final %{__make} %{?jobs:-j%{jobs}} %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 kde_post_install %find_lang %name %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 %if 0%{?suse_version} > 1020 %files lang -f %name.lang %files %else %files -f %name.lang %endif %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 %files gstreamer %defattr(-,root,root) %{_kde_prefix}/%_lib/kde3/libgstreamerpart.* %{_kde_prefix}/share/apps/gstreamerpart %{_kde_prefix}/share/services/gstreamer_part.desktop %changelog * Wed Oct 03 2007 Carsten Schoene <cs@linux-administrator.com> - import for SLE_10 build