]> git.pld-linux.org Git - packages/gnome-bluetooth.git/blob - gnome-bluetooth.spec
- updated to 46.0
[packages/gnome-bluetooth.git] / gnome-bluetooth.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs # API documentation
4
5 Summary:        GNOME Bluetooth Subsystem
6 Summary(pl.UTF-8):      Podsystem GNOME Bluetooth
7 Name:           gnome-bluetooth
8 Version:        42.8
9 Release:        1
10 License:        GPL v2+
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
34 BuildRequires:  xz
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)
39 Requires:       dconf
40 Requires:       hicolor-icon-theme
41 Requires:       udev-acl
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)
47
48 %description
49 GNOME Bluetooth provides tools for controlling and communicating with
50 Bluetooth devices.
51
52 %description -l pl.UTF-8
53 GNOME Bluetooth dostarcza narzędzia do kontrolowania i komunikowania
54 się z urządzeniami Bluetooth.
55
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
59 License:        LGPL v2+
60 Group:          Libraries
61 Requires:       glib2 >= 1:2.44
62 Requires:       upower-libs >= 0.99.14
63
64 %description -n gnome-bluetooth3-libs
65 GNOME Bluetooth 3.0 subsystem shared library.
66
67 %description -n gnome-bluetooth3-libs -l pl.UTF-8
68 Biblioteka współdzielona podsystemu GNOME Bluetooth 3.0.
69
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
73 License:        LGPL v2+
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
78
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
113
114 %description -n gnome-bluetooth3-ui-devel
115 Header files for GNOME Bluetooth 3.0 subsystem UI.
116
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
123 Group:          Documentation
124 BuildArch:      noarch
125
126 %description -n gnome-bluetooth3-apidocs
127 GNOME Bluetooth library API documentation.
128
129 %description -n gnome-bluetooth3-apidocs -l pl.UTF-8
130 Dokumentacja API biblioteki GNOME Bluetooth.
131
132 %prep
133 %setup -q
134
135 %build
136 %meson build \
137         %{?with_apidocs:-Dgtk_doc=true}
138
139 %ninja_build -C build
140
141 %install
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
144
145 %ninja_install -C build
146
147 cp -p %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d
148
149 # not supported by glibc (as of 2.37)
150 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie
151
152 %find_lang %{name}-3.0
153
154 %clean
155 rm -rf $RPM_BUILD_ROOT
156
157 %post   -n gnome-bluetooth3-libs -p /sbin/ldconfig
158 %postun -n gnome-bluetooth3-libs -p /sbin/ldconfig
159
160 %post   -n gnome-bluetooth3-ui-libs -p /sbin/ldconfig
161 %postun -n gnome-bluetooth3-ui-libs -p /sbin/ldconfig
162
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
170
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
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
189
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
196
197 %if %{with apidocs}
198 %files -n gnome-bluetooth3-apidocs
199 %defattr(644,root,root,755)
200 %{_gtkdocdir}/gnome-bluetooth-3.0
201 %endif
This page took 0.182763 seconds and 3 git commands to generate.