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 <tittiatcoke@gmail.com>
#
# 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:           bluedevil
BuildRequires:  kde4-filesystem libbluedevil-devel
BuildRequires:  libkde4-devel shared-mime-info
BuildRequires:  libpolkit-qt-devel update-desktop-files
License:        GPLv2+
Url:            http://www.kde.org
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

%kde4_runtime_requires

%description
Bluetooth daemon for KDE, handling connections



Author(s):
  Alex Fiestas <alex@eyeos.org>
  Eduardo Robles Elvira <edulix@gmail.com> 
  Rafael Fernandez Lopez <ereslibre@kde.org>
  UFO Coders <info@ufocoders.com>


%lang_package
%prep
%setup -q -n bluedevil-%version

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

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

%clean
rm -rf $RPM_BUILD_ROOT

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

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

%files lang -f %{name}.lang

%files
%defattr(-,root,root)
%dir %_kde4_appsdir/bluedevil
%dir %_kde4_appsdir/bluedevilwizard
%{_libdir}/libbluedevilaction.so
%{_kde4_modulesdir}/kded_bluedevil.so
%{_kde4_modulesdir}/bluedevil*.so
%{_kde4_modulesdir}/kcm_bluedeviladapters.so
%{_kde4_modulesdir}/kcm_bluedevildevices.so
%{_kde4_modulesdir}/kcm_bluedeviltransfer.so
%{_kde4_modulesdir}/kio_bluetooth.so
%{_kde4_modulesdir}/kio_obexftp.so
%{_kde4_modulesdir}/kded_obexftpdaemon.so
%{_kde4_servicesdir}/kded/bluedevil.desktop
%{_kde4_servicesdir}/bluedevil-audio.desktop
%{_kde4_servicesdir}/bluedevil-input.desktop
%{_kde4_servicesdir}/bluedeviladapters.desktop
%{_kde4_servicesdir}/bluedevildevices.desktop
%{_kde4_servicesdir}/bluedeviltransfer.desktop
%{_kde4_servicesdir}/bluetooth.protocol
%{_kde4_servicesdir}/obexftp.protocol
%{_kde4_servicesdir}/sendfile.desktop
%{_kde4_servicesdir}/kded/obexftpdaemon.desktop
%{_kde4_servicetypesdir}/actionplugin.desktop
%{_kde4_bindir}/bluedevil-*
%{_kde4_appsdir}/bluedevil/bluedevil.notifyrc
%{_kde4_appsdir}/bluedevilwizard/pin-code-database.xml
/usr/share/dbus-1/services/org.kde.BlueDevil.Service.service
/usr/share/pixmaps/preferences-system-bluetooth.png
/usr/share/mime/packages/bluedevil-mime.xml
/usr/include/actionplugin.h
/usr/share/applications/kde4/bluedevil*desktop

%changelog