]> git.pld-linux.org Git - packages/bluez-utils.git/blob - bluez-utils.spec
- complete gstreamer deps
[packages/bluez-utils.git] / bluez-utils.spec
1 Summary:        Bluetooth utilities
2 Summary(pl.UTF-8):      Narzędzia Bluetooth
3 Name:           bluez-utils
4 Version:        3.16
5 Release:        2
6 Epoch:          0
7 License:        GPL v2+
8 Group:          Applications/System
9 #Source0Download: http://www.bluez.org/download.html
10 Source0:        http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
11 # Source0-md5:  f6e5bf09d5f282671aa0abe50e700ee6
12 Source1:        %{name}.init
13 Source2:        %{name}.sysconfig
14 Source3:        %{name}-udev.rules
15 Source4:        %{name}-udev.script
16 Patch0:         %{name}-etc_dir.patch
17 URL:            http://www.bluez.org/
18 BuildRequires:  alsa-lib-devel >= 1.0.10-1
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 BuildRequires:  bison
22 BuildRequires:  bluez-libs-devel >= 3.16
23 BuildRequires:  dbus-glib-devel >= 0.60
24 BuildRequires:  glib2-devel >= 2.0
25 BuildRequires:  gstreamer-devel >= 0.10
26 BuildRequires:  gstreamer-plugins-base-devel >= 0.10
27 BuildRequires:  hal-devel >= 0.5.8
28 BuildRequires:  libtool
29 BuildRequires:  libusb-devel
30 BuildRequires:  pkgconfig >= 1:0.9.0
31 BuildRequires:  rpmbuild(macros) >= 1.268
32 # used only by noinst bluetoothd-service-sync
33 #BuildRequires: libopensync-devel
34 # used only by noinst bluetoothd-service-transfer
35 #BuildRequires: openobex-devel >= 1.1
36 Requires:       bluez-libs >= 3.16
37 Requires:       rc-scripts
38 Obsoletes:      bluez-pan
39 Obsoletes:      bluez-sdp
40 Obsoletes:      bluez-utils-init
41 Conflicts:      bluez-bluefw
42 ExcludeArch:    s390 s390x
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 # currently lib, not %{_lib} (see cups.spec)
46 %define         cupsdir         /usr/lib/cups/backend
47
48 %description
49 Bluetooth utilities:
50  - hcitool
51  - hciattach
52  - hciconfig
53  - hcid
54  - l2ping
55  - start scripts (PLD)
56  - PCMCIA configuration files
57
58 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
59
60 %description -l pl.UTF-8
61 Narzędzia Bluetooth:
62  - hcitool
63  - hciattach
64  - hciconfig
65  - hcid
66  - l2ping
67  - skrypty startowe (PLD)
68  - pliki konfiguracji PCMCIA
69
70 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
71
72 %package -n alsa-plugins-bluetooth
73 Summary:        ALSA plugins for Bluetooth audio devices
74 Summary(pl.UTF-8):      Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
75 Group:          Libraries
76 # bluetoothd + audio service
77 Requires:       %{name} = %{epoch}:%{version}-%{release}
78 Requires:       alsa-lib >= 1.0.10-1
79
80 %description -n alsa-plugins-bluetooth
81 ALSA plugins for Bluetooth audio devices.
82
83 %description -n alsa-plugins-bluetooth -l pl.UTF-8
84 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
85
86 %package -n cups-backend-bluetooth
87 Summary:        Bluetooth backend for CUPS
88 Summary(pl.UTF-8):      Backend Bluetooth dla CUPS-a
89 Group:          Applications/Printing
90 Requires:       bluez-libs >= 3.16
91 Requires:       cups
92
93 %description -n cups-backend-bluetooth
94 Bluetooth backend for CUPS.
95
96 %description -n cups-backend-bluetooth -l pl.UTF-8
97 Backend Bluetooth dla CUPS-a.
98
99 %package -n gstreamer-bluetooth
100 Summary:        Bluetooth support for gstreamer
101 Summary(pl.UTF-8):      Obsługa Bluetooth dla gstreamera
102 Group:          Libraries
103 Requires:       bluez-libs >= 3.16
104 Requires:       gstreamer >= 0.10
105 Requires:       gstreamer-plugins-base >= 0.10
106
107 %description -n gstreamer-bluetooth
108 Bluetooth support for gstreamer.
109
110 %description -n gstreamer-bluetooth -l pl.UTF-8
111 Obsługa Bluetooth dla gstreamera.
112
113 %prep
114 %setup -q
115 %patch0 -p1
116
117 %build
118 %{__libtoolize}
119 %{__aclocal}
120 %{__autoconf}
121 %{__autoheader}
122 %{__automake}
123 %configure \
124         --enable-audio \
125         --enable-avctrl \
126         --enable-bccmd \
127         --enable-cups \
128         --enable-dfutool \
129         --enable-glib \
130         --enable-gstreamer \
131         --enable-input \
132         --enable-network \
133         --enable-pcmciarules \
134         --enable-serial \
135         --enable-test \
136         --with-cups=/usr
137
138 %{__make} \
139         cupsdir=%{cupsdir}
140
141 %install
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
144 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev}
145
146 %{__make} install \
147         DESTDIR=$RPM_BUILD_ROOT \
148         cupsdir=%{cupsdir} \
149         udevdir=/lib/udev
150
151 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
152 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
153 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
154 install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
155 install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
156 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
157         $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
158
159 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
160 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
161
162 %clean
163 rm -rf $RPM_BUILD_ROOT
164
165 %post
166 /sbin/chkconfig --add bluetooth
167 %service bluetooth restart
168
169 %preun
170 if [ "$1" = "0" ]; then
171         %service bluetooth stop
172         /sbin/chkconfig --del bluetooth
173 fi
174
175 %files
176 %defattr(644,root,root,755)
177 %doc AUTHORS ChangeLog README audio/audio-api.txt daemon/hal-namespace.txt hcid/dbus-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
178 %attr(755,root,root) %{_bindir}/*
179 %attr(755,root,root) %{_sbindir}/*
180 %dir %{_libdir}/bluetooth
181 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-audio
182 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-network
183 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-serial
184 %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-input
185 %dir %{_sysconfdir}/bluetooth
186 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
187 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
188 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.service
189 %{_sysconfdir}/bluetooth/audio.service
190 %{_sysconfdir}/bluetooth/network.service
191 %{_sysconfdir}/bluetooth/serial.service
192 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
193 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
194 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
195 %attr(755,root,root) /lib/udev/bluetooth.sh
196 %attr(755,root,root) /lib/udev/bluetooth_serial
197 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
198 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
199 %{_mandir}/man[18]/*
200 %{_mandir}/man5/hcid.conf.5*
201
202 %files -n alsa-plugins-bluetooth
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
205 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
206
207 %files -n cups-backend-bluetooth
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
210
211 %files -n gstreamer-bluetooth
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
This page took 0.066306 seconds and 4 git commands to generate.