]> git.pld-linux.org Git - packages/bluez.git/blob - bluez.spec
4f1b99179a627b566405891b8d4b4e01b7574e52
[packages/bluez.git] / bluez.spec
1 Summary:        Bluetooth utilities
2 Summary(pl.UTF-8):      Narzędzia Bluetooth
3 Name:           bluez
4 Version:        4.41
5 Release:        2
6 License:        GPL v2+
7 Group:          Applications/System
8 #Source0Download: http://www.bluez.org/download.html
9 Source0:        http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
10 # Source0-md5:  4629236517df280be321f009917a52be
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 Source3:        %{name}-udev.rules
14 Source4:        %{name}-udev.script
15 Patch0:         %{name}-etc_dir.patch
16 Patch1:         %{name}-udev-path.patch
17 Patch2:         %{name}-null-session.patch
18 Patch3:         %{name}-bt_cancel_discovery.patch
19 URL:            http://www.bluez.org/
20 BuildRequires:  alsa-lib-devel >= 1.0.10-1
21 BuildRequires:  autoconf >= 2.50
22 BuildRequires:  automake
23 BuildRequires:  bison
24 BuildRequires:  dbus-glib-devel >= 0.60
25 BuildRequires:  glib2-devel >= 2.0
26 BuildRequires:  gstreamer-devel >= 0.10
27 BuildRequires:  gstreamer-plugins-base-devel >= 0.10
28 BuildRequires:  libnl-devel
29 BuildRequires:  libsndfile-devel
30 BuildRequires:  libtool
31 BuildRequires:  libusb-compat-devel
32 BuildRequires:  openobex-devel >= 1.1
33 BuildRequires:  pkgconfig >= 1:0.9.0
34 BuildRequires:  rpmbuild(macros) >= 1.268
35 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
36 Requires:       rc-scripts
37 Obsoletes:      bluez-hciemu
38 Obsoletes:      bluez-pan
39 Obsoletes:      bluez-sdp
40 Obsoletes:      bluez-utils
41 Obsoletes:      bluez-utils-init
42 Conflicts:      bluez-bluefw
43 Provides:       bluez-utils = %{epoch}:%{version}-%{release}
44 ExcludeArch:    s390 s390x
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 # currently lib, not %{_lib} (see cups.spec)
48 %define         cupsdir         /usr/lib/cups/backend
49 %define         udevdir         /lib/udev
50
51 %description
52 Bluetooth utilities:
53  - bluetoothd
54  - dund
55  - hcitool
56  - hciattach
57  - hciconfig
58  - hciemu
59  - hidd
60  - l2ping
61  - pand
62  - start scripts (PLD)
63  - PCMCIA configuration files
64
65 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
66
67 %description -l pl.UTF-8
68 Narzędzia Bluetooth:
69  - bluetoothd
70  - dund
71  - hcitool
72  - hciattach
73  - hciconfig
74  - hciemu
75  - hidd
76  - l2ping
77  - pand
78  - skrypty startowe (PLD)
79  - pliki konfiguracji PCMCIA
80
81 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
82
83 %package -n alsa-plugins-bluetooth
84 Summary:        ALSA plugins for Bluetooth audio devices
85 Summary(pl.UTF-8):      Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
86 Group:          Libraries
87 # bluetoothd + audio service
88 Requires:       %{name} = %{epoch}:%{version}-%{release}
89 Requires:       alsa-lib >= 1.0.10-1
90
91 %description -n alsa-plugins-bluetooth
92 ALSA plugins for Bluetooth audio devices.
93
94 %description -n alsa-plugins-bluetooth -l pl.UTF-8
95 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
96
97 %package -n cups-backend-bluetooth
98 Summary:        Bluetooth backend for CUPS
99 Summary(pl.UTF-8):      Backend Bluetooth dla CUPS-a
100 Group:          Applications/Printing
101 Requires:       bluez-libs >= %{epoch}:%{version}-%{release}
102 Requires:       cups
103
104 %description -n cups-backend-bluetooth
105 Bluetooth backend for CUPS.
106
107 %description -n cups-backend-bluetooth -l pl.UTF-8
108 Backend Bluetooth dla CUPS-a.
109
110 %package -n gstreamer-bluetooth
111 Summary:        Bluetooth support for gstreamer
112 Summary(pl.UTF-8):      Obsługa Bluetooth dla gstreamera
113 Group:          Libraries
114 Requires:       bluez-libs >= %{epoch}:%{version}-%{release}
115 Requires:       gstreamer >= 0.10
116 Requires:       gstreamer-plugins-base >= 0.10
117
118 %description -n gstreamer-bluetooth
119 Bluetooth support for gstreamer.
120
121 %description -n gstreamer-bluetooth -l pl.UTF-8
122 Obsługa Bluetooth dla gstreamera.
123
124 %package libs
125 Summary:        Bluetooth libraries
126 Summary(pl.UTF-8):      Biblioteki Bluetooth
127 Group:          Development/Libraries
128 Obsoletes:      bluez-sdp
129
130 %description libs
131 Libraries for use in Bluetooth applications.
132
133 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
134
135 %description libs -l pl.UTF-8
136 Biblioteki do używania w aplikacjach Bluetooth.
137
138 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
139
140 %package libs-devel
141 Summary:        Header files for Bluetooth applications
142 Summary(pl.UTF-8):      Pliki nagłówkowe dla aplikacji Bluetooth
143 Group:          Development/Libraries
144 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
145 Obsoletes:      bluez-sdp-devel
146
147 %description libs-devel
148 bluez-libs-devel contains header files for use in Bluetooth
149 applications.
150
151 %description libs-devel -l pl.UTF-8
152 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
153 Bluetooth.
154
155 %package libs-static
156 Summary:        Static Bluetooth libraries
157 Summary(pl.UTF-8):      Biblioteki statyczne Bluetooth
158 Group:          Development/Libraries
159 Requires:       %{name}-libs-devel = %{epoch}:%{version}-%{release}
160 Obsoletes:      bluez-sdp-static
161
162 %description libs-static
163 bluez-libs-static contains development static libraries for use in
164 Bluetooth applications.
165
166 %description libs-static -l pl.UTF-8
167 Ten pakiet zawiera biblioteki statyczne, których można używać do
168 aplikacji Bluetooth.
169
170 %prep
171 %setup -q
172 %patch0 -p1
173 %patch1 -p1
174 %patch2 -p1
175 %patch3 -p1
176
177 %build
178 %{__libtoolize}
179 %{__aclocal}
180 %{__autoconf}
181 %{__autoheader}
182 %{__automake}
183 %configure \
184         --enable-shared \
185         --enable-static \
186         --enable-alsa \
187         --enable-audio \
188         --enable-bccmd \
189         --enable-configfiles \
190         --enable-cups \
191         --enable-dfutool \
192         --enable-dund \
193         --enable-gstreamer \
194         --enable-hid2hci \
195         --enable-hidd \
196         --enable-input \
197         --enable-manpages \
198         --enable-netlink \
199         --enable-network \
200         --enable-pand \
201         --enable-pcmciarules \
202         --enable-serial \
203         --enable-tools \
204         --enable-usb
205
206 %{__make} \
207         cupsdir=%{cupsdir} \
208         udevdir=%{udevdir}
209
210 %install
211 rm -rf $RPM_BUILD_ROOT
212 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
213 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
214
215 %{__make} install \
216         DESTDIR=$RPM_BUILD_ROOT \
217         cupsdir=%{cupsdir} \
218         udevdir=%{udevdir}
219
220 # noinst
221 install audio/audio.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
222 install input/input.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
223 install network/network.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
224
225 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
226 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
227 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
228 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
229 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
230 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
231 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
232
233 %clean
234 rm -rf $RPM_BUILD_ROOT
235
236 %post
237 /sbin/chkconfig --add bluetooth
238 %service bluetooth restart
239
240 %preun
241 if [ "$1" = "0" ]; then
242         %service bluetooth stop
243         /sbin/chkconfig --del bluetooth
244 fi
245
246 %post   libs -p /sbin/ldconfig
247 %postun libs -p /sbin/ldconfig
248
249 %files
250 %defattr(644,root,root,755)
251 %doc AUTHORS ChangeLog README
252 %attr(755,root,root) %{_bindir}/*
253 %attr(755,root,root) %{_sbindir}/*
254 %dir %{_libdir}/bluetooth
255 %dir %{_libdir}/bluetooth/plugins
256 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
257 %dir %{_sysconfdir}/bluetooth
258 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/audio.conf
259 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf
260 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
261 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf
262 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
263 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
264 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
265 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
266 %attr(755,root,root) %{udevdir}/bluetooth.sh
267 %attr(755,root,root) %{udevdir}/bluetooth_serial
268 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
269 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth-hid2hci.rules
270 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth-serial.rules
271 %{_mandir}/man[18]/*
272
273 %files -n alsa-plugins-bluetooth
274 %defattr(644,root,root,755)
275 %{_sysconfdir}/alsa/bluetooth.conf
276 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
277 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
278
279 %files -n cups-backend-bluetooth
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
282
283 %files -n gstreamer-bluetooth
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
286
287 %files libs
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
290 %attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
291
292 %files libs-devel
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_libdir}/libbluetooth.so
295 %{_libdir}/libbluetooth.la
296 %{_includedir}/bluetooth
297 %{_pkgconfigdir}/bluez.pc
298
299 %files libs-static
300 %defattr(644,root,root,755)
301 %{_libdir}/libbluetooth.a
This page took 0.067421 seconds and 3 git commands to generate.