]>
Commit | Line | Data |
---|---|---|
ec9b6daa JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
9f12a1a8 | 5 | Summary: GNOME Bluetooth Subsystem |
8c26edb1 | 6 | Summary(pl.UTF-8): Podsystem GNOME Bluetooth |
9f12a1a8 | 7 | Name: gnome-bluetooth |
78a0f9a7 | 8 | Version: 42.5 |
4ac73a6c | 9 | Release: 2 |
bb313757 | 10 | License: GPL v2+ |
9f12a1a8 | 11 | Group: X11/Applications |
bd92d8f6 | 12 | Source0: https://download.gnome.org/sources/gnome-bluetooth/42/%{name}-%{version}.tar.xz |
78a0f9a7 | 13 | # Source0-md5: 686d360ba843521db42da02a552b045f |
7028a161 | 14 | Source1: 61-%{name}-rfkill.rules |
bcd536bd | 15 | URL: https://wiki.gnome.org/Projects/GnomeBluetooth |
6726bbc2 | 16 | BuildRequires: docbook-dtd412-xml |
0fee6871 | 17 | BuildRequires: gettext-tools >= 0.17 |
bd92d8f6 | 18 | BuildRequires: glib2-devel >= 1:2.44 |
e1c3c890 | 19 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
bd92d8f6 JB |
20 | BuildRequires: gsound-devel |
21 | BuildRequires: gtk4-devel >= 4.4 | |
ec9b6daa | 22 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} |
bd92d8f6 | 23 | BuildRequires: libadwaita-devel >= 1.1 |
e1c3c890 | 24 | BuildRequires: libnotify-devel >= 0.7.0 |
e1c3c890 | 25 | BuildRequires: libxml2-progs |
bd92d8f6 | 26 | BuildRequires: meson >= 0.58.0 |
bcd536bd | 27 | BuildRequires: ninja >= 1.5 |
7e1deda9 | 28 | BuildRequires: pkgconfig |
113cbe97 | 29 | BuildRequires: rpm-build >= 4.6 |
bcd536bd | 30 | BuildRequires: rpmbuild(macros) >= 1.736 |
848efb18 | 31 | BuildRequires: tar >= 1:1.22 |
f63cd49f | 32 | BuildRequires: udev-devel |
bd92d8f6 | 33 | BuildRequires: upower-devel >= 0.99.14 |
848efb18 | 34 | BuildRequires: xz |
bd92d8f6 JB |
35 | Requires: gnome-bluetooth3-libs = %{version}-%{release} |
36 | Requires: gnome-bluetooth3-ui-libs = %{version}-%{release} | |
bb313757 | 37 | Requires: bluez >= 4.22 |
2b51e6fb | 38 | Requires: dbus(org.openobex.client) |
2b51e6fb | 39 | Requires: dconf |
e1c3c890 | 40 | Requires: hicolor-icon-theme |
243eb35b | 41 | Requires: udev-acl |
bb313757 | 42 | Obsoletes: bluez-gnome < 1.9 |
113cbe97 JB |
43 | Obsoletes: bluez-pin < 0.31 |
44 | Obsoletes: nautilus-sendto-gnome-bluetooth < 3.8 | |
45 | Obsoletes: python-gnome-bluetooth < 0.5.1-1 | |
9f12a1a8 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
bb313757 PZ |
49 | GNOME Bluetooth provides tools for controlling and communicating with |
50 | Bluetooth devices. | |
aa1c0cd7 | 51 | |
c63d8c67 | 52 | %description -l pl.UTF-8 |
bb313757 PZ |
53 | GNOME Bluetooth dostarcza narzędzia do kontrolowania i komunikowania |
54 | się z urządzeniami Bluetooth. | |
9f12a1a8 | 55 | |
bd92d8f6 JB |
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 | |
bb313757 | 59 | License: LGPL v2+ |
bd92d8f6 JB |
60 | Group: Libraries |
61 | Requires: glib2 >= 1:2.44 | |
62 | Requires: upower-libs >= 0.99.14 | |
eb737090 | 63 | |
bd92d8f6 JB |
64 | %description -n gnome-bluetooth3-libs |
65 | GNOME Bluetooth 3.0 subsystem shared library. | |
eb737090 | 66 | |
bd92d8f6 JB |
67 | %description -n gnome-bluetooth3-libs -l pl.UTF-8 |
68 | Biblioteka współdzielona podsystemu GNOME Bluetooth 3.0. | |
eb737090 | 69 | |
bd92d8f6 JB |
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 | |
bb313757 PZ |
73 | License: LGPL v2+ |
74 | Group: X11/Development/Libraries | |
bd92d8f6 JB |
75 | Requires: gnome-bluetooth3-libs = %{version}-%{release} |
76 | Requires: glib2-devel >= 1:2.44 | |
113cbe97 | 77 | Obsoletes: gnome-bluetooth-static < 3.32 |
5e099b62 | 78 | |
bd92d8f6 JB |
79 | %description -n gnome-bluetooth3-devel |
80 | Header files for GNOME Bluetooth 3.0 subsystem. | |
81 | ||
82 | %description -n gnome-bluetooth3-devel -l pl.UTF-8 | |
83 | Pliki nagłówkowe podsystemu GNOME Bluetooth 3.0. | |
84 | ||
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 | |
88 | License: LGPL v2+ | |
89 | Group: X11/Libraries | |
90 | Requires: gnome-bluetooth3-libs = %{version}-%{release} | |
91 | Requires: glib2 >= 1:2.44 | |
92 | Requires: gtk4 >= 4.4 | |
93 | Requires: libadwaita >= 1.1 | |
94 | Requires: libnotify-devel >= 0.7.0 | |
95 | Requires: upower-libs >= 0.99.14 | |
96 | ||
97 | %description -n gnome-bluetooth3-ui-libs | |
98 | GNOME Bluetooth 3.0 subsystem UI shared library. | |
99 | ||
100 | %description -n gnome-bluetooth3-ui-libs -l pl.UTF-8 | |
101 | Współdzielone biblioteki UI podsystemu GNOME Bluetooth 3.0. | |
102 | ||
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 | |
106 | License: LGPL v2+ | |
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 | |
5e099b62 | 113 | |
bd92d8f6 JB |
114 | %description -n gnome-bluetooth3-ui-devel |
115 | Header files for GNOME Bluetooth 3.0 subsystem UI. | |
fd348385 | 116 | |
bd92d8f6 JB |
117 | %description -n gnome-bluetooth3-ui-devel -l pl.UTF-8 |
118 | Pliki nagłówkowe UI podsystemu GNOME Bluetooth 3.0. | |
119 | ||
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 | |
bb313757 | 123 | Group: Documentation |
5e25db5a | 124 | BuildArch: noarch |
bb313757 | 125 | |
bd92d8f6 | 126 | %description -n gnome-bluetooth3-apidocs |
bb313757 PZ |
127 | GNOME Bluetooth library API documentation. |
128 | ||
bd92d8f6 | 129 | %description -n gnome-bluetooth3-apidocs -l pl.UTF-8 |
bb313757 | 130 | Dokumentacja API biblioteki GNOME Bluetooth. |
fd348385 | 131 | |
9f12a1a8 | 132 | %prep |
133 | %setup -q | |
a0c56000 | 134 | |
9f12a1a8 | 135 | %build |
44381780 | 136 | %meson build \ |
bd92d8f6 | 137 | %{?with_apidocs:-Dgtk_doc=true} |
b7415b67 | 138 | |
bcd536bd | 139 | %ninja_build -C build |
9f12a1a8 | 140 | |
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
243eb35b | 143 | install -d $RPM_BUILD_ROOT/lib/udev/rules.d |
9f12a1a8 | 144 | |
bcd536bd | 145 | %ninja_install -C build |
9f12a1a8 | 146 | |
5e25db5a | 147 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d |
243eb35b | 148 | |
4ac73a6c JB |
149 | # not supported by glibc (as of 2.37) |
150 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
151 | ||
bd92d8f6 | 152 | %find_lang %{name}-3.0 |
6f96c751 | 153 | |
af3c0357 JB |
154 | %clean |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
bd92d8f6 JB |
157 | %post -n gnome-bluetooth3-libs -p /sbin/ldconfig |
158 | %postun -n gnome-bluetooth3-libs -p /sbin/ldconfig | |
0ea4b2ea | 159 | |
bd92d8f6 JB |
160 | %post -n gnome-bluetooth3-ui-libs -p /sbin/ldconfig |
161 | %postun -n gnome-bluetooth3-ui-libs -p /sbin/ldconfig | |
eb737090 | 162 | |
bd92d8f6 | 163 | %files -f %{name}-3.0.lang |
9f12a1a8 | 164 | %defattr(644,root,root,755) |
ec9b6daa | 165 | %doc AUTHORS MAINTAINERS NEWS README.md |
bb313757 | 166 | %attr(755,root,root) %{_bindir}/bluetooth-sendto |
e1c3c890 | 167 | %{_desktopdir}/bluetooth-sendto.desktop |
bb313757 | 168 | %{_mandir}/man1/bluetooth-sendto.1* |
243eb35b | 169 | /lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules |
6f96c751 | 170 | |
bd92d8f6 JB |
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 | |
177 | ||
178 | %files -n gnome-bluetooth3-devel | |
179 | %defattr(644,root,root,755) | |
180 | %attr(755,root,root) %{_libdir}/libgnome-bluetooth-3.0.so | |
181 | # no C headers here | |
182 | %{_datadir}/gir-1.0/GnomeBluetooth-3.0.gir | |
183 | %{_pkgconfigdir}/gnome-bluetooth-3.0.pc | |
184 | ||
185 | %files -n gnome-bluetooth3-ui-libs | |
eb737090 | 186 | %defattr(644,root,root,755) |
bd92d8f6 JB |
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 | |
eb737090 | 189 | |
bd92d8f6 | 190 | %files -n gnome-bluetooth3-ui-devel |
5e099b62 | 191 | %defattr(644,root,root,755) |
bd92d8f6 JB |
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 | |
5e099b62 | 196 | |
ec9b6daa | 197 | %if %{with apidocs} |
bd92d8f6 | 198 | %files -n gnome-bluetooth3-apidocs |
5e099b62 | 199 | %defattr(644,root,root,755) |
bd92d8f6 | 200 | %{_gtkdocdir}/gnome-bluetooth-3.0 |
ec9b6daa | 201 | %endif |