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