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