File blueman.spec of Package blueman
#
# spec file for package blueman
#
# Copyright (c) 2015 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: blueman
Version: 2.0.5
Release: 0
License: GPL-3.0
Summary: GTK+ Bluetooth Manager
Url: https://github.com/blueman-project/blueman
Group: System/GUI/GNOME
Source: https://github.com/%{name}-project/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: %{name}-rpmlintrc
BuildRequires: automake
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pkgconfig(bluez) >= 4.61
BuildRequires: dbus-1-python3-devel
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(polkit-agent-1)
BuildRequires: pkgconfig(pygobject-3.0)
BuildRequires: pkgconfig(python3) >= 3.2
BuildRequires: python3-Cython
BuildRequires: fdupes
BuildRequires: update-desktop-files
BuildRequires: gnome-icon-theme
BuildRequires: pkgconfig(glib-2.0) >= 2.32
# Needed for typelib() - Requires.
BuildRequires: gobject-introspection
Requires: bluez
Requires: dbus-1-python3
Requires: obex-data-server
Requires: polkit
Requires: python3-cairo
Requires: python3-gobject
Requires: notification-daemon
Requires: gdk-pixbuf-loader-rsvg
Requires: pulseaudio-utils
%glib2_gsettings_schema_requires
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 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
%setup -q
sed -i '1s/python.*/python3/' apps/%{name}-*
echo -e 'NotShowIn=KDE;GNOME;' >> data/%{name}.desktop.in
%build
#NOCONFIGURE=1 ./autogen.sh
autoreconf -fiv
export PYTHON=/usr/bin/python3
export PYTHON_CFLAGS=-I/usr/include/python%{py3_ver}m
export PYTHON_LIBS=-lpython%{py3_ver}m
export CYTHONEXEC=/usr/bin/cython-%{py3_ver}
%configure --prefix=%{_prefix} --enable-static=no
make
%install
%makeinstall DESTDIR=%{buildroot}
find %{buildroot} -type f -name "*.la" -delete -print
%{__rm} -rf %{buildroot}%{_datadir}/doc/%{name}
%fdupes %{buildroot}%{python3_sitelib}
%fdupes %{buildroot}%{_datadir}/icons/hicolor
%find_lang %{name}
%suse_update_desktop_file -i %{name}-manager
%clean
rm -rf %{buildroot}
%post
%icon_theme_cache_post
%glib2_gsettings_schema_post
%postun
%icon_theme_cache_postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc CHANGELOG.md COPYING 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
%{python3_sitelib}/%{name}
%{python3_sitearch}/*%{name}*
%{_datadir}/applications/%{name}-manager.desktop
%{_datadir}/applications/%{name}-adapters.desktop
%{_datadir}/%{name}
%{_datadir}/dbus-1/services/%{name}-applet.service
%{_datadir}/dbus-1/system-services/org.%{name}.Mechanism.service
%{_datadir}/glib-2.0/schemas/org.%{name}.gschema.xml
%{_datadir}/icons/hicolor/*/*/blue*.*
%{_mandir}/man*/%{name}-*.*
%{_datadir}/pixmaps/%{name}
%{_datadir}/polkit-1/actions/org.%{name}.policy
%files -n thunar-sendto-%{name}
%defattr(-,root,root)
%dir %{_datadir}/Thunar
%dir %{_datadir}/Thunar/sendto
%{_datadir}/Thunar/sendto/thunar-sendto-%{name}.desktop
%files lang -f %{name}.lang
%changelog