23aed70dbf6a4c17a8526ce5ee923ca4b59afe40
[packages/bluez-utils.git] / bluez-utils.spec
1 Summary:        Bluetooth utilities
2 Summary(pl.UTF-8):      Narzędzia Bluetooth
3 Name:           bluez-utils
4 Version:        3.31
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://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
11 # Source0-md5:  a87bd1e87923ff60c5855be74f0d3f7a
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 Patch1:         %{name}-bnep_ifup.patch
18 Patch2:         %{name}-nap_bridge_fix.patch
19 URL:            http://www.bluez.org/
20 BuildRequires:  alsa-lib-devel >= 1.0.10-1
21 BuildRequires:  autoconf >= 2.50
22 BuildRequires:  automake
23 BuildRequires:  bison
24 BuildRequires:  bluez-libs-devel >= 3.31
25 BuildRequires:  dbus-glib-devel >= 0.60
26 BuildRequires:  glib2-devel >= 2.0
27 BuildRequires:  gstreamer-devel >= 0.10
28 BuildRequires:  gstreamer-plugins-base-devel >= 0.10
29 BuildRequires:  hal-devel >= 0.5.8
30 #BuildRequires: libopensync-devel < 0.30
31 BuildRequires:  libtool
32 BuildRequires:  libusb-devel
33 BuildRequires:  openobex-devel >= 1.1
34 BuildRequires:  pkgconfig >= 1:0.9.0
35 BuildRequires:  rpmbuild(macros) >= 1.268
36 Requires:       bluez-libs >= 3.31
37 Requires:       rc-scripts
38 Obsoletes:      bluez-pan
39 Obsoletes:      bluez-sdp
40 Obsoletes:      bluez-utils-init
41 Conflicts:      bluez-bluefw
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  - hcitool
52  - hciattach
53  - hciconfig
54  - hcid
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  - hcitool
66  - hciattach
67  - hciconfig
68  - hcid
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 >= 3.31
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 >= 3.31
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 %prep
119 %setup -q
120 %patch0 -p1
121 %patch1 -p0
122 %patch2 -p0
123
124 %build
125 %{__libtoolize}
126 %{__aclocal}
127 %{__autoconf}
128 %{__autoheader}
129 %{__automake}
130 %configure \
131         --enable-alsa \
132         --enable-audio \
133         --enable-avctrl \
134         --enable-bccmd \
135         --enable-cups \
136         --enable-dfutool \
137         --enable-glib \
138         --enable-gstreamer \
139         --enable-hal \
140         --enable-hid2hci \
141         --enable-input \
142         --enable-network \
143         --enable-obex \
144         --enable-pand \
145         --enable-pcmciarules \
146         --enable-sdpd \
147         --enable-hidd \
148         --enable-serial \
149         --disable-sync \
150         --enable-test \
151         --enable-usb \
152         --with-cups=/usr
153
154 %{__make} \
155         cupsdir=%{cupsdir} \
156         udevdir=%{udevdir}
157
158 %install
159 rm -rf $RPM_BUILD_ROOT
160 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
161 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
162
163 %{__make} install \
164         DESTDIR=$RPM_BUILD_ROOT \
165         cupsdir=%{cupsdir} \
166         udevdir=%{udevdir}
167
168 # noinst
169 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
170
171 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
172 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
173 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
174 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
175 install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
176 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
177         $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
178
179 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
180 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la
181 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
182
183 %clean
184 rm -rf $RPM_BUILD_ROOT
185
186 %post
187 /sbin/chkconfig --add bluetooth
188 %service bluetooth restart
189
190 %preun
191 if [ "$1" = "0" ]; then
192         %service bluetooth stop
193         /sbin/chkconfig --del bluetooth
194 fi
195
196 %files
197 %defattr(644,root,root,755)
198 %doc AUTHORS ChangeLog README audio/audio-api.txt daemon/hal-namespace.txt hcid/dbus-api.txt input/input-api.txt network/network-api.txt serial/serial-api.txt
199 %attr(755,root,root) %{_bindir}/*
200 %attr(755,root,root) %{_sbindir}/*
201 %dir %{_libdir}/bluetooth
202 %dir %{_libdir}/bluetooth/plugins
203 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
204 %dir %{_sysconfdir}/bluetooth
205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
206 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
207 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
208 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
209 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
210 %attr(755,root,root) %{udevdir}/bluetooth.sh
211 %attr(755,root,root) %{udevdir}/bluetooth_serial
212 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
213 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
214 %{_mandir}/man[18]/*
215 %{_mandir}/man5/hcid.conf.5*
216
217 %files -n alsa-plugins-bluetooth
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
220 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
221
222 %files -n cups-backend-bluetooth
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
225
226 %files -n gstreamer-bluetooth
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
This page took 0.039313 seconds and 2 git commands to generate.