File kdemultimedia4.spec of Package kdemultimedia4

#
# spec file for package kdemultimedia4
#
# Copyright (c) 2011 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/
#



Name:           kdemultimedia4
%if %suse_version > 1110
BuildRequires:  cdparanoia-devel
%else
BuildRequires:  cdparanoia
%endif
BuildRequires:  flac-devel libao-devel libkde4-devel libmusicbrainz-devel libmusicbrainz3-devel libsamplerate-devel
BuildRequires:  libtheora-devel libtunepimp-devel libvorbis-devel speex-devel taglib-devel xine-devel xine-lib
BuildRequires:  alsa-devel gstreamer010-devel gstreamer010-plugins-base-devel libogg-devel
BuildRequires:  libknotificationitem-devel
%if %suse_version > 1110
BuildRequires:  libpulse-devel
%endif
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        kdemultimedia base package
Url:            http://www.kde.org
Version:        4.6.0
Release:        1
Source0:        kdemultimedia-%version.tar.bz2
Patch0:         4_6_BRANCH.diff
Patch1:         kmix-autostart.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Suggests:       juk
Suggests:       kmix
Suggests:       kscd
Suggests:       kio_audiocd
%if 0
Suggests:       phonon_xine
Suggests:       phonon_gst
%endif
Provides:       kdemultimedia4-devel = 3.95.1
Obsoletes:      kdemultimedia4-devel <= 3.95.1

%description
This package suggests the packages which are built from the
kdemultimedia module.

%prep
%setup -q -n kdemultimedia-%version
%patch0
%patch1
FAKE_BUILDDATE=$(LC_ALL=C date -r %{_sourcedir}/%{name}.changes '+%b %e %Y')
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" libkcompactdisc/wmlib/wm_helpers.c

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
  %create_subdir_filelist -d kioslave
  %create_subdir_filelist -d kscd
  %create_subdir_filelist -d libkcompactdisc -v libkcompactdisc.devel
  %create_subdir_filelist -d juk
  %create_subdir_filelist -d kmix
  %create_subdir_filelist -d dragonplayer
  %create_subdir_filelist -d libkcddb -v libkcddb.devel
  cd ..
  %create_exclude_filelist
  %suse_update_desktop_file kmix           AudioVideo Mixer
  %suse_update_desktop_file kscd           AudioVideo Player CD
  %suse_update_desktop_file juk            AudioVideo Player
  %suse_update_desktop_file dragonplayer   Video
#  rm -rf $RPM_BUILD_ROOT/nogo
#  rm -rf $RPM_BUILD_ROOT/%_libdir/kde4/kmix_panelapplet*
#  rm $RPM_BUILD_ROOT/usr/share/kde4/apps/kicker/applets/kmixapplet.desktop
  %kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf $RPM_BUILD_ROOT
  rm -rf filelists

%package -n dragonplayer
License:        GPLv2+
Group:          Productivity/Multimedia/Video/Players
Summary:        Multimedia Player
Url:            http://dragonplayer.org/
%kde4_runtime_requires

%description -n dragonplayer
Dragon Player is a simple KDE 4 video player.

%post -n dragonplayer -p /sbin/ldconfig

%postun -n dragonplayer -p /sbin/ldconfig

%files -n dragonplayer -f filelists/dragonplayer
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %_kde4_appsdir/solid
%dir %_kde4_appsdir/solid/actions

%package -n juk
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Players
Summary:        Jukebox
Provides:       kde4-juk = 4.3.0
Obsoletes:      kde4-juk < 4.3.0
%kde4_runtime_requires

%description -n juk
Jukebox and music manager for KDE

%post -n juk -p /sbin/ldconfig

%postun -n juk -p /sbin/ldconfig

%files -n juk -f filelists/juk
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n kmix
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Mixers
Summary:        Sound Mixer
%kde4_runtime_requires
Provides:       kdemultimedia3-mixer = 3.5.10
Obsoletes:      kdemultimedia3-mixer <= 3.5.10
Provides:       kde4-kmix = 4.3.0
Obsoletes:      kde4-kmix < 4.3.0

