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