gnome-bluetooth/gnome-bluetooth.spec

214 lines
6.9 KiB
RPMSpec
Raw Normal View History

#
# 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: 2.32.0
Release: 2
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
# PATCH-FIX-UPSTREAM gnome-bluetooth-fix-introspection-build.patch bgo#630024 vuntz@opensuse.org -- Fix build with recent gobject-introspection
Patch1: gnome-bluetooth-fix-introspection-build.patch
BuildRequires: fdupes
# Needed for geoclue plugin
BuildRequires: gconf2-devel
# Needed for patch1 gnome-bluetooth-fix-parallel-build.patch
BuildRequires: gnome-common
BuildRequires: gnome-doc-utils-devel
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: libnotify-devel
BuildRequires: libunique-devel
BuildRequires: nautilus-sendto-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
# Require bluez (mandatory, as per readme, bnc#622946)
Requires: bluez >= 4.36
# Require obexd for bluetooth-sendto to work (bnc#622946)
Requires: obexd
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
%patch1 -p1
%build
NOCONFIGURE=1 gnome-autogen.sh
%configure \
--disable-icon-update \
--disable-scrollkeeper \
--disable-desktop-update \
--enable-introspection
%__make %{?_smp_mflags}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
install -m0644 -D %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file bluetooth-properties
%suse_update_desktop_file bluetooth-applet
%find_lang %{name}2 %{?no_lang_C}
%find_lang %{name} %{?no_lang_C} %{name}2.lang
%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 ChangeLog 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}/GConf/gsettings/gnome-bluetooth
%{_datadir}/glib-2.0/schemas/org.gnome.Bluetooth.gschema.xml
%{_datadir}/gnome-bluetooth/
%{_datadir}/icons/hicolor/*/*/bluetooth*
%{_mandir}/man1/bluetooth-*
# Own the plugin directory, but exclude the plugin library itself
%dir %{_libdir}/gnome-bluetooth
%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