File bluez-gnome.spec of Package bluez-gnome
#
# spec file for package bluez-gnome (Version 1.8)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: bluez-gnome
BuildRequires: bluez-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: gconf2-devel
BuildRequires: gnome-patch-translation
BuildRequires: gtk2-devel
BuildRequires: hal-devel
BuildRequires: intltool
BuildRequires: libnotify-devel
BuildRequires: update-desktop-files
License: GPL v2 or later
Group: System/GUI/GNOME
Version: 1.8
Release: 8
Summary: Bluetooth helpers for GNOME
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM bluez-gnome-fix-sendto.patch bnc441677 vuntz@novell.com -- Patch taken from Fedora (patch already committed upstream)
Patch0: bluez-gnome-fix-sendto.patch
# PATCH-FEATURE-UPSTREAM bluez-gnome-wizard-custom-pin.patch bnc445821 bgo570457 vuntz@novell.com -- Allow the user to enter a custom PIN
Patch1: bluez-gnome-wizard-custom-pin.patch
# PATCH-FIX-UPSTREAM bluez-gnome-cs-typo.patch launchpad427412 sbrabec@suse.cz -- Typo fix in cs.po.
Patch2: bluez-gnome-cs-typo.patch
# PATCH-FIX-UPSTREAM bluez-gnome-add-device-from-rfcomm-crash.patch http://www.spinics.net/lists/linux-bluetooth/msg03299.html sbrabec@suse.cz -- Fix for crash after access to the configured, but not yet paired RFCOMM device.
Patch3: bluez-gnome-add-device-from-rfcomm-crash.patch
# PATCH-FIX-OPENSUSE bluez-gnome-add-LXDE-support.patch andrea@opensuse.org -- Also show bluetooth applet in LXDE environments.
Patch4: bluez-gnome-add-LXDE-support.patch
Url: http://www.bluez.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-lang = %{version}
Requires: bluez
%if %suse_version < 1100
Requires: gnome-vfs-obexftp
%else
Requires: gvfs-backends
%endif
%gconf_schemas_prereq
%description
Bluetooth helpers for GNOME
Authors:
--------
Marcel Holtmann <marcel@holtmann.org>
%lang_package
%prep
%setup -q
gnome-patch-translation-prepare
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
gnome-patch-translation-update
%build
%configure \
--disable-mime-update \
--disable-desktop-update
%__make %{?jobs:-j%jobs}
%install
%makeinstall
# FIXME: Applet has no visible desktop file. If it crashes, there is no way back.
%suse_update_desktop_file bluetooth-properties GNOME System X-SuSE-ControlCenter-System
%suse_update_desktop_file bluetooth-analyzer
%suse_update_desktop_file $RPM_BUILD_ROOT/etc/xdg/autostart/bluetooth-applet.desktop
%find_lang bluetooth-manager
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%post
if test -x %{_bindir}/update-mime-database ; then
%{_bindir}/update-mime-database %{_datadir}/mime >/dev/null
fi
%postun
if test -x %{_bindir}/update-mime-database ; then
%{_bindir}/update-mime-database %{_datadir}/mime >/dev/null
fi
%files -f %{name}.lst
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_sysconfdir}/xdg/autostart/bluetooth-applet.desktop
%{_datadir}/applications/bluetooth-analyzer.desktop
%{_datadir}/applications/bluetooth-properties.desktop
%{_datadir}/mime/packages/bluetooth-manager.xml
%{_datadir}/icons/hicolor/*/apps/*
%{_bindir}/bluetooth-analyzer
%{_bindir}/bluetooth-applet
%{_bindir}/bluetooth-browse
%{_bindir}/bluetooth-properties
%{_bindir}/bluetooth-sendto
%{_bindir}/bluetooth-wizard
%doc %{_mandir}/man?/*.*
%files lang -f bluetooth-manager.lang
%changelog