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