]> git.pld-linux.org Git - packages/bluez-utils.git/blob - bluez-utils.spec
518f6370983e0f137f8728d77f607d7bf0a4de2d
[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.30
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:  3d17bb712d243bb1b316f7e8a909fa82
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:  bluez-libs-devel >= 3.30
23 BuildRequires:  dbus-glib-devel >= 0.60
24 BuildRequires:  glib2-devel >= 2.0
25 BuildRequires:  gstreamer-devel >= 0.10
26 BuildRequires:  gstreamer-plugins-base-devel >= 0.10
27 BuildRequires:  hal-devel >= 0.5.8
28 #BuildRequires: libopensync-devel < 0.30
29 BuildRequires:  libtool
30 BuildRequires:  libusb-devel
31 BuildRequires:  openobex-devel >= 1.1
32 BuildRequires:  pkgconfig >= 1:0.9.0
33 BuildRequires:  rpmbuild(macros) >= 1.268
34 Requires:       bluez-libs >= 3.30
35 Requires:       rc-scripts
36 Obsoletes:      bluez-pan
37 Obsoletes:      bluez-sdp
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  - hidd
54  - l2ping
55  - start scripts (PLD)
56  - PCMCIA configuration files
57
58 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
59
60 %description -l pl.UTF-8
61 Narzędzia Bluetooth:
62  - hcitool
63  - hciattach
64  - hciconfig
65  - hcid
66  - hidd
67  - l2ping
68  - skrypty startowe (PLD)
69  - pliki konfiguracji PCMCIA
70
71 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
72
73 %package -n alsa-plugins-bluetooth
74 Summary:        ALSA plugins for Bluetooth audio devices
75 Summary(pl.UTF-8):      Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
76 Group:          Libraries
77 # bluetoothd + audio service
78 Requires:       %{name} = %{epoch}:%{version}-%{release}
79 Requires:       alsa-lib >= 1.0.10-1
80
81 %description -n alsa-plugins-bluetooth
82 ALSA plugins for Bluetooth audio devices.
83
84 %description -n alsa-plugins-bluetooth -l pl.UTF-8
85 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
86
87 %package -n cups-backend-bluetooth
88 Summary:        Bluetooth backend for CUPS
89 Summary(pl.UTF-8):      Backend Bluetooth dla CUPS-a
90 Group:          Applications/Printing
91 Requires:       bluez-libs >= 3.30
92 Requires:       cups
93
94 %description -n cups-backend-bluetooth
95 Bluetooth backend for CUPS.
96
97 %description -n cups-backend-bluetooth -l pl.UTF-8
98 Backend Bluetooth dla CUPS-a.
99
100 %package -n gstreamer-bluetooth
101 Summary:        Bluetooth support for gstreamer
102 Summary(pl.UTF-8):      Obsługa Bluetooth dla gstreamera
103 Group:          Libraries
104 Requires:       bluez-libs >= 3.30
105 Requires:       gstreamer >= 0.10
106 Requires:       gstreamer-plugins-base >= 0.10
107
108 %description -n gstreamer-bluetooth
109 Bluetooth support for gstreamer.
110
111 %description -n gstreamer-bluetooth -l pl.UTF-8
112 Obsługa Bluetooth dla gstreamera.
113
114 %prep
115 %setup -q
116 %patch0 -p1
117
118 %build
119 %{__libtoolize}
120 %{__aclocal}
121 %{__autoconf}
122 %{__autoheader}
123 %{__automake}
124 %configure \
125         --enable-alsa \
126         --enable-audio \
127         --enable-avctrl \
128         --enable-bccmd \
129         --enable-cups \
130         --enable-dfutool \
131         --enable-glib \
132         --enable-gstreamer \
133         --enable-hal \
134         --enable-hid2hci \
135         --enable-input \
136         --enable-network \
137         --enable-obex \
138         --enable-pcmciarules \
139         --enable-sdpd \
140         --enable-hidd \
141         --enable-serial \
142         --disable-sync \
143         --enable-test \
144         --enable-usb \
145         --with-cups=/usr
146
147 %{__make} \
148         cupsdir=%{cupsdir} \
149         udevdir=%{udevdir}
150
151 %install
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
154 install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
155
156 %{__make} install \
157         DESTDIR=$RPM_BUILD_ROOT \
158         cupsdir=%{cupsdir} \
159         udevdir=%{udevdir}
160
161 # noinst
162 #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth
163
164 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
165 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
166 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
167 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
168 install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
169 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
170         $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
171
172 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la
173 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la
174 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la
175
176 %clean
177 rm -rf $RPM_BUILD_ROOT
178
179 %post
180 /sbin/chkconfig --add bluetooth
181 %service bluetooth restart
182
183 %preun
184 if [ "$1" = "0" ]; then
185         %service bluetooth stop
186         /sbin/chkconfig --del bluetooth
187 fi
188
189 %files
190 %defattr(644,root,root,755)
191 %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
192 %attr(755,root,root) %{_bindir}/*
193 %attr(755,root,root) %{_sbindir}/*
194 %dir %{_libdir}/bluetooth
195 %dir %{_libdir}/bluetooth/plugins
196 %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
197 %dir %{_sysconfdir}/bluetooth
198 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf
199 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
200 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
201 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
202 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf
203 %attr(755,root,root) %{udevdir}/bluetooth.sh
204 %attr(755,root,root) %{udevdir}/bluetooth_serial
205 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
206 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
207 %{_mandir}/man[18]/*
208 %{_mandir}/man5/hcid.conf.5*
209
210 %files -n alsa-plugins-bluetooth
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
213 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
214
215 %files -n cups-backend-bluetooth
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
218
219 %files -n gstreamer-bluetooth
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
This page took 0.041258 seconds and 3 git commands to generate.