]> git.pld-linux.org Git - packages/blueman.git/blob - blueman.spec
up to 2.3.2
[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.3.2
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:  d2ab2f0b8b5ffe0bb15df27091e9f6f7
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.6
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):  gtk-update-icon-cache
38 Requires(post,postun):  hicolor-icon-theme
39 Requires(post,preun,postun):    systemd-units >= 1:250.1
40 Requires:       bluez >= 5.48
41 Requires:       dbus >= 1.9.18
42 Requires:       glib2 >= 1:2.32
43 Requires:       gtk+3 >= 3.22
44 Requires:       pango
45 Requires:       python3 >= %py3_ver
46 Requires:       python3-pycairo
47 Requires:       python3-pygobject3 >= 3.27.2
48 Requires:       systemd-units >= 1:250.1
49 Suggests:       NetworkManager-libs
50 Suggests:       iproute2
51 Suggests:       pulseaudio-bluetooth
52 Suggests:       pulseaudio-hal
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55 %description
56 Blueman is a GTK+ Bluetooth management utility for GNOME using bluez
57 DBus backend. The aim is to create a full featured graphical Bluetooth
58 manager for Linux.
59
60 Features:
61 - Easy to use interface
62 - Storing Favourite devices
63 - Send files
64 - Browse files on devices
65 - List all seen devices
66 - View Local/Remote Device information
67 - View transfer speeds and link quality
68 - Configure local devices
69 - Manage Pairing (Bonding)
70 - Host/Connect to Personal Area Networks
71 - Bind services to /dev/rfcomm ports, for eg. connecting via gprs
72 - Connect and receive connections from: audio, network, input and
73   serial devices
74
75 %description -l pl.UTF-8
76 Blueman to opate na GTK+ narzędzie do zarządzania łącznością Bluetooth
77 dla GNOME, wykorzystujące backend DBus bluez. Celem jest stworzenie w
78 pełni funkcjonalnego graficznego zarządcy Bluetooth dla Linuksa.
79
80 Możliwości:
81 - łatwy w użyciu interfejs
82 - przechowywanie ulubionych urządzeń
83 - wysyłanie plików
84 - przeglądanie plików na urządzeniach
85 - wypisywanie wszystkich widocznych urządzeń
86 - informacje o lokalnych/zdalnych urządzeniach
87 - pokazywanie szybkości przesyłania i jakości połączenia
88 - konfigurowanie urządzeń lokalnych
89 - zarządzanie parowaniem
90 - hostowanie/łączenie się z sieciami prywatnymi
91 - podpinanie urządzeń do portów /dev/rfcomm, np. do połączeń GPRS
92 - nawiązywanie i odbieranie połączeń z urządzeń: dźwiękowych,
93   sieciowych, wejściowych i szeregowych
94
95 %package caja
96 Summary:        Blueman plugin for Caja
97 Summary(pl.UTF-8):      Wtyczka Bluemana dla zarządcy plików Caja
98 Group:          X11/Applications
99 Requires:       %{name} = %{version}
100 Requires:       caja-python
101
102 %description caja
103 Blueman plugin for Caja.
104
105 %description caja -l pl.UTF-8
106 Wtyczka Bluemana dla zarządcy plików Caja.
107
108 %package nautilus
109 Summary:        Blueman plugin for Nautilus
110 Summary(pl.UTF-8):      Wtyczka Bluemana dla Nautilusa
111 Group:          X11/Applications
112 Requires:       %{name} = %{version}
113 Requires:       nautilus-python
114
115 %description nautilus
116 Blueman plugin for Nautilus.
117
118 %description nautilus -l pl.UTF-8
119 Wtyczka Bluemana dla Nautilusa.
120
121 %package nemo
122 Summary:        Blueman plugin for Nemo
123 Summary(pl.UTF-8):      Wtyczka Bluemana dla zarządcy plików Nemo
124 Group:          X11/Applications
125 Requires:       %{name} = %{version}
126 Requires:       cinnamon-nemo-python
127
128 %description nemo
129 Blueman plugin for Nautilus.
130
131 %description nemo -l pl.UTF-8
132 Wtyczka Bluemana dla zarządcy plików Nemo.
133
134 %package thunar
135 Summary:        Blueman plugin for Thunar
136 Summary(pl.UTF-8):      Wtyczka Bluemana dla Thunara
137 Group:          X11/Applications
138 Requires:       %{name} = %{version}
139
140 %description thunar
141 Blueman plugin for Thunar.
142
143 %description thunar -l pl.UTF-8
144 Wtyczka Bluemana dla Thunara.
145
146 %prep
147 %setup -q
148
149 %build
150 %{__libtoolize}
151 %{__aclocal}
152 %{__autoconf}
153 %{__autoheader}
154 %{__automake}
155 %configure \
156         CYTHONEXEC=/usr/bin/cython3 \
157         NETWORKTOOLS=/sbin/ip \
158         --disable-runtime-deps-check \
159         --disable-schemas-compile \
160         --disable-static \
161         --enable-polkit \
162         %{__enable_disable mate caja-sendto} \
163         %{__enable_disable cinnamon nemo-sendto} \
164         %{__enable_disable gnome nautilus-sendto} \
165         %{__enable_disable xfce thunar-sendto} \
166         --enable-settings-integration
167
168 %{__make}
169
170 %install
171 rm -rf $RPM_BUILD_ROOT
172 %{__make} install \
173         DESTDIR=$RPM_BUILD_ROOT
174
175 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
176 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/_blueman.la
177
178 # DO NOT RUN py_postclean - breaks plugins and everything
179
180 %find_lang %{name} --with-gnome
181
182 %clean
183 rm -rf $RPM_BUILD_ROOT
184
185 %post
186 %update_icon_cache hicolor
187 glib-compile-schemas %{_datadir}/glib-2.0/schemas
188 %service %{name}-mechanism restart
189 %systemd_post %{name}-mechanism.service
190 %systemd_user_post blueman-applet.service blueman-manager.service
191
192 %preun
193 if [ "$1" = "0" ]; then
194         %service -q %{name}-mechanism stop
195 fi
196 %systemd_preun %{name}-mechanism.service
197 %systemd_user_preun blueman-applet.service blueman-manager.service
198
199 %postun
200 %update_icon_cache hicolor
201 glib-compile-schemas %{_datadir}/glib-2.0/schemas
202 %systemd_reload
203
204 %files -f %{name}.lang
205 %defattr(644,root,root,755)
206 %doc README.md CHANGELOG.md COPYING FAQ
207 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/autostart/blueman.desktop
208 %attr(755,root,root) %{_bindir}/blueman-adapters
209 %attr(755,root,root) %{_bindir}/blueman-applet
210 %attr(755,root,root) %{_bindir}/blueman-manager
211 %attr(755,root,root) %{_bindir}/blueman-sendto
212 %attr(755,root,root) %{_bindir}/blueman-services
213 %attr(755,root,root) %{_bindir}/blueman-tray
214 %{_mandir}/man1/blueman-adapters.1*
215 %{_mandir}/man1/blueman-applet.1*
216 %{_mandir}/man1/blueman-manager.1*
217 %{_mandir}/man1/blueman-sendto.1*
218 %{_mandir}/man1/blueman-services.1*
219 %{_mandir}/man1/blueman-tray.1*
220 %attr(755,root,root) %{_libexecdir}/%{name}-mechanism
221 %attr(755,root,root) %{_libexecdir}/%{name}-rfcomm-watcher
222 %{_datadir}/%{name}
223 %{_datadir}/dbus-1/system-services/org.blueman.Mechanism.service
224 %{_desktopdir}/blueman-manager.desktop
225 %{_desktopdir}/blueman-adapters.desktop
226 %{_iconsdir}/hicolor/scalable/*/*.svg
227 %{_iconsdir}/hicolor/*/*/*.png
228 %{_datadir}/glib-2.0/schemas/org.blueman.gschema.xml
229 %{systemdunitdir}/blueman-mechanism.service
230 %{systemduserunitdir}/blueman-applet.service
231 %{systemduserunitdir}/blueman-manager.service
232 %{_datadir}/dbus-1/services/org.blueman.Applet.service
233 %{_datadir}/dbus-1/services/org.blueman.Manager.service
234 %{_datadir}/dbus-1/system.d/org.blueman.Mechanism.conf
235 %{_datadir}/polkit-1/actions/org.blueman.policy
236 %{_datadir}/polkit-1/rules.d/blueman.rules
237 %attr(755,root,root) %{py3_sitedir}/_blueman.so
238 %{py3_sitescriptdir}/%{name}
239
240 %if %{with mate}
241 %files caja
242 %defattr(644,root,root,755)
243 %{_datadir}/caja-python/extensions/caja_blueman_sendto.py
244 %endif
245
246 %if %{with gnome}
247 %files nautilus
248 %defattr(644,root,root,755)
249 %{_datadir}/nautilus-python/extensions/nautilus_blueman_sendto.py
250 %endif
251
252 %if %{with cinnamon}
253 %files nemo
254 %defattr(644,root,root,755)
255 %{_datadir}/nemo-python/extensions/nemo_blueman_sendto.py
256 %endif
257
258 %if %{with xfce}
259 %files thunar
260 %defattr(644,root,root,755)
261 %{_datadir}/Thunar/sendto/thunar-sendto-blueman.desktop
262 %endif
This page took 0.040177 seconds and 3 git commands to generate.