File blueman.spec of Package blueman-git
#
# spec file for package blueman
#
# Copyright (c) 2020 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/
#
Name: blueman
Version: @SERVICE@
Release: 0
Summary: GTK+ Bluetooth Manager
License: GPL-3.0-only
Group: System/GUI/GNOME
URL: https://github.com/blueman-project/blueman
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gnome-icon-theme
BuildRequires: hicolor-icon-theme
# Needed for typelib() - Requires.
BuildRequires: gobject-introspection
BuildRequires: intltool
BuildRequires: meson >= 0.48.0
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: python3-Cython
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(appindicator3-0.1)
BuildRequires: pkgconfig(bluez) >= 5.0
BuildRequires: pkgconfig(caja-python)
BuildRequires: pkgconfig(glib-2.0) >= 2.32
BuildRequires: pkgconfig(gthread-2.0) >= 2.32
BuildRequires: pkgconfig(gtk+-3.0) >= 3.10
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(nautilus-python)
BuildRequires: pkgconfig(nemo-python)
BuildRequires: pkgconfig(polkit-agent-1)
BuildRequires: pkgconfig(pygobject-3.0)
BuildRequires: pkgconfig(python3) >= 3.6
Requires: bluez
Requires: dbus-1-python3
Requires: gdk-pixbuf-loader-rsvg
Requires: notification-daemon
Requires: obex-data-server
Requires: polkit
Requires: pulseaudio-utils
Requires: python3-cairo
Requires: python3-gobject
Requires: python3-gobject-Gdk
Recommends: %{name}-lang
%glib2_gsettings_schema_requires
%{?systemd_requires}
%description
Blueman is designed to provide simple, yet effective means for controlling
BlueZ API and simplifying bluetooth tasks such as:
* Connecting to 3G/EDGE/GPRS via dial-up
* Connecting to/Creating bluetooth networks
* Connecting to input devices
* Connecting to audio devices
* Sending/Receiving/Browsing files via OBEX
* Pairing
%package -n caja-extension-%{name}
Summary: A sendto integration for Caja
Group: System/GUI/GNOME
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description -n caja-extension-%{name}
This package add sendto integration for Caja.
%package -n nautilus-extension-%{name}
Summary: A sendto integration for Nautilus
Group: System/GUI/GNOME
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description -n nautilus-extension-%{name}
This package add sendto integration for Nautilus.
%package -n nemo-extension-%{name}
Summary: A sendto integration for Nemo
Group: System/GUI/GNOME
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description -n nemo-extension-%{name}
This package add sendto integration for Nemo.
%package -n thunar-sendto-%{name}
Summary: A sendto integration for Thunar
Group: System/GUI/XFCE
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description -n thunar-sendto-%{name}
This package add sendto integration for Thunar.
%lang_package
%prep
%autosetup
echo -e 'NotShowIn=KDE;GNOME;' >> data/%{name}.desktop.in
%build
%meson
%meson_build
%install
%meson_install
install -d -m 755 %{buildroot}%{_sbindir}
ln -s -f service %{buildroot}%{_sbindir}/rc%{name}-mechanism
%suse_update_desktop_file -i %{name}-manager
find %{buildroot} -name "Makefile.am" -print -delete
%fdupes -s %{buildroot}%{_datadir}/icons/hicolor
%fdupes %{buildroot}%{python3_sitelib}
# Python byte compile.
for i in $(find %{buildroot}%{python3_sitelib}/%{name}/ -type d -name '__pycache__'); do
pushd $i
%py3_compile -O ..
popd
done
%find_lang %{name}
%pre
%service_add_pre %{name}-mechanism.service
%preun
%service_del_preun %{name}-mechanism.service
%post
%service_add_post %{name}-mechanism.service
%postun
%service_del_postun %{name}-mechanism.service
%files
%doc CHANGELOG.md Dependencies.md FAQ README.md
#%%config %%{_sysconfdir}/dbus-1/system.d/org.%%{name}.Mechanism.conf
%{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_bindir}/%{name}-*
%{_libexecdir}/%{name}-mechanism
%{_libexecdir}/%{name}-rfcomm-watcher
%{_unitdir}/%{name}-mechanism.service
%{_sbindir}/rc%{name}-mechanism
%{_userunitdir}/%{name}-applet.service
%{python3_sitelib}/%{name}
%{python3_sitelib}/_%{name}.so
%{_datadir}/applications/%{name}-adapters.desktop
%{_datadir}/applications/%{name}-manager.desktop
%{_datadir}/%{name}
%{_datadir}/dbus-1/services/org.%{name}.Applet.service
%{_datadir}/dbus-1/system-services/org.%{name}.Mechanism.service
%{_datadir}/dbus-1/system.d/org.%{name}.Mechanism.conf
%{_datadir}/glib-2.0/schemas/org.%{name}.gschema.xml
%{_datadir}/icons/hicolor/*/*/%{name}*.??g
%{_mandir}/man?/%{name}-*.?%{?ext_man}
#%%{_datadir}/pixmaps/%%{name}
%{_datadir}/polkit-1/actions/org.%{name}.policy
#%%{_datadir}/polkit-1/rules.d/%%{name}.rules
%license COPYING
%files -n caja-extension-%{name}
%dir %{_datadir}/caja-python
%dir %{_datadir}/caja-python/extensions
%{_datadir}/caja-python/extensions/caja_%{name}_sendto.py
%files -n nautilus-extension-%{name}
%dir %{_datadir}/nautilus-python
%dir %{_datadir}/nautilus-python/extensions
%{_datadir}/nautilus-python/extensions/nautilus_%{name}_sendto.py
%files -n nemo-extension-%{name}
%dir %{_datadir}/nemo-python
%dir %{_datadir}/nemo-python/extensions
%{_datadir}/nemo-python/extensions/nemo_%{name}_sendto.py
%files -n thunar-sendto-%{name}
%dir %{_datadir}/Thunar
%dir %{_datadir}/Thunar/sendto
%{_datadir}/Thunar/sendto/thunar-sendto-%{name}.desktop
%files lang -f %{name}.lang
%changelog