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