File gnome-bluetooth.spec of Package gnome-bluetooth

#
# spec file for package gnome-bluetooth
#
# Copyright (c) 2016 SUSE LINUX 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.20.0
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.20/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.12.0
BuildRequires:  pkgconfig(libcanberra-gtk3)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(udev)
# Require bluez (mandatory, as per readme, bnc#622946)
Requires:       bluez >= 5
# 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
# nautilus-sendto-plugin-bluetooth has been removed in version 3.7.4
Obsoletes:      nautilus-sendto-plugin-bluetooth < 3.7.4
# gnome-bluetooth-plugins-geoclue (and entire plugin support) was removed in version 3.11.3
Obsoletes:      gnome-bluetooth-plugins-geoclue < 3.11.3
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%define _udevdir %(pkg-config --variable udevdir udev)

%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-bluetooth13
Summary:        GNOME Bluetooth graphical utilities
Group:          System/Libraries
Obsoletes:      libgnomebt1 <= 0.12

%description -n libgnome-bluetooth13
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.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure      \
        --disable-icon-update \
        --disable-desktop-update \
        --enable-introspection
make %{?_smp_mflags} V=1

%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file bluetooth-sendto
%find_lang %{name}2 %{?no_lang_C}
%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 libgnome-bluetooth13 -p /sbin/ldconfig

%postun -n libgnome-bluetooth13 -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/bluetooth-*
%{_datadir}/applications/bluetooth-sendto.desktop
%{_datadir}/gnome-bluetooth/
%{_datadir}/icons/hicolor/*/*/bluetooth*
%{_mandir}/man1/bluetooth-*

%files lang -f %{name}2.lang

%files -n libgnome-bluetooth13
%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

%changelog
openSUSE Build Service is sponsored by