]>
Commit | Line | Data |
---|---|---|
020e6e75 | 1 | # |
3552d76d JP |
2 | # Conditional build: |
3 | %bcond_without cinnamon # build without nemo support | |
4 | %bcond_without gnome # build without nautilus support | |
5 | %bcond_without mate # build without caja support | |
6 | %bcond_without xfce # build without Thunar support | |
7 | ||
020e6e75 JB |
8 | Summary: Blueman - Bluetooth management utility for GNOME |
9 | Summary(pl.UTF-8): Blueman - narzędzie do zarządzania łącznością Bluetooth dla GNOME | |
5cc4ce65 | 10 | Name: blueman |
af3d1e78 | 11 | Version: 2.2.4 |
daae8812 | 12 | Release: 2 |
068ccac6 | 13 | License: GPL v3+ |
fa941284 L |
14 | Group: X11/Applications |
15 | Source0: https://github.com/blueman-project/blueman/releases/download/%{version}/%{name}-%{version}.tar.xz | |
af3d1e78 | 16 | # Source0-md5: 5e7284c47b8f1dace80e97c1e4d4319f |
3264904f | 17 | Patch0: ayatana-indicator.patch |
fa941284 | 18 | URL: https://github.com/blueman-project/blueman |
068ccac6 | 19 | BuildRequires: bluez-libs-devel >= 5.48 |
3552d76d JP |
20 | %{?with_mate:BuildRequires: caja-python-devel} |
21 | %{?with_cinnamon:BuildRequires: cinnamon-nemo-python-devel} | |
068ccac6 | 22 | BuildRequires: gettext-tools >= 0.19.7 |
81a7d0fd | 23 | BuildRequires: glib2-devel >= 1:2.32 |
293276eb | 24 | BuildRequires: libtool |
3552d76d | 25 | %{?with_gnome:BuildRequires: nautilus-python-devel} |
81a7d0fd JP |
26 | BuildRequires: pkgconfig >= 1:0.9.0 |
27 | BuildRequires: polkit-devel | |
c8d32e64 | 28 | BuildRequires: python-pygobject3-common-devel >= 3.27.2 |
81a7d0fd | 29 | BuildRequires: python3-Cython |
068ccac6 | 30 | BuildRequires: python3-devel >= 1:3.6 |
5cc4ce65 | 31 | BuildRequires: rpm-pythonprov |
92c3d113 | 32 | BuildRequires: rpmbuild(macros) >= 2.011 |
81a7d0fd | 33 | BuildRequires: systemd-units |
29c55b9b JP |
34 | BuildRequires: tar >= 1:1.22 |
35 | BuildRequires: xz | |
f0242065 AF |
36 | Requires(post,postun): gtk-update-icon-cache |
37 | Requires(post,postun): hicolor-icon-theme | |
9019eb5a | 38 | Requires(post,preun,postun): systemd-units >= 1:250.1 |
068ccac6 JP |
39 | Requires: bluez >= 5.48 |
40 | Requires: dbus >= 1.9.18 | |
81a7d0fd | 41 | Requires: glib2 >= 1:2.32 |
068ccac6 JP |
42 | Requires: gtk+3 >= 3.22 |
43 | Requires: pango | |
81a7d0fd | 44 | Requires: python3 >= %py3_ver |
068ccac6 | 45 | Requires: python3-pycairo |
81a7d0fd | 46 | Requires: python3-pygobject3 >= 3.27.2 |
9019eb5a | 47 | Requires: systemd-units >= 1:250.1 |
068ccac6 JP |
48 | Suggests: NetworkManager-libs |
49 | Suggests: iproute2 | |
3264904f | 50 | Suggests: libayatana-appindicator-gtk3 |
c8d32e64 KM |
51 | Suggests: pulseaudio-bluetooth |
52 | Suggests: pulseaudio-hal | |
5cc4ce65 MWP |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
55 | %description | |
020e6e75 JB |
56 | Blueman is a GTK+ Bluetooth management utility for GNOME using bluez |
57 | DBus backend. The aim is to create a full featured graphical Bluetooth | |
5cc4ce65 MWP |
58 | manager for Linux. |
59 | ||
60 | Features: | |
5cc4ce65 MWP |
61 | - Easy to use interface |
62 | - Storing Favourite devices | |
63 | - Send files | |
64 | - Browse files on devices | |
65 | - List all seen devices | |
66 | - View Local/Remote Device information | |
67 | - View transfer speeds and link quality | |
68 | - Configure local devices | |
69 | - Manage Pairing (Bonding) | |
70 | - Host/Connect to Personal Area Networks | |
71 | - Bind services to /dev/rfcomm ports, for eg. connecting via gprs | |
72 | - Connect and receive connections from: audio, network, input and | |
73 | serial devices | |
74 | ||
020e6e75 JB |
75 | %description -l pl.UTF-8 |
76 | Blueman to opate na GTK+ narzędzie do zarządzania łącznością Bluetooth | |
77 | dla GNOME, wykorzystujące backend DBus bluez. Celem jest stworzenie w | |
78 | pełni funkcjonalnego graficznego zarządcy Bluetooth dla Linuksa. | |
79 | ||
80 | Możliwości: | |
81 | - łatwy w użyciu interfejs | |
82 | - przechowywanie ulubionych urządzeń | |
83 | - wysyłanie plików | |
84 | - przeglądanie plików na urządzeniach | |
85 | - wypisywanie wszystkich widocznych urządzeń | |
86 | - informacje o lokalnych/zdalnych urządzeniach | |
87 | - pokazywanie szybkości przesyłania i jakości połączenia | |
88 | - konfigurowanie urządzeń lokalnych | |
89 | - zarządzanie parowaniem | |
90 | - hostowanie/łączenie się z sieciami prywatnymi | |
91 | - podpinanie urządzeń do portów /dev/rfcomm, np. do połączeń GPRS | |
92 | - nawiązywanie i odbieranie połączeń z urządzeń: dźwiękowych, | |
93 | sieciowych, wejściowych i szeregowych | |
94 | ||
c8d32e64 KM |
95 | %package caja |
96 | Summary: Blueman plugin for Caja | |
020e6e75 | 97 | Summary(pl.UTF-8): Wtyczka Bluemana dla zarządcy plików Caja |
c8d32e64 KM |
98 | Group: X11/Applications |
99 | Requires: %{name} = %{version} | |
100 | Requires: caja-python | |
101 | ||
102 | %description caja | |
103 | Blueman plugin for Caja. | |
104 | ||
105 | %description caja -l pl.UTF-8 | |
020e6e75 | 106 | Wtyczka Bluemana dla zarządcy plików Caja. |
c8d32e64 KM |
107 | |
108 | %package nautilus | |
109 | Summary: Blueman plugin for Nautilus | |
020e6e75 | 110 | Summary(pl.UTF-8): Wtyczka Bluemana dla Nautilusa |
c8d32e64 KM |
111 | Group: X11/Applications |
112 | Requires: %{name} = %{version} | |
113 | Requires: nautilus-python | |
114 | ||
115 | %description nautilus | |
116 | Blueman plugin for Nautilus. | |
117 | ||
118 | %description nautilus -l pl.UTF-8 | |
020e6e75 | 119 | Wtyczka Bluemana dla Nautilusa. |
c8d32e64 KM |
120 | |
121 | %package nemo | |
122 | Summary: Blueman plugin for Nemo | |
020e6e75 | 123 | Summary(pl.UTF-8): Wtyczka Bluemana dla zarządcy plików Nemo |
c8d32e64 KM |
124 | Group: X11/Applications |
125 | Requires: %{name} = %{version} | |
126 | Requires: cinnamon-nemo-python | |
127 | ||
128 | %description nemo | |
129 | Blueman plugin for Nautilus. | |
130 | ||
131 | %description nemo -l pl.UTF-8 | |
020e6e75 | 132 | Wtyczka Bluemana dla zarządcy plików Nemo. |
c8d32e64 | 133 | |
fa941284 L |
134 | %package thunar |
135 | Summary: Blueman plugin for Thunar | |
020e6e75 | 136 | Summary(pl.UTF-8): Wtyczka Bluemana dla Thunara |
fa941284 | 137 | Group: X11/Applications |
c8d32e64 | 138 | Requires: %{name} = %{version} |
fa941284 L |
139 | |
140 | %description thunar | |
141 | Blueman plugin for Thunar. | |
142 | ||
143 | %description thunar -l pl.UTF-8 | |
020e6e75 | 144 | Wtyczka Bluemana dla Thunara. |
fa941284 | 145 | |
5cc4ce65 | 146 | %prep |
fb1a0cdd | 147 | %setup -q |
3264904f | 148 | %patch0 -p1 |
5cc4ce65 MWP |
149 | |
150 | %build | |
0348fefb | 151 | %configure \ |
81a7d0fd | 152 | CYTHONEXEC=/usr/bin/cython3 \ |
fc378da1 | 153 | NETWORKTOOLS=/sbin/ip \ |
068ccac6 | 154 | --disable-runtime-deps-check \ |
fa941284 | 155 | --disable-schemas-compile \ |
068ccac6 | 156 | --disable-static \ |
c8d32e64 | 157 | --enable-polkit \ |
3552d76d JP |
158 | %{__enable_disable mate caja-sendto} \ |
159 | %{__enable_disable cinnamon nemo-sendto} \ | |
160 | %{__enable_disable gnome nautilus-sendto} \ | |
161 | %{__enable_disable xfce thunar-sendto} \ | |
c8d32e64 | 162 | --enable-settings-integration |
fa941284 | 163 | |
fb1a0cdd | 164 | %{__make} |
5cc4ce65 MWP |
165 | |
166 | %install | |
167 | rm -rf $RPM_BUILD_ROOT | |
fb1a0cdd | 168 | %{__make} install \ |
11ad311c | 169 | DESTDIR=$RPM_BUILD_ROOT |
5cc4ce65 | 170 | |
68bdd93d | 171 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
2a7ffba5 | 172 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/_blueman.la |
68bdd93d | 173 | |
5759428a JR |
174 | # DO NOT RUN py_postclean - breaks plugins and everything |
175 | ||
5cc4ce65 MWP |
176 | %find_lang %{name} --with-gnome |
177 | ||
178 | %clean | |
179 | rm -rf $RPM_BUILD_ROOT | |
180 | ||
8235d8ec | 181 | %post |
182 | %update_icon_cache hicolor | |
fa941284 | 183 | glib-compile-schemas %{_datadir}/glib-2.0/schemas |
c8d32e64 KM |
184 | %service %{name}-mechanism restart |
185 | %systemd_post %{name}-mechanism.service | |
6954f643 | 186 | %systemd_user_post blueman-applet.service blueman-manager.service |
c8d32e64 KM |
187 | |
188 | %preun | |
189 | if [ "$1" = "0" ]; then | |
190 | %service -q %{name}-mechanism stop | |
191 | fi | |
192 | %systemd_preun %{name}-mechanism.service | |
6954f643 | 193 | %systemd_user_preun blueman-applet.service blueman-manager.service |
8235d8ec | 194 | |
195 | %postun | |
196 | %update_icon_cache hicolor | |
fa941284 | 197 | glib-compile-schemas %{_datadir}/glib-2.0/schemas |
c8d32e64 | 198 | %systemd_reload |
8235d8ec | 199 | |
5cc4ce65 MWP |
200 | %files -f %{name}.lang |
201 | %defattr(644,root,root,755) | |
fa941284 | 202 | %doc README.md CHANGELOG.md COPYING FAQ |
017008df ER |
203 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/autostart/blueman.desktop |
204 | %attr(755,root,root) %{_bindir}/blueman-adapters | |
205 | %attr(755,root,root) %{_bindir}/blueman-applet | |
017008df | 206 | %attr(755,root,root) %{_bindir}/blueman-manager |
017008df ER |
207 | %attr(755,root,root) %{_bindir}/blueman-sendto |
208 | %attr(755,root,root) %{_bindir}/blueman-services | |
c8d32e64 | 209 | %attr(755,root,root) %{_bindir}/blueman-tray |
017008df ER |
210 | %{_mandir}/man1/blueman-adapters.1* |
211 | %{_mandir}/man1/blueman-applet.1* | |
017008df | 212 | %{_mandir}/man1/blueman-manager.1* |
017008df ER |
213 | %{_mandir}/man1/blueman-sendto.1* |
214 | %{_mandir}/man1/blueman-services.1* | |
c8d32e64 | 215 | %{_mandir}/man1/blueman-tray.1* |
5759428a JR |
216 | %attr(755,root,root) %{_libexecdir}/%{name}-mechanism |
217 | %attr(755,root,root) %{_libexecdir}/%{name}-rfcomm-watcher | |
5cc4ce65 MWP |
218 | %{_datadir}/%{name} |
219 | %{_datadir}/dbus-1/system-services/org.blueman.Mechanism.service | |
017008df ER |
220 | %{_desktopdir}/blueman-manager.desktop |
221 | %{_desktopdir}/blueman-adapters.desktop | |
7e0fad4e | 222 | %{_iconsdir}/hicolor/scalable/*/*.svg |
b8c4aac2 | 223 | %{_iconsdir}/hicolor/*/*/*.png |
fa941284 | 224 | %{_datadir}/glib-2.0/schemas/org.blueman.gschema.xml |
c8d32e64 KM |
225 | %{systemdunitdir}/blueman-mechanism.service |
226 | %{systemduserunitdir}/blueman-applet.service | |
068ccac6 | 227 | %{systemduserunitdir}/blueman-manager.service |
c8d32e64 | 228 | %{_datadir}/dbus-1/services/org.blueman.Applet.service |
068ccac6 JP |
229 | %{_datadir}/dbus-1/services/org.blueman.Manager.service |
230 | %{_datadir}/dbus-1/system.d/org.blueman.Mechanism.conf | |
afb5f40e | 231 | %{_datadir}/polkit-1/actions/org.blueman.policy |
c8d32e64 | 232 | %{_datadir}/polkit-1/rules.d/blueman.rules |
2a7ffba5 JP |
233 | %attr(755,root,root) %{py3_sitedir}/_blueman.so |
234 | %{py3_sitedir}/%{name} | |
c8d32e64 | 235 | |
3552d76d | 236 | %if %{with mate} |
c8d32e64 KM |
237 | %files caja |
238 | %defattr(644,root,root,755) | |
239 | %{_datadir}/caja-python/extensions/caja_blueman_sendto.py | |
3552d76d | 240 | %endif |
c8d32e64 | 241 | |
3552d76d | 242 | %if %{with gnome} |
c8d32e64 KM |
243 | %files nautilus |
244 | %defattr(644,root,root,755) | |
245 | %{_datadir}/nautilus-python/extensions/nautilus_blueman_sendto.py | |
3552d76d | 246 | %endif |
c8d32e64 | 247 | |
3552d76d | 248 | %if %{with cinnamon} |
c8d32e64 KM |
249 | %files nemo |
250 | %defattr(644,root,root,755) | |
251 | %{_datadir}/nemo-python/extensions/nemo_blueman_sendto.py | |
3552d76d | 252 | %endif |
fa941284 | 253 | |
3552d76d | 254 | %if %{with xfce} |
fa941284 L |
255 | %files thunar |
256 | %defattr(644,root,root,755) | |
257 | %{_datadir}/Thunar/sendto/thunar-sendto-blueman.desktop | |
3552d76d | 258 | %endif |