]> git.pld-linux.org Git - packages/blueman.git/blob - blueman.spec
update desktop database
[packages/blueman.git] / blueman.spec
1 #
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
8 Summary:        Blueman - Bluetooth management utility for GNOME
9 Summary(pl.UTF-8):      Blueman - narzędzie do zarządzania łącznością Bluetooth dla GNOME
10 Name:           blueman
11 Version:        2.4
12 Release:        1
13 License:        GPL v3+
14 Group:          X11/Applications
15 Source0:        https://github.com/blueman-project/blueman/releases/download/%{version}/%{name}-%{version}.tar.xz
16 # Source0-md5:  e86737f71ef88b292ec94d3c0a7b3478
17 URL:            https://github.com/blueman-project/blueman
18 BuildRequires:  autoconf >= 2.61
19 BuildRequires:  automake >= 1:1.16.3
20 BuildRequires:  bluez-libs-devel >= 5.48
21 %{?with_mate:BuildRequires:     caja-python-devel}
22 %{?with_cinnamon:BuildRequires: cinnamon-nemo-python-devel}
23 BuildRequires:  gettext-tools >= 0.19.7
24 BuildRequires:  glib2-devel >= 1:2.32
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.8
32 BuildRequires:  rpm-pythonprov
33 BuildRequires:  rpmbuild(macros) >= 2.011
34 BuildRequires:  systemd-units
35 BuildRequires:  tar >= 1:1.22
36 BuildRequires:  xz
37 Requires(post,postun):  desktop-file-utils
38 Requires(post,postun):  gtk-update-icon-cache
39 Requires(post,postun):  hicolor-icon-theme
40 Requires(post,preun,postun):    systemd-units >= 1:250.1
41 Requires:       bluez >= 5.48
42 Requires:       dbus >= 1.9.18
43 Requires:       glib2 >= 1:2.32
44 Requires:       gtk+3 >= 3.24
45 Requires:       pango
46 Requires:       python3 >= %py3_ver
47 Requires:       python3-pycairo
48 Requires:       python3-pygobject3 >= 3.27.2
49 Requires:       systemd-units >= 1:250.1
50 Suggests:       NetworkManager-libs
51 Suggests:       iproute2
52 Suggests:       pulseaudio-bluetooth
53 Suggests:       pulseaudio-hal
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %description
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
59 manager for Linux.
60
61 Features:
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
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
96 %package caja
97 Summary:        Blueman plugin for Caja
98 Summary(pl.UTF-8):      Wtyczka Bluemana dla zarządcy plików Caja
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
107 Wtyczka Bluemana dla zarządcy plików Caja.
108
109 %package nautilus
110 Summary:        Blueman plugin for Nautilus
111 Summary(pl.UTF-8):      Wtyczka Bluemana dla Nautilusa
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
120 Wtyczka Bluemana dla Nautilusa.
121
122 %package nemo
123 Summary:        Blueman plugin for Nemo
124 Summary(pl.UTF-8):      Wtyczka Bluemana dla zarządcy plików Nemo
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
133 Wtyczka Bluemana dla zarządcy plików Nemo.
134
135 %package thunar
136 Summary:        Blueman plugin for Thunar
137 Summary(pl.UTF-8):      Wtyczka Bluemana dla Thunara
138 Group:          X11/Applications
139 Requires:       %{name} = %{version}
140
141 %description thunar
142 Blueman plugin for Thunar.
143
144 %description thunar -l pl.UTF-8
145 Wtyczka Bluemana dla Thunara.
146
147 %prep
148 %setup -q
149
150 %build
151 %{__libtoolize}
152 %{__aclocal}
153 %{__autoconf}
154 %{__autoheader}
155 %{__automake}
156 %configure \
157         CYTHONEXEC=/usr/bin/cython3 \
158         NETWORKTOOLS=/sbin/ip \
159         --disable-runtime-deps-check \
160         --disable-schemas-compile \
161         --disable-static \
162         --enable-polkit \
163         %{__enable_disable mate caja-sendto} \
164         %{__enable_disable cinnamon nemo-sendto} \
165         %{__enable_disable gnome nautilus-sendto} \
166         %{__enable_disable xfce thunar-sendto} \
167         --enable-settings-integration
168
169 %{__make}
170
171 %install
172 rm -rf $RPM_BUILD_ROOT
173 %{__make} install \
174         DESTDIR=$RPM_BUILD_ROOT
175
176 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
177 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/_blueman.la
178
179 # DO NOT RUN py_postclean - breaks plugins and everything
180
181 %find_lang %{name} --with-gnome
182
183 %clean
184 rm -rf $RPM_BUILD_ROOT
185
186 %post
187 %update_icon_cache hicolor
188 %update_desktop_database_post
189 glib-compile-schemas %{_datadir}/glib-2.0/schemas
190 %service %{name}-mechanism restart
191 %systemd_post %{name}-mechanism.service
192 %systemd_user_post blueman-applet.service blueman-manager.service
193
194 %preun
195 if [ "$1" = "0" ]; then
196         %service -q %{name}-mechanism stop
197 fi
198 %systemd_preun %{name}-mechanism.service
199 %systemd_user_preun blueman-applet.service blueman-manager.service
200
201 %postun
202 %update_icon_cache hicolor
203 %update_desktop_database_postun
204 glib-compile-schemas %{_datadir}/glib-2.0/schemas
205 %systemd_reload
206
207 %files -f %{name}.lang
208 %defattr(644,root,root,755)
209 %doc README.md CHANGELOG.md COPYING FAQ
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
213 %attr(755,root,root) %{_bindir}/blueman-manager
214 %attr(755,root,root) %{_bindir}/blueman-sendto
215 %attr(755,root,root) %{_bindir}/blueman-services
216 %attr(755,root,root) %{_bindir}/blueman-tray
217 %{_mandir}/man1/blueman-adapters.1*
218 %{_mandir}/man1/blueman-applet.1*
219 %{_mandir}/man1/blueman-manager.1*
220 %{_mandir}/man1/blueman-sendto.1*
221 %{_mandir}/man1/blueman-services.1*
222 %{_mandir}/man1/blueman-tray.1*
223 %attr(755,root,root) %{_libexecdir}/%{name}-mechanism
224 %attr(755,root,root) %{_libexecdir}/%{name}-rfcomm-watcher
225 %{_datadir}/%{name}
226 %{_datadir}/dbus-1/system-services/org.blueman.Mechanism.service
227 %{_desktopdir}/blueman-manager.desktop
228 %{_desktopdir}/blueman-adapters.desktop
229 %{_iconsdir}/hicolor/scalable/*/*.svg
230 %{_iconsdir}/hicolor/*/*/*.png
231 %{_datadir}/glib-2.0/schemas/org.blueman.gschema.xml
232 %{systemdunitdir}/blueman-mechanism.service
233 %{systemduserunitdir}/blueman-applet.service
234 %{systemduserunitdir}/blueman-manager.service
235 %{_datadir}/dbus-1/services/org.blueman.Applet.service
236 %{_datadir}/dbus-1/services/org.blueman.Manager.service
237 %{_datadir}/dbus-1/system.d/org.blueman.Mechanism.conf
238 %{_datadir}/polkit-1/actions/org.blueman.policy
239 %{_datadir}/polkit-1/rules.d/blueman.rules
240 %attr(755,root,root) %{py3_sitedir}/_blueman.so
241 %{py3_sitescriptdir}/%{name}
242
243 %if %{with mate}
244 %files caja
245 %defattr(644,root,root,755)
246 %{_datadir}/caja-python/extensions/caja_blueman_sendto.py
247 %endif
248
249 %if %{with gnome}
250 %files nautilus
251 %defattr(644,root,root,755)
252 %{_datadir}/nautilus-python/extensions/nautilus_blueman_sendto.py
253 %endif
254
255 %if %{with cinnamon}
256 %files nemo
257 %defattr(644,root,root,755)
258 %{_datadir}/nemo-python/extensions/nemo_blueman_sendto.py
259 %endif
260
261 %if %{with xfce}
262 %files thunar
263 %defattr(644,root,root,755)
264 %{_datadir}/Thunar/sendto/thunar-sendto-blueman.desktop
265 %endif
This page took 0.082921 seconds and 3 git commands to generate.