X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=blueman.spec;h=4937bf00a4ecff68e9801d7b969cbb02ad6aa9b1;hb=HEAD;hp=887410e65837b059b9366680163d9ee83409a936;hpb=4eaabbcf08a62b18a70ed82eddd02a557edfb530;p=packages%2Fblueman.git diff --git a/blueman.spec b/blueman.spec index 887410e..7c44998 100644 --- a/blueman.spec +++ b/blueman.spec @@ -1,31 +1,65 @@ -Summary: Blueman - bluetooth management utility for GNOME +# +# Conditional build: +%bcond_without cinnamon # build without nemo support +%bcond_without gnome # build without nautilus support +%bcond_without mate # build without caja support +%bcond_without xfce # build without Thunar support + +Summary: Blueman - Bluetooth management utility for GNOME +Summary(pl.UTF-8): Blueman - narzędzie do zarządzania łącznością Bluetooth dla GNOME Name: blueman -Version: 0.5 -Release: 0.2 -License: GPL -Group: Applications -Source0: http://download.tuxfamily.org/blueman/%{name}_%{version}.tar.gz -# Source0-md5: f66861ce1d3c2162dc6682c0b67b8397 -URL: http://blueman.tuxfamily.org/ -BuildRequires: bluez-libs-devel -BuildRequires: gnome-bluetooth-devel -BuildRequires: python-Pyrex -BuildRequires: python-devel -BuildRequires: python-devel >= 2.5 -BuildRequires: python-distutils-extra +Version: 2.4.2 +Release: 1 +License: GPL v3+ +Group: X11/Applications +Source0: https://github.com/blueman-project/blueman/releases/download/%{version}/%{name}-%{version}.tar.xz +# Source0-md5: 4871bb9cbc2037e8192006a59cb68c4c +URL: https://github.com/blueman-project/blueman +BuildRequires: autoconf >= 2.61 +BuildRequires: automake >= 1:1.16.3 +BuildRequires: bluez-libs-devel >= 5.48 +%{?with_mate:BuildRequires: caja-python-devel} +%{?with_cinnamon:BuildRequires: cinnamon-nemo-python-devel} +BuildRequires: gettext-tools >= 0.19.7 +BuildRequires: glib2-devel >= 1:2.32 +BuildRequires: libtool +%{?with_gnome:BuildRequires: nautilus-python-devel} +BuildRequires: pkgconfig >= 1:0.9.0 +BuildRequires: polkit-devel +BuildRequires: python-pygobject3-common-devel >= 3.27.2 +BuildRequires: python3-Cython +BuildRequires: python3-devel >= 1:3.8 BuildRequires: rpm-pythonprov -Requires: bluez-libs >= 2.20 -Requires: bluez-utils -Requires: gtk+2 >= 2.12 +BuildRequires: rpmbuild(macros) >= 2.011 +BuildRequires: systemd-units +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +Requires(post,postun): desktop-file-utils +Requires(post,postun): glib2 >= 1:2.32 +Requires(post,postun): gtk-update-icon-cache +Requires(post,postun): hicolor-icon-theme +Requires(post,preun,postun): systemd-units >= 1:250.1 +Requires: bluez >= 5.48 +Requires: dbus >= 1.9.18 +Requires: glib2 >= 1:2.32 +Requires: gtk+3 >= 3.24 +Requires: pango +Requires: python3 >= %py3_ver +Requires: python3-pycairo +Requires: python3-pygobject3 >= 3.27.2 +Requires: systemd-units >= 1:250.1 +Suggests: NetworkManager-libs +Suggests: iproute2 +Suggests: pulseaudio-bluetooth +Suggests: pulseaudio-hal BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -Blueman is a GTK+ bluetooth management utility for GNOME using bluez -dbus backend. The aim is to create a full featured graphical bluetooth +Blueman is a GTK+ Bluetooth management utility for GNOME using bluez +DBus backend. The aim is to create a full featured graphical Bluetooth manager for Linux. Features: - - Easy to use interface - Storing Favourite devices - Send files @@ -40,38 +74,193 @@ Features: - Connect and receive connections from: audio, network, input and serial devices +%description -l pl.UTF-8 +Blueman to opate na GTK+ narzędzie do zarządzania łącznością Bluetooth +dla GNOME, wykorzystujące backend DBus bluez. Celem jest stworzenie w +pełni funkcjonalnego graficznego zarządcy Bluetooth dla Linuksa. + +Możliwości: +- łatwy w użyciu interfejs +- przechowywanie ulubionych urządzeń +- wysyłanie plików +- przeglądanie plików na urządzeniach +- wypisywanie wszystkich widocznych urządzeń +- informacje o lokalnych/zdalnych urządzeniach +- pokazywanie szybkości przesyłania i jakości połączenia +- konfigurowanie urządzeń lokalnych +- zarządzanie parowaniem +- hostowanie/łączenie się z sieciami prywatnymi +- podpinanie urządzeń do portów /dev/rfcomm, np. do połączeń GPRS +- nawiązywanie i odbieranie połączeń z urządzeń: dźwiękowych, + sieciowych, wejściowych i szeregowych + +%package caja +Summary: Blueman plugin for Caja +Summary(pl.UTF-8): Wtyczka Bluemana dla zarządcy plików Caja +Group: X11/Applications +Requires: %{name} = %{version} +Requires: caja-python + +%description caja +Blueman plugin for Caja. + +%description caja -l pl.UTF-8 +Wtyczka Bluemana dla zarządcy plików Caja. + +%package nautilus +Summary: Blueman plugin for Nautilus +Summary(pl.UTF-8): Wtyczka Bluemana dla Nautilusa +Group: X11/Applications +Requires: %{name} = %{version} +Requires: nautilus-python + +%description nautilus +Blueman plugin for Nautilus. + +%description nautilus -l pl.UTF-8 +Wtyczka Bluemana dla Nautilusa. + +%package nemo +Summary: Blueman plugin for Nemo +Summary(pl.UTF-8): Wtyczka Bluemana dla zarządcy plików Nemo +Group: X11/Applications +Requires: %{name} = %{version} +Requires: cinnamon-nemo-python + +%description nemo +Blueman plugin for Nautilus. + +%description nemo -l pl.UTF-8 +Wtyczka Bluemana dla zarządcy plików Nemo. + +%package thunar +Summary: Blueman plugin for Thunar +Summary(pl.UTF-8): Wtyczka Bluemana dla Thunara +Group: X11/Applications +Requires: %{name} = %{version} + +%description thunar +Blueman plugin for Thunar. + +%description thunar -l pl.UTF-8 +Wtyczka Bluemana dla Thunara. + %prep -%setup -q -n %{name}_%{version} +%setup -q %build -%{__sed} -i -e 's,lib/,%{_lib}/,g' setup.py -%{__sed} -i -e 's,lib/,%{_lib}/,g' sys/org.blueman.Mechanism.service -%{__python} setup.py build +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + CYTHONEXEC=/usr/bin/cython3 \ + NETWORKTOOLS=/sbin/ip \ + --disable-runtime-deps-check \ + --disable-schemas-compile \ + --disable-static \ + --enable-polkit \ + %{__enable_disable mate caja-sendto} \ + %{__enable_disable cinnamon nemo-sendto} \ + %{__enable_disable gnome nautilus-sendto} \ + %{__enable_disable xfce thunar-sendto} \ + --enable-settings-integration + +%{__make} %install rm -rf $RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -%{__python} setup.py install \ - --root=$RPM_BUILD_ROOT +%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} +%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/_blueman.la + +# DO NOT RUN py_postclean - breaks plugins and everything %find_lang %{name} --with-gnome %clean rm -rf $RPM_BUILD_ROOT +%post +%update_icon_cache hicolor +%update_desktop_database_post +%glib_compile_schemas +%service %{name}-mechanism restart +%systemd_post %{name}-mechanism.service +%systemd_user_post blueman-applet.service blueman-manager.service + +%preun +if [ "$1" = "0" ]; then + %service -q %{name}-mechanism stop +fi +%systemd_preun %{name}-mechanism.service +%systemd_user_preun blueman-applet.service blueman-manager.service + +%postun +%update_icon_cache hicolor +%update_desktop_database_postun +%glib_compile_schemas +%systemd_reload + %files -f %{name}.lang %defattr(644,root,root,755) -%doc README -#%dir %{_sysconfdir} -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/org.blueman.Mechanism.conf -%attr(755,root,root) %{_prefix}/lib/%{name} -%attr(755,root,root) %{_bindir}/* +%doc README.md CHANGELOG.md COPYING FAQ +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/autostart/blueman.desktop +%attr(755,root,root) %{_bindir}/blueman-adapters +%attr(755,root,root) %{_bindir}/blueman-applet +%attr(755,root,root) %{_bindir}/blueman-manager +%attr(755,root,root) %{_bindir}/blueman-sendto +%attr(755,root,root) %{_bindir}/blueman-services +%attr(755,root,root) %{_bindir}/blueman-tray +%{_mandir}/man1/blueman-adapters.1* +%{_mandir}/man1/blueman-applet.1* +%{_mandir}/man1/blueman-manager.1* +%{_mandir}/man1/blueman-sendto.1* +%{_mandir}/man1/blueman-services.1* +%{_mandir}/man1/blueman-tray.1* +%attr(755,root,root) %{_libexecdir}/%{name}-mechanism +%attr(755,root,root) %{_libexecdir}/%{name}-rfcomm-watcher %{_datadir}/%{name} %{_datadir}/dbus-1/system-services/org.blueman.Mechanism.service -%{_iconsdir}/hicolor/scalable/apps/*.svg -%{_iconsdir}/hicolor/*/apps/*.png -%{_datadir}/PolicyKit/policy/org.blueman.policy -%{_desktopdir}/blueman.desktop -%{py_sitedir}/%{name} -%{py_sitedir}/%{name}-%{version}-py*.egg-info +%{_desktopdir}/blueman-manager.desktop +%{_desktopdir}/blueman-adapters.desktop +%{_iconsdir}/hicolor/scalable/*/*.svg +%{_iconsdir}/hicolor/*/*/*.png +%{_datadir}/glib-2.0/schemas/org.blueman.gschema.xml +%{systemdunitdir}/blueman-mechanism.service +%{systemduserunitdir}/blueman-applet.service +%{systemduserunitdir}/blueman-manager.service +%{_datadir}/dbus-1/services/org.blueman.Applet.service +%{_datadir}/dbus-1/services/org.blueman.Manager.service +%{_datadir}/dbus-1/system.d/org.blueman.Mechanism.conf +%{_datadir}/polkit-1/actions/org.blueman.policy +%{_datadir}/polkit-1/rules.d/blueman.rules +%attr(755,root,root) %{py3_sitedir}/_blueman.so +%{py3_sitescriptdir}/%{name} + +%if %{with mate} +%files caja +%defattr(644,root,root,755) +%{_datadir}/caja-python/extensions/caja_blueman_sendto.py +%endif + +%if %{with gnome} +%files nautilus +%defattr(644,root,root,755) +%{_datadir}/nautilus-python/extensions/nautilus_blueman_sendto.py +%endif + +%if %{with cinnamon} +%files nemo +%defattr(644,root,root,755) +%{_datadir}/nemo-python/extensions/nemo_blueman_sendto.py +%endif + +%if %{with xfce} +%files thunar +%defattr(644,root,root,755) +%{_datadir}/Thunar/sendto/thunar-sendto-blueman.desktop +%endif