]> git.pld-linux.org Git - packages/bluez.git/blame - bluez.spec
- rel 3
[packages/bluez.git] / bluez.spec
CommitLineData
8e2aef6c
AM
1Summary: Bluetooth utilities
2Summary(pl.UTF-8): Narzędzia Bluetooth
3Name: bluez
10267689 4Version: 4.98
bfe3d974 5Release: 3
8e2aef6c
AM
6License: GPL v2+
7Group: Applications/System
8#Source0Download: http://www.bluez.org/download.html
68f03ff6 9Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.bz2
10267689 10# Source0-md5: 4aca8a0929250212e9a75fb60dd75b05
8e2aef6c
AM
11Source1: %{name}.init
12Source2: %{name}.sysconfig
829382b7
AM
13Source3: dund.init
14Source4: pand.init
15Source5: rfcomm.init
8e2aef6c 16Patch0: %{name}-etc_dir.patch
16869a45 17Patch1: %{name}-wacom-mode-2.patch
7fec19c2 18Patch2: %{name}-systemd.patch
8e2aef6c
AM
19URL: http://www.bluez.org/
20BuildRequires: alsa-lib-devel >= 1.0.10-1
b0a62422 21BuildRequires: autoconf >= 2.60
8e2aef6c
AM
22BuildRequires: automake
23BuildRequires: bison
ab22d2c3 24BuildRequires: check-devel >= 0.9.4
b0a62422 25BuildRequires: dbus-devel >= 1.0
c150cb86
JB
26BuildRequires: glib2-devel >= 1:2.16
27BuildRequires: gstreamer-devel >= 0.10.30
8e2aef6c 28BuildRequires: gstreamer-plugins-base-devel >= 0.10
2b38a1f3 29BuildRequires: libcap-ng-devel
8e2aef6c
AM
30BuildRequires: libsndfile-devel
31BuildRequires: libtool
8743dbe7 32BuildRequires: libusb-compat-devel
8e2aef6c 33BuildRequires: pkgconfig >= 1:0.9.0
9980fdad 34BuildRequires: readline-devel
ef6d37ba 35BuildRequires: rpmbuild(macros) >= 1.626
9b3fd779 36BuildRequires: udev-devel
bfe3d974 37Requires: %{name}-libs = %{version}-%{release}
c150cb86 38Requires: glib2 >= 1:2.16
0416a3b3 39Requires: hwdata >= 0.225
9b3fd779 40Requires: rc-scripts
bfe3d974
JR
41Requires: systemd-units >= 37-0.10
42Provides: bluez-utils = %{version}-%{release}
8e2aef6c
AM
43Obsoletes: bluez-hciemu
44Obsoletes: bluez-pan
45Obsoletes: bluez-sdp
5e8dfcdf 46Obsoletes: bluez-utils
8e2aef6c
AM
47Obsoletes: bluez-utils-init
48Conflicts: bluez-bluefw
49ExcludeArch: s390 s390x
50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52# currently lib, not %{_lib} (see cups.spec)
53%define cupsdir /usr/lib/cups/backend
d80dfd39 54%define udevdir /lib/udev
8e2aef6c
AM
55
56%description
57Bluetooth utilities:
d8eef2ef
TP
58 - bluetoothd
59 - dund
8e2aef6c
AM
60 - hcitool
61 - hciattach
62 - hciconfig
8e2aef6c
AM
63 - hciemu
64 - hidd
65 - l2ping
66 - pand
67 - start scripts (PLD)
68 - PCMCIA configuration files
69
70The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
71
72%description -l pl.UTF-8
73Narzędzia Bluetooth:
d8eef2ef
TP
74 - bluetoothd
75 - dund
8e2aef6c
AM
76 - hcitool
77 - hciattach
78 - hciconfig
8e2aef6c
AM
79 - hciemu
80 - hidd
81 - l2ping
82 - pand
83 - skrypty startowe (PLD)
84 - pliki konfiguracji PCMCIA
85
86Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
87
88%package -n alsa-plugins-bluetooth
89Summary: ALSA plugins for Bluetooth audio devices
90Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
91Group: Libraries
92# bluetoothd + audio service
bfe3d974 93Requires: %{name} = %{version}-%{release}
8e2aef6c
AM
94Requires: alsa-lib >= 1.0.10-1
95
96%description -n alsa-plugins-bluetooth
97ALSA plugins for Bluetooth audio devices.
98
99%description -n alsa-plugins-bluetooth -l pl.UTF-8
100Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
101
102%package -n cups-backend-bluetooth
103Summary: Bluetooth backend for CUPS
104Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
105Group: Applications/Printing
bfe3d974 106Requires: bluez-libs >= %{version}-%{release}
8e2aef6c
AM
107Requires: cups
108
109%description -n cups-backend-bluetooth
110Bluetooth backend for CUPS.
111
112%description -n cups-backend-bluetooth -l pl.UTF-8
113Backend Bluetooth dla CUPS-a.
114
115%package -n gstreamer-bluetooth
116Summary: Bluetooth support for gstreamer
117Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
118Group: Libraries
bfe3d974 119Requires: bluez-libs >= %{version}-%{release}
c150cb86 120Requires: gstreamer >= 0.10.30
8e2aef6c
AM
121Requires: gstreamer-plugins-base >= 0.10
122
123%description -n gstreamer-bluetooth
124Bluetooth support for gstreamer.
125
126%description -n gstreamer-bluetooth -l pl.UTF-8
127Obsługa Bluetooth dla gstreamera.
128
129%package libs
130Summary: Bluetooth libraries
131Summary(pl.UTF-8): Biblioteki Bluetooth
ce95dcac 132Group: Libraries
8e2aef6c
AM
133Obsoletes: bluez-sdp
134
135%description libs
136Libraries for use in Bluetooth applications.
137
138The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
139
140%description libs -l pl.UTF-8
141Biblioteki do używania w aplikacjach Bluetooth.
142
143Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
144
145%package libs-devel
146Summary: Header files for Bluetooth applications
147Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
148Group: Development/Libraries
bfe3d974 149Requires: %{name}-libs = %{version}-%{release}
8e2aef6c
AM
150Obsoletes: bluez-sdp-devel
151
152%description libs-devel
153bluez-libs-devel contains header files for use in Bluetooth
154applications.
155
156%description libs-devel -l pl.UTF-8
157Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
158Bluetooth.
159
160%package libs-static
161Summary: Static Bluetooth libraries
162Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
163Group: Development/Libraries
bfe3d974 164Requires: %{name}-libs-devel = %{version}-%{release}
8e2aef6c
AM
165Obsoletes: bluez-sdp-static
166
167%description libs-static
168bluez-libs-static contains development static libraries for use in
169Bluetooth applications.
170
171%description libs-static -l pl.UTF-8
172Ten pakiet zawiera biblioteki statyczne, których można używać do
173aplikacji Bluetooth.
174
175%prep
176%setup -q
177%patch0 -p1
0416a3b3 178%patch1 -p1
7fec19c2 179%patch2 -p1
8e2aef6c
AM
180
181%build
182%{__libtoolize}
183%{__aclocal}
184%{__autoconf}
185%{__autoheader}
186%{__automake}
187%configure \
16869a45 188 --with-ouifile=%{_datadir}/hwdata/oui.txt \
c7fd41e3 189 --with-systemdsystemunitdir=%{systemdunitdir} \
b0a62422 190 --disable-silent-rules \
8e2aef6c
AM
191 --enable-shared \
192 --enable-static \
193 --enable-alsa \
8e2aef6c
AM
194 --enable-audio \
195 --enable-bccmd \
b0a62422 196 --enable-capng \
8e2aef6c 197 --enable-cups \
c150cb86 198 --enable-dbusoob \
8e2aef6c
AM
199 --enable-dfutool \
200 --enable-dund \
201 --enable-gstreamer \
c150cb86 202 --enable-health \
8e2aef6c
AM
203 --enable-hid2hci \
204 --enable-hidd \
205 --enable-input \
8e2aef6c
AM
206 --enable-network \
207 --enable-pand \
5be4f75f 208 --enable-pcmcia \
c150cb86 209 --enable-pnat \
8e2aef6c 210 --enable-serial \
ab22d2c3 211 --enable-thermometer \
8e2aef6c 212 --enable-tools \
5be4f75f 213 --enable-usb \
68f03ff6 214 --enable-wiimote
8e2aef6c 215
284a9eb9 216%{__make} \
8e2aef6c 217 cupsdir=%{cupsdir} \
2b38a1f3 218 rulesdir=%{udevdir}/rules.d \
b0a62422 219 udevdir=%{udevdir}
8e2aef6c
AM
220
221%install
222rm -rf $RPM_BUILD_ROOT
223install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
8e2aef6c
AM
224
225%{__make} install \
226 DESTDIR=$RPM_BUILD_ROOT \
227 cupsdir=%{cupsdir} \
2b38a1f3 228 rulesdir=%{udevdir}/rules.d \
b0a62422 229 udevdir=%{udevdir}
8e2aef6c 230
8e2aef6c
AM
231install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
232install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
829382b7
AM
233install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
234install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
235install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
9a71d017
BZ
236
237install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
238install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
239install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
240install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
241
16869a45 242mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa
243
0859c749 244%{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la}
8e2aef6c
AM
245
246%clean
247rm -rf $RPM_BUILD_ROOT
248
249%post
250/sbin/chkconfig --add bluetooth
829382b7
AM
251/sbin/chkconfig --add dund
252/sbin/chkconfig --add pand
253/sbin/chkconfig --add rfcomm
8e2aef6c 254%service bluetooth restart
829382b7
AM
255%service dund restart
256%service pand restart
257%service rfcomm restart
bfe3d974 258%systemd_post bluetooth.service
8e2aef6c
AM
259
260%preun
261if [ "$1" = "0" ]; then
262 %service bluetooth stop
829382b7
AM
263 %service dund stop
264 %service pand stop
265 %service rfcomm stop
8e2aef6c 266 /sbin/chkconfig --del bluetooth
829382b7
AM
267 /sbin/chkconfig --del dund
268 /sbin/chkconfig --del pand
269 /sbin/chkconfig --del rfcomm
8e2aef6c 270fi
c7fd41e3
BZ
271%systemd_preun bluetooth.service
272
bfe3d974 273%postun
ef6d37ba 274%systemd_reload
c7fd41e3 275
bfe3d974
JR
276%triggerpostun -- bluez < 4.98-3
277%systemd_trigger bluetooth.service
278
279%post libs -p /sbin/ldconfig
280%postun libs -p /sbin/ldconfig
281
8e2aef6c
AM
282%files
283%defattr(644,root,root,755)
f7f17420 284%doc AUTHORS ChangeLog README
3aca1cde
JB
285%attr(755,root,root) %{_bindir}/ciptool
286%attr(755,root,root) %{_bindir}/dfutool
287%attr(755,root,root) %{_bindir}/dund
c150cb86 288%attr(755,root,root) %{_bindir}/gatttool
3aca1cde
JB
289%attr(755,root,root) %{_bindir}/hcitool
290%attr(755,root,root) %{_bindir}/hidd
291%attr(755,root,root) %{_bindir}/l2ping
292%attr(755,root,root) %{_bindir}/pand
293%attr(755,root,root) %{_bindir}/rfcomm
294%attr(755,root,root) %{_bindir}/sdptool
295%attr(755,root,root) %{_sbindir}/bccmd
296%attr(755,root,root) %{_sbindir}/bluetoothd
297%attr(755,root,root) %{_sbindir}/hciattach
298%attr(755,root,root) %{_sbindir}/hciconfig
8e2aef6c
AM
299%dir %{_libdir}/bluetooth
300%dir %{_libdir}/bluetooth/plugins
8e2aef6c 301%dir %{_sysconfdir}/bluetooth
9a71d017 302%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
8e2aef6c 303%attr(754,root,root) /etc/rc.d/init.d/bluetooth
829382b7
AM
304%attr(754,root,root) /etc/rc.d/init.d/dund
305%attr(754,root,root) /etc/rc.d/init.d/pand
306%attr(754,root,root) /etc/rc.d/init.d/rfcomm
8e2aef6c
AM
307%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
308%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
bfe3d974
JR
309%{systemdunitdir}/bluetooth.service
310%{_datadir}/dbus-1/system-services/org.bluez.service
8e2aef6c 311%attr(755,root,root) %{udevdir}/bluetooth_serial
9b2d7208 312%attr(755,root,root) %{udevdir}/hid2hci
8240ea13
ER
313%{udevdir}/rules.d/97-bluetooth.rules
314%{udevdir}/rules.d/97-bluetooth-hid2hci.rules
315%{udevdir}/rules.d/97-bluetooth-serial.rules
3aca1cde
JB
316%{_mandir}/man1/ciptool.1*
317%{_mandir}/man1/dfutool.1*
318%{_mandir}/man1/dund.1*
319%{_mandir}/man1/hcitool.1*
320%{_mandir}/man1/hidd.1*
321%{_mandir}/man1/pand.1*
322%{_mandir}/man1/rfcomm.1*
323%{_mandir}/man1/sdptool.1*
324%{_mandir}/man8/bccmd.8*
325%{_mandir}/man8/bluetoothd.8*
326%{_mandir}/man8/hciattach.8*
327%{_mandir}/man8/hciconfig.8*
328%{_mandir}/man8/hid2hci.8*
329%{_mandir}/man8/l2ping.8*
8e2aef6c
AM
330
331%files -n alsa-plugins-bluetooth
332%defattr(644,root,root,755)
31ae8b61 333%{_sysconfdir}/alsa/bluetooth.conf
8e2aef6c
AM
334%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
335%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
336
337%files -n cups-backend-bluetooth
338%defattr(644,root,root,755)
339%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
340
341%files -n gstreamer-bluetooth
342%defattr(644,root,root,755)
343%attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
344
345%files libs
346%defattr(644,root,root,755)
347%attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
3aca1cde 348%attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
8e2aef6c
AM
349
350%files libs-devel
351%defattr(644,root,root,755)
352%attr(755,root,root) %{_libdir}/libbluetooth.so
8e2aef6c 353%{_includedir}/bluetooth
8e2aef6c
AM
354%{_pkgconfigdir}/bluez.pc
355
356%files libs-static
357%defattr(644,root,root,755)
358%{_libdir}/libbluetooth.a
This page took 0.13719 seconds and 4 git commands to generate.