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