File bluedevil.spec of Package bluedevil

# spec file for package bluedevil
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Raymond Wooninck <>
# 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

# norootforbuild

Name:           bluedevil
BuildRequires:  kde4-filesystem libbluedevil-devel
BuildRequires:  libkde4-devel shared-mime-info
BuildRequires:  libpolkit-qt-devel update-desktop-files
License:        GPLv2+
Summary:        A new bluetooth manager for KDE 4
Group:          System/GUI/KDE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A new bluetooth manager for KDE 4
Version:        1.0.2
Release:        3.<RELEASE3>
Source0:        %{name}-%version.tar.bz2
Source1:        preferences-system-bluetooth.png
Requires(post):     shared-mime-info
Requires(postun):   shared-mime-info
Recommends:     %{name}-lang
Provides:       kbluetooth = 0.4.2
Obsoletes:      kbluetooth <= 0.4.2


Bluetooth daemon for KDE, handling connections

  Alex Fiestas <>
  Eduardo Robles Elvira <> 
  Rafael Fernandez Lopez <>
  UFO Coders <>

%setup -q -n bluedevil-%version

  %cmake_kde4 -d build -- -DCONFIG_INSTALL_DIR=/etc

  cd build
  install -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/usr/share/pixmaps/preferences-system-bluetooth.png
  %suse_update_desktop_file -r bluedevil-monolithic Utility DesktopUtility
  cd ..
  %find_lang %{name}


/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :

/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :

%files lang -f %{name}.lang

%dir %_kde4_appsdir/bluedevil
%dir %_kde4_appsdir/bluedevilwizard