gnome-bluetooth/gnome-bluetooth.spec

226 lines
7.2 KiB
RPMSpec

#
# spec file for package gnome-bluetooth
#
# Copyright (c) 2011 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/
#
Name: gnome-bluetooth
Version: 3.0.0
Release: 1
License: GPLv2+
Summary: GNOME Bluetooth graphical utilities
Url: http://live.gnome.org/GnomeBluetooth
Group: System/GUI/GNOME
Source: http://download.gnome.org/sources/gnome-bluetooth/2.27/gnome-bluetooth-%{version}.tar.bz2
Source1: 61-gnome-bluetooth-rfkill.rules
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch0: lxde-support.patch
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: libnotify-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libgnome-control-center)
BuildRequires: pkgconfig(nautilus-sendto)
%if 0%{?BUILD_FROM_VCS}
BuildRequires: gnome-common
BuildRequires: gtk-doc
%endif
# Require bluez (mandatory, as per readme, bnc#622946)
Requires: bluez >= 4.36
# Require obexd for bluetooth-sendto to work (bnc#622946)
Requires: obexd-client
Recommends: %{name}-lang
Provides: bluez-gnome = 1.8
Obsoletes: bluez-gnome < 1.8
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.
%package devel
License: GPLv2+
Summary: GNOME Bluetooth Support
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
Requires: gtk2-devel
Obsoletes: libgnomebt-devel < 0.12
Provides: libgnomebt-devel = 0.12
%description devel
This package contains a controller class, GnomebtController, to control
Bluetooth devices and a simple GUI to explore which devices are
available (gnome-bluetooth-manager). An OBEX server is available,
gnome-obex-server. This receives files sent via Bluetooth to your PC
and saves them in your home directory. The program gnome-obex-send
enables you to send files. It is used by the Nautilus component --
select the files you want to send and choose "Send via Bluetooth..."
from the context menu.
%package -n libgnome-bluetooth8
License: GPLv2+
Summary: GNOME Bluetooth graphical utilities
Group: System/GUI/GNOME
Obsoletes: libgnomebt1 <= 0.12
%description -n libgnome-bluetooth8
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.
%package plugins-geoclue
License: GPLv2+
Summary: GNOME Bluetooth Support
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Supplements: packageand(%{name}:geoclue)
%description plugins-geoclue
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.
%package -n nautilus-sendto-plugin-bluetooth
License: GPLv2+
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.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
%if 0%{?BUILD_FROM_VCS}
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%endif
%build
%configure \
--disable-icon-update \
--disable-scrollkeeper \
--disable-desktop-update \
%if 0%{?BUILD_FROM_VCS}
--enable-gtk-doc \
%endif
--enable-nautilus-sendto=yes\
--enable-introspection
%__make %{?_smp_mflags} V=1
%install
%makeinstall
# keep libgnome-bluetooth-applet.la
rm -f %{buildroot}%{_libdir}/libgnome-bluetooth.la \
%{buildroot}%{_libdir}/gnome-bluetooth/plugins/*.la \
%{buildroot}%{_libdir}/nautilus-sendto/plugins/*.la \
%{buildroot}/%{_libdir}/control-center-1/panels/libbluetooth.la
%suse_update_desktop_file bluetooth-applet
%suse_update_desktop_file bluetooth-properties
%suse_update_desktop_file bluetooth-sendto
%suse_update_desktop_file bluetooth-wizard
%find_lang %{name}2 %{?no_lang_C}
%find_lang %{name} %{?no_lang_C} %{name}2.lang
install -m0644 -D %{SOURCE1} %{buildroot}/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%post -n nautilus-sendto-plugin-bluetooth
%glib2_gsettings_schema_post
%postun -n nautilus-sendto-plugin-bluetooth
%glib2_gsettings_schema_postun
%post -n libgnome-bluetooth8 -p /sbin/ldconfig
%postun -n libgnome-bluetooth8 -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README
%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
/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
%{_bindir}/bluetooth-*
%{_sysconfdir}/xdg/autostart/bluetooth-applet.desktop
%{_datadir}/applications/bluetooth-properties.desktop
%{_datadir}/applications/bluetooth-sendto.desktop
%{_datadir}/applications/bluetooth-wizard.desktop
%{_datadir}/gnome-bluetooth/
%{_datadir}/icons/hicolor/*/*/bluetooth*
%{_mandir}/man1/bluetooth-*
%{_libdir}/control-center-1/panels/libbluetooth.so
# Own the plugin directory, but exclude the plugin library itself
%dir %{_libdir}/gnome-bluetooth
%{_libdir}/gnome-bluetooth/libgnome-bluetooth-applet.*
%{_libdir}/gnome-bluetooth/GnomeBluetoothApplet-1.0.typelib
%dir %{_libdir}/gnome-bluetooth/plugins
# Exclude files which are in another package
%exclude %{_libdir}/gnome-bluetooth/plugins/libgbtgeoclue.so
%files lang -f %{name}2.lang
%files -n libgnome-bluetooth8
%defattr(-,root,root,-)
%{_libdir}/libgnome-bluetooth.so.*
%{_libdir}/girepository-1.0/GnomeBluetooth-1.0.typelib
%files devel
%defattr(-, root, root)
%{_includedir}/gnome-bluetooth
%{_libdir}/libgnome-bluetooth.so
%{_libdir}/pkgconfig/gnome-bluetooth-1.0.pc
%{_datadir}/gir-1.0/*.gir
%{_datadir}/gtk-doc/html/gnome-bluetooth
%files plugins-geoclue
%defattr(-,root,root,-)
%{_libdir}/gnome-bluetooth/plugins/libgbtgeoclue.so
%files -n nautilus-sendto-plugin-bluetooth
%defattr(-,root,root,-)
%{_datadir}/GConf/gsettings/gnome-bluetooth-nst
%{_datadir}/glib-2.0/schemas/org.gnome.Bluetooth.nst.gschema.xml
%{_libdir}/nautilus-sendto/plugins/libnstbluetooth.so
%changelog