%description -n kmix
KDE's full featured mini mixer

%post -n kmix -p /sbin/ldconfig

%postun -n kmix -p /sbin/ldconfig

%files -n kmix -f filelists/kmix
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n kscd
License:        GPLv2+
Group:          Productivity/Multimedia/CD/Players
Summary:        CD Player
%kde4_runtime_requires
Requires:       libkcompactdisc4 = %version
Requires:       kdemultimedia4 = %version
Requires:       libkcddb4 = %version
Provides:       kdemultimedia3-CD = 3.5.1
Obsoletes:      kdemultimedia3-CD <= 3.5.1
Provides:       kde4-kscd = 4.3.0
Obsoletes:      kde4-kscd < 4.3.0
%requires_ge    libqt4-x11

%description -n kscd
KDE's CD Player

%post -n kscd -p /sbin/ldconfig

%postun -n kscd -p /sbin/ldconfig

%files -n kscd -f filelists/kscd
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %_kde4_appsdir/solid
%dir %_kde4_appsdir/solid/actions

%package -n kio_audiocd
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        KDE I/O Slave for Audio CDs
%kde4_runtime_requires
Requires:       libkcompactdisc4 = %version
Requires:       libkcddb4 = %version
Requires:       kdemultimedia4 = %version
Provides:       kdemultimedia3-CD:/opt/kde3/share/services/audiocd.protocol
Provides:       kde4-kio_audiocd = 4.3.0
Obsoletes:      kde4-kio_audiocd < 4.3.0

%description -n kio_audiocd
This package contains an KIO slave to access audio CDs.

%post -n kio_audiocd -p /sbin/ldconfig

%postun -n kio_audiocd -p /sbin/ldconfig

%files -n kio_audiocd -f filelists/kioslave
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n libkcddb4
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        KDE CDDB Library

%description -n libkcddb4
A library for retrieving and sending cddb information

%post -n libkcddb4 -p /sbin/ldconfig

%postun -n libkcddb4 -p /sbin/ldconfig

%files -n libkcddb4 -f filelists/libkcddb
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_kde4_htmldir}/en/kcontrol
%doc %lang(en) %{_kde4_htmldir}/en/kcontrol/cddbretrieval

%package -n libkcddb4-devel
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        KDE CDDB Library: Build Environment
Requires:       libkcddb4 = %version
Requires:       libkde4-devel

%description -n libkcddb4-devel
This package includes the development headers for libkcddb.

%files -n libkcddb4-devel -f filelists/libkcddb.devel
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir /usr/include/libkcddb

%package -n libkcompactdisc4
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        KDE CD Library
%requires_ge    libqt4-x11

%description -n libkcompactdisc4
libworkman is a multi-plaform CD-Player library for creating various
CD-Player-UIs.

%post -n libkcompactdisc4 -p /sbin/ldconfig

%postun -n libkcompactdisc4 -p /sbin/ldconfig

%files -n libkcompactdisc4 -f filelists/libkcompactdisc
%defattr(-,root,root)
%doc COPYING COPYING.DOC

%package -n libkcompactdisc4-devel
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        KDE CD Library: Build Environment
Requires:       libkcompactdisc4 = %version
Requires:       libkde4-devel

%description -n libkcompactdisc4-devel
This package contains the development headers for the libkcompactdisc.

%files -n libkcompactdisc4-devel -f filelists/libkcompactdisc.devel
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%dir /usr/include/libkcompactdisc

%files -f filelists/exclude
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%_kde4_bindir/mplayerthumbsconfig
%_kde4_modulesdir/videopreview.so
%_kde4_appsdir/videothumbnail
%_kde4_sharedir/config.kcfg/mplayerthumbs.kcfg
%_kde4_servicesdir/videopreview.desktop

%changelog
openSUSE Build Service is sponsored by