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