2007-01-10 17:42:14 +01:00
#
2011-02-18 15:42:11 +01:00
# spec file for package gnome-bluetooth
2007-01-10 17:42:14 +01:00
#
2012-01-05 10:33:31 +01:00
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-10 17:42:14 +01:00
#
2009-02-23 12:49:39 +01:00
# 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.
2007-01-10 17:42:14 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-01-19 16:55:32 +01:00
2012-09-07 17:37:31 +02:00
%define BUILD_FROM_VCS 1
2007-01-10 17:42:14 +01:00
Name : gnome-bluetooth
2012-09-07 17:37:31 +02:00
Version : 3.5.5
2011-12-21 06:06:03 +01:00
Release : 0
2010-08-09 23:32:24 +02:00
Summary : GNOME Bluetooth graphical utilities
2011-12-21 06:06:03 +01:00
License : GPL-2.0+
2010-08-09 23:32:24 +02:00
Group : System/GUI/GNOME
2011-12-21 06:06:03 +01:00
Url : http://live.gnome.org/GnomeBluetooth
2012-09-07 17:37:31 +02:00
Source : http://download.gnome.org/sources/gnome-bluetooth/3.5/%{name} -%{version} .tar.xz
2011-02-18 15:51:23 +01:00
Source1 : 61-gnome-bluetooth-rfkill.rules
2012-09-07 17:37:31 +02:00
# PATCH-FIX-UPSTREAM lxde-support.patch bgo#683054 andrea@opensuse.org -- Use gnome-bluetooth applet on LXDE Desktop.
2010-08-09 23:32:24 +02:00
Patch0 : lxde-support.patch
2009-04-24 19:40:50 +02:00
BuildRequires : fdupes
BuildRequires : gnome-doc-utils-devel
2009-12-15 11:50:40 +01:00
BuildRequires : gobject-introspection-devel
2009-02-23 12:49:39 +01:00
BuildRequires : intltool
2011-04-25 11:44:37 +02:00
BuildRequires : translation-update-upstream
BuildRequires : update-desktop-files
2011-08-17 22:31:36 +02:00
BuildRequires : pkgconfig(gtk+-3.0) >= 2.90.7
2012-09-07 17:37:31 +02:00
BuildRequires : pkgconfig(libnotify)
2011-04-25 11:38:08 +02:00
BuildRequires : pkgconfig(nautilus-sendto)
%if 0%{?BUILD_FROM_VCS}
BuildRequires : gnome-common
BuildRequires : gtk-doc
%endif
2010-08-09 23:32:24 +02:00
# Require bluez (mandatory, as per readme, bnc#622946)
Requires : bluez >= 4.36
# Require obexd for bluetooth-sendto to work (bnc#622946)
2011-04-25 11:38:08 +02:00
Requires : obexd-client
2011-02-13 22:06:51 +01:00
Recommends: %{name} -lang
2012-01-11 10:58:46 +01:00
# Recommend gnome-control-center for bluetooth setup to work (bnc#732689). It's not a Requires to avoid a build loop between NetworkManager-gnome and gnome-control-center.
Recommends: gnome-control-center
2009-04-07 12:55:59 +02:00
Provides : bluez-gnome = 1.8
Obsoletes : bluez-gnome < 1.8
2010-08-09 23:32:24 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%glib2_gsettings_schema_requires
2007-01-10 17:42:14 +01:00
%description
2009-04-07 12:55:59 +02:00
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.
2007-10-26 01:58:20 +02:00
2009-04-07 12:55:59 +02:00
%package devel
2011-12-21 06:06:03 +01:00
Summary : GNOME Bluetooth graphical utilities -- Development Files
2007-10-26 01:58:20 +02:00
Group : Development/Libraries/GNOME
2010-08-09 23:32:24 +02:00
Requires : %{name} = %{version}
2011-12-12 16:55:27 +01:00
Requires : typelib-1_0-GnomeBluetooth-1_0 = %{version}
2009-04-07 12:55:59 +02:00
Obsoletes : libgnomebt-devel < 0.12
Provides : libgnomebt-devel = 0.12
2007-01-10 17:42:14 +01:00
2009-04-07 12:55:59 +02:00
%description devel
2011-12-21 06:06:03 +01:00
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.
2007-01-10 17:42:14 +01:00
2012-09-07 17:37:31 +02:00
%package -n libgnome-bluetooth11
2009-04-07 12:55:59 +02:00
Summary : GNOME Bluetooth graphical utilities
2011-12-21 06:06:03 +01:00
Group : System/Libraries
2009-04-07 12:55:59 +02:00
Obsoletes : libgnomebt1 <= 0.12
2012-09-07 17:37:31 +02:00
%description -n libgnome-bluetooth11
2009-04-07 12:55:59 +02:00
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.
2007-10-26 01:58:20 +02:00
2011-12-12 16:55:27 +01:00
%package -n typelib-1_0-GnomeBluetooth-1_0
2011-12-21 06:06:03 +01:00
Summary : GNOME Bluetooth graphical utilities -- Introspection bindings
Group : System/Libraries
2011-12-12 16:55:27 +01:00
%description -n typelib-1_0-GnomeBluetooth-1_0
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.
2011-12-21 06:06:03 +01:00
This package provides the GObject Introspection bindings for the
gnome-bluetooth library.
2009-08-01 11:26:31 +02:00
%package plugins-geoclue
Summary : GNOME Bluetooth Support
Group : System/GUI/GNOME
Requires : %{name} = %{version}
2010-08-30 12:23:15 +02:00
Supplements: packageand(%{name} :geoclue)
2009-08-01 11:26:31 +02:00
%description plugins-geoclue
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.
2009-12-15 11:50:40 +01:00
%package -n nautilus-sendto-plugin-bluetooth
Summary : Bluetooth plugin for nautilus-sendto
Group : Productivity/File utilities
Requires : %{name} = %{version}
Supplements: packageand{%{name} :nautilus-sendto}
%description -n nautilus-sendto-plugin-bluetooth
This package provides the functionality to the Nautilus file browser to
send files over bluetooth.
2007-08-09 16:29:47 +02:00
%lang_package
2007-01-10 17:42:14 +01:00
%prep
%setup -q
2009-04-07 12:55:59 +02:00
translation-update-upstream
2009-12-15 11:50:40 +01:00
%patch0 -p1
2007-01-10 17:42:14 +01:00
2011-04-25 11:38:08 +02:00
%if 0%{?BUILD_FROM_VCS}
2012-09-07 17:37:31 +02:00
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh || NOCONFIGURE=1 gnome-autogen.sh
2011-04-25 11:38:08 +02:00
%endif
2011-05-05 14:14:58 +02:00
2007-01-10 17:42:14 +01:00
%build
2010-08-09 23:32:24 +02:00
%configure \
2011-04-25 11:38:08 +02:00
--disable-icon-update \
--disable-scrollkeeper \
--disable-desktop-update \
%if 0%{?BUILD_FROM_VCS}
--enable-gtk-doc \
%endif
--enable-nautilus-sendto=yes\
--enable-introspection
2012-09-07 17:37:31 +02:00
make %{?_smp_mflags} V=1
2007-01-10 17:42:14 +01:00
%install
2012-09-07 17:37:31 +02:00
%make_install
2011-11-28 09:19:53 +01:00
find %{buildroot} %{_libdir} -name '*.la' -type f -delete -print
2010-09-13 12:35:40 +02:00
%suse_update_desktop_file bluetooth-applet
2011-04-25 11:38:08 +02:00
%suse_update_desktop_file bluetooth-sendto
%suse_update_desktop_file bluetooth-wizard
2011-02-13 22:06:51 +01:00
%find_lang %{name} 2 %{?no_lang_C}
%find_lang %{name} %{?no_lang_C} %{name} 2.lang
2011-02-18 15:51:23 +01:00
install -m0644 -D %{SOURCE1} %{buildroot} /lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
2010-08-09 23:32:24 +02:00
%fdupes %{buildroot}
2007-08-09 16:29:47 +02:00
2007-01-10 17:42:14 +01:00
%clean
2010-08-09 23:32:24 +02:00
rm -rf %{buildroot}
%post
%glib2_gsettings_schema_post
2011-02-13 22:06:51 +01:00
%desktop_database_post
%icon_theme_cache_post
2009-08-01 11:26:31 +02:00
2010-08-09 23:32:24 +02:00
%postun
%glib2_gsettings_schema_postun
2011-02-13 22:06:51 +01:00
%desktop_database_postun
%icon_theme_cache_postun
2007-10-26 01:58:20 +02:00
2010-08-09 23:32:24 +02:00
%post -n nautilus-sendto-plugin-bluetooth
%glib2_gsettings_schema_post
2007-10-26 01:58:20 +02:00
2010-08-09 23:32:24 +02:00
%postun -n nautilus-sendto-plugin-bluetooth
%glib2_gsettings_schema_postun
2009-04-07 12:55:59 +02:00
2012-09-07 17:37:31 +02:00
%post -n libgnome-bluetooth11 -p /sbin/ldconfig
2009-04-07 12:55:59 +02:00
2012-09-07 17:37:31 +02:00
%postun -n libgnome-bluetooth11 -p /sbin/ldconfig
2010-08-06 11:56:58 +02:00
2010-08-09 23:32:24 +02:00
%files
2007-01-10 17:42:14 +01:00
%defattr (-, root, root)
2011-04-25 11:38:08 +02:00
%doc AUTHORS COPYING NEWS README
2011-02-13 22:06:51 +01:00
%dir %{_datadir} /gnome/
%dir %{_datadir} /gnome/help/
%dir %{_datadir} /gnome/help/%{name} /
%doc %{_datadir} /gnome/help/%{name} /C/
%dir %{_datadir} /omf/
%dir %{_datadir} /omf/%{name} /
%doc %{_datadir} /omf/%{name} /%{name} -C.omf
2011-02-18 15:42:11 +01:00
/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
2009-04-07 12:55:59 +02:00
%{_bindir} /bluetooth-*
%{_sysconfdir} /xdg/autostart/bluetooth-applet.desktop
2011-04-25 11:38:08 +02:00
%{_datadir} /applications/bluetooth-sendto.desktop
2011-04-25 11:44:37 +02:00
%{_datadir} /applications/bluetooth-wizard.desktop
2010-08-09 23:32:24 +02:00
%{_datadir} /gnome-bluetooth/
2009-04-24 19:40:50 +02:00
%{_datadir} /icons/hicolor/*/*/bluetooth*
2009-04-07 12:55:59 +02:00
%{_mandir} /man1/bluetooth-*
2009-08-01 11:26:31 +02:00
# Own the plugin directory, but exclude the plugin library itself
%dir %{_libdir} /gnome-bluetooth
2011-04-25 11:38:08 +02:00
%{_libdir} /gnome-bluetooth/libgnome-bluetooth-applet.*
%{_libdir} /gnome-bluetooth/GnomeBluetoothApplet-1.0.typelib
2009-08-01 11:26:31 +02:00
%dir %{_libdir} /gnome-bluetooth/plugins
# Exclude files which are in another package
%exclude %{_libdir} /gnome-bluetooth/plugins/libgbtgeoclue.so
2007-01-10 17:42:14 +01:00
2009-04-07 12:55:59 +02:00
%files lang -f %{name}2.lang
2007-08-09 16:29:47 +02:00
2012-09-07 17:37:31 +02:00
%files -n libgnome-bluetooth11
2009-04-07 12:55:59 +02:00
%defattr (-,root,root,-)
%{_libdir} /libgnome-bluetooth.so.*
2011-12-12 16:55:27 +01:00
%files -n typelib-1_0-GnomeBluetooth-1_0
%defattr (-,root,root)
2010-09-24 00:25:23 +02:00
%{_libdir} /girepository-1.0/GnomeBluetooth-1.0.typelib
2007-10-26 01:58:20 +02:00
2009-04-07 12:55:59 +02:00
%files devel
2007-01-10 17:42:14 +01:00
%defattr (-, root, root)
%{_includedir} /gnome-bluetooth
2009-04-07 12:55:59 +02:00
%{_libdir} /libgnome-bluetooth.so
%{_libdir} /pkgconfig/gnome-bluetooth-1.0.pc
2010-09-24 00:25:23 +02:00
%{_datadir} /gir-1.0/*.gir
2009-04-07 12:55:59 +02:00
%{_datadir} /gtk-doc/html/gnome-bluetooth
2008-02-01 21:32:50 +01:00
2009-08-01 11:26:31 +02:00
%files plugins-geoclue
%defattr (-,root,root,-)
%{_libdir} /gnome-bluetooth/plugins/libgbtgeoclue.so
2009-12-15 11:50:40 +01:00
%files -n nautilus-sendto-plugin-bluetooth
%defattr (-,root,root,-)
2010-08-09 23:32:24 +02:00
%{_datadir} /GConf/gsettings/gnome-bluetooth-nst
%{_datadir} /glib-2.0/schemas/org.gnome.Bluetooth.nst.gschema.xml
2009-12-15 11:50:40 +01:00
%{_libdir} /nautilus-sendto/plugins/libnstbluetooth.so
2007-02-19 21:32:45 +01:00
%changelog