BRs for tar.xz source
[packages/blueman.git] / blueman.spec
CommitLineData
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
7Summary: Blueman - bluetooth management utility for GNOME
8Name: blueman
7c97fd01
KM
9Version: 2.1.4
10Release: 1
3c7b0773 11License: GPL
fa941284
L
12Group: X11/Applications
13Source0: https://github.com/blueman-project/blueman/releases/download/%{version}/%{name}-%{version}.tar.xz
7c97fd01 14# Source0-md5: e0e4703ace8cc6ed31c5a099cfaf091d
fa941284 15URL: https://github.com/blueman-project/blueman
81a7d0fd 16BuildRequires: autoconf >= 2.61
fa941284 17BuildRequires: automake
c8d32e64 18BuildRequires: bluez-libs-devel >= 5.0
3552d76d
JP
19%{?with_mate:BuildRequires: caja-python-devel}
20%{?with_cinnamon:BuildRequires: cinnamon-nemo-python-devel}
15e75860 21BuildRequires: gettext-tools
81a7d0fd 22BuildRequires: glib2-devel >= 1:2.32
f081be6b 23BuildRequires: gtk+3-devel >= 3.12
fa941284 24BuildRequires: intltool >= 0.35.0
293276eb 25BuildRequires: libtool
3552d76d 26%{?with_gnome:BuildRequires: nautilus-python-devel}
81a7d0fd
JP
27BuildRequires: pkgconfig >= 1:0.9.0
28BuildRequires: polkit-devel
c8d32e64 29BuildRequires: python-pygobject3-common-devel >= 3.27.2
81a7d0fd 30BuildRequires: python3-Cython
fcc021b0 31BuildRequires: python3-devel >= 1:3.3
5cc4ce65 32BuildRequires: rpm-pythonprov
feac9add 33BuildRequires: rpmbuild(macros) >= 1.644
81a7d0fd 34BuildRequires: systemd-units
29c55b9b
JP
35BuildRequires: tar >= 1:1.22
36BuildRequires: xz
f0242065
AF
37Requires(post,postun): gtk-update-icon-cache
38Requires(post,postun): hicolor-icon-theme
c8d32e64
KM
39Requires(post,preun,postun): systemd-units >= 38
40Requires: bluez-libs >= 5.0
41Requires: bluez-utils >= 5.0
81a7d0fd 42Requires: glib2 >= 1:2.32
f081be6b 43Requires: gtk+3 >= 3.12
81a7d0fd
JP
44Requires: python3 >= %py3_ver
45Requires: python3-pygobject3 >= 3.27.2
46Suggests: libappindicator-gtk3
c8d32e64
KM
47Suggests: pulseaudio-bluetooth
48Suggests: pulseaudio-hal
5cc4ce65
MWP
49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51%description
52Blueman is a GTK+ bluetooth management utility for GNOME using bluez
53dbus backend. The aim is to create a full featured graphical bluetooth
54manager for Linux.
55
56Features:
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
73Summary: Blueman plugin for Caja
74Summary(pl.UTF-8): Wtyczka Blueman-a dla managera plików Caja
75Group: X11/Applications
76Requires: %{name} = %{version}
77Requires: caja-python
78
79%description caja
80Blueman plugin for Caja.
81
82%description caja -l pl.UTF-8
83Wtyczka Blueman-a dla managera plików Caja.
84
85%package nautilus
86Summary: Blueman plugin for Nautilus
87Summary(pl.UTF-8): Wtyczka Blueman-a dla Nautilus-a
88Group: X11/Applications
89Requires: %{name} = %{version}
90Requires: nautilus-python
91
92%description nautilus
93Blueman plugin for Nautilus.
94
95%description nautilus -l pl.UTF-8
96Wtyczka Blueman-a dla Nautilus-a.
97
98%package nemo
99Summary: Blueman plugin for Nemo
100Summary(pl.UTF-8): Wtyczka Blueman-a dla managera plików Nemo.
101Group: X11/Applications
102Requires: %{name} = %{version}
103Requires: cinnamon-nemo-python
104
105%description nemo
106Blueman plugin for Nautilus.
107
108%description nemo -l pl.UTF-8
109Wtyczka Blueman-a dla managera plików Nemo.
110
fa941284
L
111%package thunar
112Summary: Blueman plugin for Thunar
113Summary(pl.UTF-8): Wtyczka Blueman-a dla Thunar-a
114Group: X11/Applications
c8d32e64 115Requires: %{name} = %{version}
fa941284
L
116
117%description thunar
118Blueman plugin for Thunar.
119
120%description thunar -l pl.UTF-8
121Wtyczka 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 \
68bdd93d 130 --disable-static \
fa941284 131 --disable-schemas-compile \
c8d32e64 132 --enable-polkit \
3552d76d
JP
133 %{__enable_disable mate caja-sendto} \
134 %{__enable_disable cinnamon nemo-sendto} \
135 %{__enable_disable gnome nautilus-sendto} \
136 %{__enable_disable xfce thunar-sendto} \
c8d32e64 137 --enable-settings-integration
fa941284 138
fb1a0cdd 139%{__make}
5cc4ce65
MWP
140
141%install
142rm -rf $RPM_BUILD_ROOT
fb1a0cdd 143%{__make} install \
11ad311c 144 DESTDIR=$RPM_BUILD_ROOT
5cc4ce65 145
68bdd93d 146%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
2a7ffba5 147%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/_blueman.la
68bdd93d 148
5759428a
JR
149# DO NOT RUN py_postclean - breaks plugins and everything
150
5cc4ce65
MWP
151%find_lang %{name} --with-gnome
152
153%clean
154rm -rf $RPM_BUILD_ROOT
155
8235d8ec 156%post
157%update_icon_cache hicolor
fa941284 158glib-compile-schemas %{_datadir}/glib-2.0/schemas
c8d32e64
KM
159%service %{name}-mechanism restart
160%systemd_post %{name}-mechanism.service
161
162%preun
163if [ "$1" = "0" ]; then
164 %service -q %{name}-mechanism stop
165fi
166%systemd_preun %{name}-mechanism.service
8235d8ec 167
168%postun
169%update_icon_cache hicolor
fa941284 170glib-compile-schemas %{_datadir}/glib-2.0/schemas
c8d32e64 171%systemd_reload
8235d8ec 172
5cc4ce65
MWP
173%files -f %{name}.lang
174%defattr(644,root,root,755)
fa941284 175%doc README.md CHANGELOG.md COPYING FAQ
fb1a0cdd 176%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.blueman.Mechanism.conf
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
180%attr(755,root,root) %{_bindir}/blueman-assistant
017008df
ER
181%attr(755,root,root) %{_bindir}/blueman-manager
182%attr(755,root,root) %{_bindir}/blueman-report
183%attr(755,root,root) %{_bindir}/blueman-sendto
184%attr(755,root,root) %{_bindir}/blueman-services
c8d32e64 185%attr(755,root,root) %{_bindir}/blueman-tray
017008df
ER
186%{_mandir}/man1/blueman-adapters.1*
187%{_mandir}/man1/blueman-applet.1*
188%{_mandir}/man1/blueman-assistant.1*
017008df
ER
189%{_mandir}/man1/blueman-manager.1*
190%{_mandir}/man1/blueman-report.1
191%{_mandir}/man1/blueman-sendto.1*
192%{_mandir}/man1/blueman-services.1*
c8d32e64 193%{_mandir}/man1/blueman-tray.1*
5759428a
JR
194%attr(755,root,root) %{_libexecdir}/%{name}-mechanism
195%attr(755,root,root) %{_libexecdir}/%{name}-rfcomm-watcher
5cc4ce65
MWP
196%{_datadir}/%{name}
197%{_datadir}/dbus-1/system-services/org.blueman.Mechanism.service
017008df
ER
198%{_desktopdir}/blueman-manager.desktop
199%{_desktopdir}/blueman-adapters.desktop
7e0fad4e 200%{_iconsdir}/hicolor/scalable/*/*.svg
b8c4aac2 201%{_iconsdir}/hicolor/*/*/*.png
017008df
ER
202%dir %{_pixmapsdir}/blueman
203%{_pixmapsdir}/blueman/blueman-*.png
fa941284 204%{_datadir}/glib-2.0/schemas/org.blueman.gschema.xml
c8d32e64
KM
205%{systemdunitdir}/blueman-mechanism.service
206%{systemduserunitdir}/blueman-applet.service
207%{_datadir}/dbus-1/services/org.blueman.Applet.service
afb5f40e 208%{_datadir}/polkit-1/actions/org.blueman.policy
c8d32e64 209%{_datadir}/polkit-1/rules.d/blueman.rules
2a7ffba5
JP
210%attr(755,root,root) %{py3_sitedir}/_blueman.so
211%{py3_sitedir}/%{name}
c8d32e64 212
3552d76d 213%if %{with mate}
c8d32e64
KM
214%files caja
215%defattr(644,root,root,755)
216%{_datadir}/caja-python/extensions/caja_blueman_sendto.py
3552d76d 217%endif
c8d32e64 218
3552d76d 219%if %{with gnome}
c8d32e64
KM
220%files nautilus
221%defattr(644,root,root,755)
222%{_datadir}/nautilus-python/extensions/nautilus_blueman_sendto.py
3552d76d 223%endif
c8d32e64 224
3552d76d 225%if %{with cinnamon}
c8d32e64
KM
226%files nemo
227%defattr(644,root,root,755)
228%{_datadir}/nemo-python/extensions/nemo_blueman_sendto.py
3552d76d 229%endif
fa941284 230
3552d76d 231%if %{with xfce}
fa941284
L
232%files thunar
233%defattr(644,root,root,755)
234%{_datadir}/Thunar/sendto/thunar-sendto-blueman.desktop
3552d76d 235%endif
This page took 0.087155 seconds and 4 git commands to generate.