]>
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 | |
af3d1e78 JP |
9 | Version: 2.2.4 |
10 | Release: 1 | |
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 | |
af3d1e78 | 14 | # Source0-md5: 5e7284c47b8f1dace80e97c1e4d4319f |
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 | |
6954f643 | 165 | %systemd_user_post blueman-applet.service blueman-manager.service |
c8d32e64 KM |
166 | |
167 | %preun | |
168 | if [ "$1" = "0" ]; then | |
169 | %service -q %{name}-mechanism stop | |
170 | fi | |
171 | %systemd_preun %{name}-mechanism.service | |
6954f643 | 172 | %systemd_user_preun blueman-applet.service blueman-manager.service |
8235d8ec | 173 | |
174 | %postun | |
175 | %update_icon_cache hicolor | |
fa941284 | 176 | glib-compile-schemas %{_datadir}/glib-2.0/schemas |
c8d32e64 | 177 | %systemd_reload |
8235d8ec | 178 | |
5cc4ce65 MWP |
179 | %files -f %{name}.lang |
180 | %defattr(644,root,root,755) | |
fa941284 | 181 | %doc README.md CHANGELOG.md COPYING FAQ |
017008df ER |
182 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/autostart/blueman.desktop |
183 | %attr(755,root,root) %{_bindir}/blueman-adapters | |
184 | %attr(755,root,root) %{_bindir}/blueman-applet | |
017008df | 185 | %attr(755,root,root) %{_bindir}/blueman-manager |
017008df ER |
186 | %attr(755,root,root) %{_bindir}/blueman-sendto |
187 | %attr(755,root,root) %{_bindir}/blueman-services | |
c8d32e64 | 188 | %attr(755,root,root) %{_bindir}/blueman-tray |
017008df ER |
189 | %{_mandir}/man1/blueman-adapters.1* |
190 | %{_mandir}/man1/blueman-applet.1* | |
017008df | 191 | %{_mandir}/man1/blueman-manager.1* |
017008df ER |
192 | %{_mandir}/man1/blueman-sendto.1* |
193 | %{_mandir}/man1/blueman-services.1* | |
c8d32e64 | 194 | %{_mandir}/man1/blueman-tray.1* |
5759428a JR |
195 | %attr(755,root,root) %{_libexecdir}/%{name}-mechanism |
196 | %attr(755,root,root) %{_libexecdir}/%{name}-rfcomm-watcher | |
5cc4ce65 MWP |
197 | %{_datadir}/%{name} |
198 | %{_datadir}/dbus-1/system-services/org.blueman.Mechanism.service | |
017008df ER |
199 | %{_desktopdir}/blueman-manager.desktop |
200 | %{_desktopdir}/blueman-adapters.desktop | |
7e0fad4e | 201 | %{_iconsdir}/hicolor/scalable/*/*.svg |
b8c4aac2 | 202 | %{_iconsdir}/hicolor/*/*/*.png |
fa941284 | 203 | %{_datadir}/glib-2.0/schemas/org.blueman.gschema.xml |
c8d32e64 KM |
204 | %{systemdunitdir}/blueman-mechanism.service |
205 | %{systemduserunitdir}/blueman-applet.service | |
068ccac6 | 206 | %{systemduserunitdir}/blueman-manager.service |
c8d32e64 | 207 | %{_datadir}/dbus-1/services/org.blueman.Applet.service |
068ccac6 JP |
208 | %{_datadir}/dbus-1/services/org.blueman.Manager.service |
209 | %{_datadir}/dbus-1/system.d/org.blueman.Mechanism.conf | |
afb5f40e | 210 | %{_datadir}/polkit-1/actions/org.blueman.policy |
c8d32e64 | 211 | %{_datadir}/polkit-1/rules.d/blueman.rules |
2a7ffba5 JP |
212 | %attr(755,root,root) %{py3_sitedir}/_blueman.so |
213 | %{py3_sitedir}/%{name} | |
c8d32e64 | 214 | |
3552d76d | 215 | %if %{with mate} |
c8d32e64 KM |
216 | %files caja |
217 | %defattr(644,root,root,755) | |
218 | %{_datadir}/caja-python/extensions/caja_blueman_sendto.py | |
3552d76d | 219 | %endif |
c8d32e64 | 220 | |
3552d76d | 221 | %if %{with gnome} |
c8d32e64 KM |
222 | %files nautilus |
223 | %defattr(644,root,root,755) | |
224 | %{_datadir}/nautilus-python/extensions/nautilus_blueman_sendto.py | |
3552d76d | 225 | %endif |
c8d32e64 | 226 | |
3552d76d | 227 | %if %{with cinnamon} |
c8d32e64 KM |
228 | %files nemo |
229 | %defattr(644,root,root,755) | |
230 | %{_datadir}/nemo-python/extensions/nemo_blueman_sendto.py | |
3552d76d | 231 | %endif |
fa941284 | 232 | |
3552d76d | 233 | %if %{with xfce} |
fa941284 L |
234 | %files thunar |
235 | %defattr(644,root,root,755) | |
236 | %{_datadir}/Thunar/sendto/thunar-sendto-blueman.desktop | |
3552d76d | 237 | %endif |