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