0116cabf5b
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-bluetooth?expand=0&rev=1584d0770a995370011050e16bfd1400
223 lines
7.1 KiB
RPMSpec
223 lines
7.1 KiB
RPMSpec
#
|
|
# spec file for package gnome-bluetooth
|
|
#
|
|
# Copyright (c) 2012 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.3.4
|
|
Release: 0
|
|
Summary: GNOME Bluetooth graphical utilities
|
|
License: GPL-2.0+
|
|
Group: System/GUI/GNOME
|
|
Url: http://live.gnome.org/GnomeBluetooth
|
|
Source: http://download.gnome.org/sources/gnome-bluetooth/3.3/%{name}-%{version}.tar.xz
|
|
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(gtk+-3.0) >= 2.90.7
|
|
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
|
|
BuildRequires: xz
|
|
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
|
|
# 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
|
|
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
|
|
Summary: GNOME Bluetooth graphical utilities -- Development Files
|
|
Group: Development/Libraries/GNOME
|
|
Requires: %{name} = %{version}
|
|
Requires: typelib-1_0-GnomeBluetooth-1_0 = %{version}
|
|
Obsoletes: libgnomebt-devel < 0.12
|
|
Provides: libgnomebt-devel = 0.12
|
|
|
|
%description devel
|
|
The gnome-bluetooth package contains graphical utilities to setup,
|
|
monitor and use Bluetooth devices.
|
|
|
|
%package -n libgnome-bluetooth10
|
|
Summary: GNOME Bluetooth graphical utilities
|
|
Group: System/Libraries
|
|
Obsoletes: libgnomebt1 <= 0.12
|
|
|
|
%description -n libgnome-bluetooth10
|
|
The gnome-bluetooth package contains graphical utilities to setup,
|
|
monitor and use Bluetooth devices.
|
|
|
|
%package -n typelib-1_0-GnomeBluetooth-1_0
|
|
Summary: GNOME Bluetooth graphical utilities -- Introspection bindings
|
|
Group: System/Libraries
|
|
|
|
%description -n typelib-1_0-GnomeBluetooth-1_0
|
|
The gnome-bluetooth package contains graphical utilities to setup,
|
|
monitor and use Bluetooth devices.
|
|
|
|
This package provides the GObject Introspection bindings for the
|
|
gnome-bluetooth library.
|
|
|
|
%package plugins-geoclue
|
|
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
|
|
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
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
|
%suse_update_desktop_file bluetooth-applet
|
|
%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-bluetooth10 -p /sbin/ldconfig
|
|
|
|
%postun -n libgnome-bluetooth10 -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-sendto.desktop
|
|
%{_datadir}/applications/bluetooth-wizard.desktop
|
|
%{_datadir}/gnome-bluetooth/
|
|
%{_datadir}/icons/hicolor/*/*/bluetooth*
|
|
%{_mandir}/man1/bluetooth-*
|
|
# 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-bluetooth10
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libgnome-bluetooth.so.*
|
|
|
|
%files -n typelib-1_0-GnomeBluetooth-1_0
|
|
%defattr(-,root,root)
|
|
%{_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
|