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