3 %bcond_without apidocs # API documentation
5 Summary: GNOME Bluetooth Subsystem
6 Summary(pl.UTF-8): Podsystem GNOME Bluetooth
11 Group: X11/Applications
12 Source0: https://download.gnome.org/sources/gnome-bluetooth/42/%{name}-%{version}.tar.xz
13 # Source0-md5: a4b2b8f1321bcc33a868894fae364554
14 Source1: 61-%{name}-rfkill.rules
15 URL: https://wiki.gnome.org/Projects/GnomeBluetooth
16 BuildRequires: docbook-dtd412-xml
17 BuildRequires: gettext-tools >= 0.17
18 BuildRequires: glib2-devel >= 1:2.44
19 BuildRequires: gobject-introspection-devel >= 0.10.0
20 BuildRequires: gsound-devel
21 BuildRequires: gtk4-devel >= 4.4
22 %{?with_apidocs:BuildRequires: gtk-doc >= 1.9}
23 BuildRequires: libadwaita-devel >= 1.1
24 BuildRequires: libnotify-devel >= 0.7.0
25 BuildRequires: libxml2-progs
26 BuildRequires: meson >= 0.58.0
27 BuildRequires: ninja >= 1.5
28 BuildRequires: pkgconfig
29 BuildRequires: rpm-build >= 4.6
30 BuildRequires: rpmbuild(macros) >= 1.736
31 BuildRequires: tar >= 1:1.22
32 BuildRequires: udev-devel
33 BuildRequires: upower-devel >= 0.99.14
35 Requires: gnome-bluetooth3-libs = %{version}-%{release}
36 Requires: gnome-bluetooth3-ui-libs = %{version}-%{release}
37 Requires: bluez >= 4.22
38 Requires: dbus(org.openobex.client)
40 Requires: hicolor-icon-theme
42 Obsoletes: bluez-gnome < 1.9
43 Obsoletes: bluez-pin < 0.31
44 Obsoletes: nautilus-sendto-gnome-bluetooth < 3.8
45 Obsoletes: python-gnome-bluetooth < 0.5.1-1
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 GNOME Bluetooth provides tools for controlling and communicating with
52 %description -l pl.UTF-8
53 GNOME Bluetooth dostarcza narzędzia do kontrolowania i komunikowania
54 się z urządzeniami Bluetooth.
56 %package -n gnome-bluetooth3-libs
57 Summary: GNOME Bluetooth 3.0 subsystem shared library
58 Summary(pl.UTF-8): Biblioteka współdzielona podsystemu GNOME Bluetooth 3.0
61 Requires: glib2 >= 1:2.44
62 Requires: upower-libs >= 0.99.14
64 %description -n gnome-bluetooth3-libs
65 GNOME Bluetooth 3.0 subsystem shared library.
67 %description -n gnome-bluetooth3-libs -l pl.UTF-8
68 Biblioteka współdzielona podsystemu GNOME Bluetooth 3.0.
70 %package -n gnome-bluetooth3-devel
71 Summary: Header files for GNOME Bluetooth 3.0 subsystem
72 Summary(pl.UTF-8): Pliki nagłówkowe podsystemu GNOME Bluetooth 3.0
74 Group: X11/Development/Libraries
75 Requires: gnome-bluetooth3-libs = %{version}-%{release}
76 Requires: glib2-devel >= 1:2.44
77 Obsoletes: gnome-bluetooth-static < 3.32
79 %description -n gnome-bluetooth3-devel
80 Header files for GNOME Bluetooth 3.0 subsystem.
82 %description -n gnome-bluetooth3-devel -l pl.UTF-8
83 Pliki nagłówkowe podsystemu GNOME Bluetooth 3.0.
85 %package -n gnome-bluetooth3-ui-libs
86 Summary: GNOME Bluetooth 3.0 subsystem UI shared library
87 Summary(pl.UTF-8): Współdzielone biblioteki UI podsystemu GNOME Bluetooth 3.0
90 Requires: gnome-bluetooth3-libs = %{version}-%{release}
91 Requires: glib2 >= 1:2.44
93 Requires: libadwaita >= 1.1
94 Requires: libnotify-devel >= 0.7.0
95 Requires: upower-libs >= 0.99.14
97 %description -n gnome-bluetooth3-ui-libs
98 GNOME Bluetooth 3.0 subsystem UI shared library.
100 %description -n gnome-bluetooth3-ui-libs -l pl.UTF-8
101 Współdzielone biblioteki UI podsystemu GNOME Bluetooth 3.0.
103 %package -n gnome-bluetooth3-ui-devel
104 Summary: Header files for GNOME Bluetooth 3.0 subsystem UI
105 Summary(pl.UTF-8): Pliki nagłówkowe UI podsystemu GNOME Bluetooth 3.0
107 Group: X11/Development/Libraries
108 Requires: gnome-bluetooth3-devel = %{version}-%{release}
109 Requires: gnome-bluetooth3-ui-libs = %{version}-%{release}
110 Requires: glib2-devel >= 1:2.44
111 Requires: gtk4-devel >= 4.4
112 Requires: libadwaita-devel >= 1.1
114 %description -n gnome-bluetooth3-ui-devel
115 Header files for GNOME Bluetooth 3.0 subsystem UI.
117 %description -n gnome-bluetooth3-ui-devel -l pl.UTF-8
118 Pliki nagłówkowe UI podsystemu GNOME Bluetooth 3.0.
120 %package -n gnome-bluetooth3-apidocs
121 Summary: GNOME Bluetooth 3.0 library API documentation
122 Summary(pl.UTF-8): Dokumentacja API biblioteki GNOME Bluetooth 3.0
126 %description -n gnome-bluetooth3-apidocs
127 GNOME Bluetooth library API documentation.
129 %description -n gnome-bluetooth3-apidocs -l pl.UTF-8
130 Dokumentacja API biblioteki GNOME Bluetooth.
137 %{?with_apidocs:-Dgtk_doc=true}
139 %ninja_build -C build
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
145 %ninja_install -C build
147 cp -p %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d
149 # not supported by glibc (as of 2.37)
150 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie
152 %find_lang %{name}-3.0
155 rm -rf $RPM_BUILD_ROOT
157 %post -n gnome-bluetooth3-libs -p /sbin/ldconfig
158 %postun -n gnome-bluetooth3-libs -p /sbin/ldconfig
160 %post -n gnome-bluetooth3-ui-libs -p /sbin/ldconfig
161 %postun -n gnome-bluetooth3-ui-libs -p /sbin/ldconfig
163 %files -f %{name}-3.0.lang
164 %defattr(644,root,root,755)
165 %doc AUTHORS MAINTAINERS NEWS README.md
166 %attr(755,root,root) %{_bindir}/bluetooth-sendto
167 %{_desktopdir}/bluetooth-sendto.desktop
168 %{_mandir}/man1/bluetooth-sendto.1*
169 /lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
171 %files -n gnome-bluetooth3-libs
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_libdir}/libgnome-bluetooth-3.0.so.*.*.*
174 %attr(755,root,root) %ghost %{_libdir}/libgnome-bluetooth-3.0.so.13
175 %{_libdir}/girepository-1.0/GnomeBluetooth-3.0.typelib
176 %{_datadir}/gnome-bluetooth-3.0
178 %files -n gnome-bluetooth3-devel
179 %defattr(644,root,root,755)
180 %attr(755,root,root) %{_libdir}/libgnome-bluetooth-3.0.so
182 %{_datadir}/gir-1.0/GnomeBluetooth-3.0.gir
183 %{_pkgconfigdir}/gnome-bluetooth-3.0.pc
185 %files -n gnome-bluetooth3-ui-libs
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_libdir}/libgnome-bluetooth-ui-3.0.so.*.*.*
188 %attr(755,root,root) %ghost %{_libdir}/libgnome-bluetooth-ui-3.0.so.13
190 %files -n gnome-bluetooth3-ui-devel
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_libdir}/libgnome-bluetooth-ui-3.0.so
193 %dir %{_includedir}/gnome-bluetooth-3.0
194 %{_includedir}/gnome-bluetooth-3.0/bluetooth-settings-widget.h
195 %{_pkgconfigdir}/gnome-bluetooth-ui-3.0.pc
198 %files -n gnome-bluetooth3-apidocs
199 %defattr(644,root,root,755)
200 %{_gtkdocdir}/gnome-bluetooth-3.0