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