File gnome-bluetooth-1.spec of Package gnome-bluetooth-1

#
# spec file for package gnome-bluetooth
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%define _udevdir %(pkg-config --variable udevdir udev)
%define rname gnome-bluetooth
Name:           gnome-bluetooth-1
Version:        3.34.5
Release:        0
Summary:        GNOME Bluetooth graphical utilities
License:        GPL-2.0-or-later AND LGPL-2.1-or-later
Group:          System/GUI/GNOME
URL:            https://wiki.gnome.org/Projects/GnomeBluetooth
Source0:        https://download.gnome.org/sources/gnome-bluetooth/3.34/%{rname}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM 755fd758f866d3a3f7ca482942beee749f13a91e.patch -- Fix build with meson 0.61 and newer
Patch0:         https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/commit/755fd758f866d3a3f7ca482942beee749f13a91e.patch

BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.44
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.12.0
BuildRequires:  pkgconfig(libcanberra-gtk3)
BuildRequires:  pkgconfig(libnotify) >= 0.7.0
BuildRequires:  pkgconfig(libudev)
# Require bluez (mandatory, as per readme, bnc#622946)
Requires:       bluez >= 5
# gnome-bluetooth-3.0 incompatible
Conflicts:      gnome-bluetooth
Provides:       gnome-bluetooth = %{version}-%{release}

%description
A set of graphical utilities to setup, monitor and use Bluetooth devices.

This package provides the utilities, data files and manuals for GNOME Bluetooth.

%package -n libgnome-bluetooth13
Summary:        GNOME Bluetooth's Shared Libraries
License:        LGPL-2.1-or-later
Group:          System/Libraries

%description -n libgnome-bluetooth13
A set of graphical utilities to setup, monitor and use Bluetooth devices.

This package provides the GNOME Bluetooth's shared library.

%package -n typelib-1_0-GnomeBluetooth-1_0
Summary:        Introspection bindings for the GNOME Bluetooth libraries
License:        GPL-2.0-or-later AND LGPL-2.1-or-later
Group:          System/Libraries

%description -n typelib-1_0-GnomeBluetooth-1_0
A set of graphical utilities to setup, monitor and use Bluetooth devices.

This package provides the GObject Introspection bindings for the GNOME Bluetooth's
libraries.

%package devel
Summary:        Development files for the GNOME Bluetooth libraries
License:        GPL-2.0-or-later AND LGPL-2.1-or-later
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
Requires:       libgnome-bluetooth13 = %{version}
Requires:       typelib-1_0-GnomeBluetooth-1_0 = %{version}

%description devel
A set of graphical utilities to setup, monitor and use Bluetooth devices.

This package provides the necessary files for development with GNOME Bluetooth.

%lang_package

%prep
%autosetup -n %{rname}-%{version} -p1

%build
%meson \
	-D gtk_doc=true \
	%{nil}
%meson_build

%install
%meson_install
%find_lang %{rname}2 %{?no_lang_C}
%fdupes %{buildroot}/%{_prefix}

%ldconfig_scriptlets -n libgnome-bluetooth13

%files
%license COPYING
%doc NEWS README.md
%{_bindir}/bluetooth-*
%{_datadir}/applications/bluetooth-sendto.desktop
%{_datadir}/gnome-bluetooth/
%{_datadir}/icons/hicolor/*/*/*bluetooth*
%{_mandir}/man1/bluetooth-*

%files -n libgnome-bluetooth13
%license COPYING.LIB
%{_libdir}/libgnome-bluetooth.so.*

%files -n typelib-1_0-GnomeBluetooth-1_0
%{_libdir}/girepository-1.0/GnomeBluetooth-1.0.typelib

%files devel
%doc AUTHORS ChangeLog.README MAINTAINERS
%doc %{_datadir}/gtk-doc/html/gnome-bluetooth
%{_includedir}/gnome-bluetooth
%{_libdir}/libgnome-bluetooth.so
%{_libdir}/pkgconfig/gnome-bluetooth-1.0.pc
%{_datadir}/gir-1.0/*.gir

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

%changelog
openSUSE Build Service is sponsored by