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/
#
Name: bluedevil
Version: 1.2.2
Release: 1
Summary: Bluetooth Manager for KDE
License: GPLv2+
Url: http://www.kde.org/
Group: Hardware/Other
Source0: %{name}-%{version}.tar.bz2
#Source0: ftp://ftp.kde.org/pub/kde/stable/bluedevil/%{version}/src/%{name}-%{version}.tar.bz2
Source1: preferences-system-bluetooth.png
Patch0: typo2.diff
Patch1: bluedevil-dont-install-headers.diff
Patch2: bluedevil-obexsession-iterators.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libbluedevil-devel
BuildRequires: libkde4-devel
BuildRequires: shared-mime-info
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
Requires: obex-data-server
%if %suse_version > 1130
Requires: obexd-client
%else
Requires: obexd
%endif
Recommends: %{name}-lang = %{version}
Provides: kbluetooth = %{version}
Obsoletes: kbluetooth < %{version}
%kde4_runtime_requires
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
%description
Bluetooth daemon for KDE, handling connections.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
cd ..
install -D -pm 0644 %{SOURCE1} %{buildroot}%{_kde4_iconsdir}/hicolor/64x64/apps/preferences-system-bluetooth.png
%if 0%{?suse_version}
%suse_update_desktop_file -r bluedevil-monolithic Qt KDE Utility DesktopUtility
%endif
%find_lang %{name}
%kde_post_install
%clean
rm -rf %{buildroot}
%post
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
%postun
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
%files
%defattr(-,root,root,-)
%doc README
%{_datadir}/dbus-1/services/org.kde.BlueDevil.Service.service
%{_datadir}/mime/packages/bluedevil-mime.xml
%{_kde4_applicationsdir}/bluedevil-*.desktop
%{_kde4_appsdir}/bluedevil/
%{_kde4_appsdir}/bluedevilwizard/
%{_kde4_bindir}/bluedevil-*
%{_kde4_iconsdir}/hicolor/64x64/apps/preferences-system-bluetooth.png
#%{_kde4_includedir}/actionplugin.h
%{_kde4_libdir}/libbluedevilaction.so
%{_kde4_libexecdir}/bluedevil-*
%{_kde4_modulesdir}/bluedevil*.so
%{_kde4_modulesdir}/bluetoothfileitemaction.so
%{_kde4_modulesdir}/kcm_bluedevil*.so
%{_kde4_modulesdir}/kded_bluedevil.so
%{_kde4_modulesdir}/kded_obexftpdaemon.so
%{_kde4_modulesdir}/kio_bluetooth.so
%{_kde4_modulesdir}/kio_obexftp.so
%{_kde4_servicesdir}/bluedevil*.desktop
%{_kde4_servicesdir}/bluetooth.protocol
%{_kde4_servicesdir}/kded/bluedevil.desktop
%{_kde4_servicesdir}/kded/obexftpdaemon.desktop
%{_kde4_servicesdir}/obexftp.protocol
%{_kde4_servicesdir}/sendfile.desktop
%{_kde4_servicetypesdir}/actionplugin.desktop
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%changelog