File gnome-bluetooth.spec of Package gnome-bluetooth

#
# spec file for package gnome-bluetooth
#
# Copyright (c) 2017 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/
#


%define _udevdir %(pkg-config --variable udevdir udev)
Name:           gnome-bluetooth
Version:        3.26.1
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.26/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  meson
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
Recommends:     %{name}-lang
BuildRequires:  translation-update-upstream

%description
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.

%package devel
Summary:        Development files for the GNOME Bluetooth graphical utilities
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
Requires:       typelib-1_0-GnomeBluetooth-1_0 = %{version}

%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

%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:        Introspection bindings for the gnome-bluetooth library
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 po gnome-bluetooth2

%build
%meson \
  -D enable-gtk-doc=true
%meson_build

%install
%meson_install
%suse_update_desktop_file bluetooth-sendto
%find_lang %{name}2 %{?no_lang_C}
%fdupes %{buildroot}/%{_prefix}

%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