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