]>
Commit | Line | Data |
---|---|---|
a397e1f8 | 1 | Summary: Bluetooth utilities |
f8033937 | 2 | Summary(pl.UTF-8): Narzędzia Bluetooth |
a397e1f8 | 3 | Name: bluez-utils |
8c4dc58e | 4 | Version: 3.17 |
d3af6d26 | 5 | Release: 2 |
b936cbb0 | 6 | Epoch: 0 |
c9df9507 | 7 | License: GPL v2+ |
a397e1f8 | 8 | Group: Applications/System |
cc609d25 | 9 | #Source0Download: http://www.bluez.org/download.html |
a397e1f8 | 10 | Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz |
8c4dc58e | 11 | # Source0-md5: 8c7c45c672280db11c4e2a2a445be47e |
33bb3a38 JB |
12 | Source1: %{name}.init |
13 | Source2: %{name}.sysconfig | |
95e83f9e AM |
14 | Source3: %{name}-udev.rules |
15 | Source4: %{name}-udev.script | |
eed78b81 | 16 | Patch0: %{name}-etc_dir.patch |
eefd2dea | 17 | URL: http://www.bluez.org/ |
c9df9507 JB |
18 | BuildRequires: alsa-lib-devel >= 1.0.10-1 |
19 | BuildRequires: autoconf >= 2.50 | |
29edfa37 | 20 | BuildRequires: automake |
344f6dee | 21 | BuildRequires: bison |
8c4dc58e | 22 | BuildRequires: bluez-libs-devel >= 3.17 |
c9df9507 JB |
23 | BuildRequires: dbus-glib-devel >= 0.60 |
24 | BuildRequires: glib2-devel >= 2.0 | |
0fd9455d JB |
25 | BuildRequires: gstreamer-devel >= 0.10 |
26 | BuildRequires: gstreamer-plugins-base-devel >= 0.10 | |
c9df9507 | 27 | BuildRequires: hal-devel >= 0.5.8 |
29edfa37 | 28 | BuildRequires: libtool |
eed78b81 | 29 | BuildRequires: libusb-devel |
0fd9455d | 30 | BuildRequires: pkgconfig >= 1:0.9.0 |
66a4c701 | 31 | BuildRequires: rpmbuild(macros) >= 1.268 |
c9df9507 JB |
32 | # used only by noinst bluetoothd-service-sync |
33 | #BuildRequires: libopensync-devel | |
34 | # used only by noinst bluetoothd-service-transfer | |
cc609d25 | 35 | #BuildRequires: openobex-devel >= 1.1 |
8c4dc58e | 36 | Requires: bluez-libs >= 3.17 |
fbf0e7d5 | 37 | Requires: rc-scripts |
7172a039 | 38 | Obsoletes: bluez-pan |
344f6dee | 39 | Obsoletes: bluez-sdp |
eefd2dea | 40 | Obsoletes: bluez-utils-init |
7888efe5 | 41 | Conflicts: bluez-bluefw |
a397e1f8 | 42 | ExcludeArch: s390 s390x |
29edfa37 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e1d036a5 | 44 | |
eed78b81 JB |
45 | # currently lib, not %{_lib} (see cups.spec) |
46 | %define cupsdir /usr/lib/cups/backend | |
47 | ||
e1d036a5 | 48 | %description |
9059e282 | 49 | Bluetooth utilities: |
a397e1f8 AF |
50 | - hcitool |
51 | - hciattach | |
52 | - hciconfig | |
53 | - hcid | |
54 | - l2ping | |
29edfa37 JB |
55 | - start scripts (PLD) |
56 | - PCMCIA configuration files | |
e1d036a5 AF |
57 | |
58 | The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. | |
59 | ||
f89ecdc9 JR |
60 | %description -l pl.UTF-8 |
61 | Narzędzia Bluetooth: | |
29edfa37 JB |
62 | - hcitool |
63 | - hciattach | |
64 | - hciconfig | |
65 | - hcid | |
66 | - l2ping | |
67 | - skrypty startowe (PLD) | |
68 | - pliki konfiguracji PCMCIA | |
47cbf972 | 69 | |
c9df9507 JB |
70 | Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. |
71 | ||
72 | %package -n alsa-plugins-bluetooth | |
73 | Summary: ALSA plugins for Bluetooth audio devices | |
74 | Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth | |
75 | Group: Libraries | |
76 | # bluetoothd + audio service | |
77 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
78 | Requires: alsa-lib >= 1.0.10-1 | |
79 | ||
80 | %description -n alsa-plugins-bluetooth | |
81 | ALSA plugins for Bluetooth audio devices. | |
82 | ||
83 | %description -n alsa-plugins-bluetooth -l pl.UTF-8 | |
84 | Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth. | |
85 | ||
e25494de JB |
86 | %package -n cups-backend-bluetooth |
87 | Summary: Bluetooth backend for CUPS | |
f8033937 | 88 | Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a |
e25494de | 89 | Group: Applications/Printing |
8c4dc58e | 90 | Requires: bluez-libs >= 3.17 |
e25494de JB |
91 | Requires: cups |
92 | ||
93 | %description -n cups-backend-bluetooth | |
94 | Bluetooth backend for CUPS. | |
95 | ||
f89ecdc9 | 96 | %description -n cups-backend-bluetooth -l pl.UTF-8 |
e25494de JB |
97 | Backend Bluetooth dla CUPS-a. |
98 | ||
cf2b0853 | 99 | %package -n gstreamer-bluetooth |
0fd9455d JB |
100 | Summary: Bluetooth support for gstreamer |
101 | Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera | |
102 | Group: Libraries | |
8c4dc58e | 103 | Requires: bluez-libs >= 3.17 |
0fd9455d JB |
104 | Requires: gstreamer >= 0.10 |
105 | Requires: gstreamer-plugins-base >= 0.10 | |
cf2b0853 MWP |
106 | |
107 | %description -n gstreamer-bluetooth | |
108 | Bluetooth support for gstreamer. | |
109 | ||
110 | %description -n gstreamer-bluetooth -l pl.UTF-8 | |
111 | Obsługa Bluetooth dla gstreamera. | |
112 | ||
e1d036a5 | 113 | %prep |
e1d036a5 | 114 | %setup -q |
b77afc9a | 115 | %patch0 -p1 |
33bb3a38 | 116 | |
e1d036a5 | 117 | %build |
7173a540 AF |
118 | %{__libtoolize} |
119 | %{__aclocal} | |
7173a540 | 120 | %{__autoconf} |
c9df9507 | 121 | %{__autoheader} |
250c9a94 | 122 | %{__automake} |
7173a540 | 123 | %configure \ |
c9df9507 | 124 | --enable-audio \ |
cc609d25 JB |
125 | --enable-avctrl \ |
126 | --enable-bccmd \ | |
eed78b81 | 127 | --enable-cups \ |
cc609d25 | 128 | --enable-dfutool \ |
c9df9507 | 129 | --enable-glib \ |
4184b882 MWP |
130 | --enable-gstreamer \ |
131 | --enable-input \ | |
c9df9507 | 132 | --enable-network \ |
eefd2dea | 133 | --enable-pcmciarules \ |
c9df9507 | 134 | --enable-serial \ |
4184b882 | 135 | --enable-test \ |
e25494de | 136 | --with-cups=/usr |
4184b882 | 137 | |
eed78b81 JB |
138 | %{__make} \ |
139 | cupsdir=%{cupsdir} | |
e1d036a5 AF |
140 | |
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
33bb3a38 | 143 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
962e0e98 | 144 | install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev} |
33bb3a38 | 145 | |
29edfa37 | 146 | %{__make} install \ |
eed78b81 | 147 | DESTDIR=$RPM_BUILD_ROOT \ |
eefd2dea | 148 | cupsdir=%{cupsdir} \ |
149 | udevdir=/lib/udev | |
29edfa37 | 150 | |
33bb3a38 JB |
151 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth |
152 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
95e83f9e AM |
153 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules |
154 | install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh | |
96f5fcbe | 155 | install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir} |
eefd2dea | 156 | mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \ |
157 | $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules | |
158 | ||
c9df9507 | 159 | rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la |
0fd9455d | 160 | rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la |
c9df9507 | 161 | |
e1d036a5 AF |
162 | %clean |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
c9df9507 | 165 | %post |
7173a540 | 166 | /sbin/chkconfig --add bluetooth |
66a4c701 | 167 | %service bluetooth restart |
7173a540 | 168 | |
c9df9507 | 169 | %preun |
7173a540 | 170 | if [ "$1" = "0" ]; then |
66a4c701 | 171 | %service bluetooth stop |
7173a540 AF |
172 | /sbin/chkconfig --del bluetooth |
173 | fi | |
174 | ||
e1d036a5 | 175 | %files |
a397e1f8 | 176 | %defattr(644,root,root,755) |
c9df9507 | 177 | %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 |
a397e1f8 AF |
178 | %attr(755,root,root) %{_bindir}/* |
179 | %attr(755,root,root) %{_sbindir}/* | |
c9df9507 JB |
180 | %dir %{_libdir}/bluetooth |
181 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-audio | |
182 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-network | |
183 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-serial | |
4184b882 | 184 | %attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-input |
c9df9507 JB |
185 | %dir %{_sysconfdir}/bluetooth |
186 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf | |
187 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf | |
4184b882 | 188 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.service |
c9df9507 JB |
189 | %{_sysconfdir}/bluetooth/audio.service |
190 | %{_sysconfdir}/bluetooth/network.service | |
191 | %{_sysconfdir}/bluetooth/serial.service | |
eefd2dea | 192 | %attr(754,root,root) /etc/rc.d/init.d/bluetooth |
c9df9507 JB |
193 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth |
194 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf | |
eefd2dea | 195 | %attr(755,root,root) /lib/udev/bluetooth.sh |
196 | %attr(755,root,root) /lib/udev/bluetooth_serial | |
197 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules | |
198 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules | |
c9df9507 JB |
199 | %{_mandir}/man[18]/* |
200 | %{_mandir}/man5/hcid.conf.5* | |
eefd2dea | 201 | |
c9df9507 JB |
202 | %files -n alsa-plugins-bluetooth |
203 | %defattr(644,root,root,755) | |
204 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so | |
205 | %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so | |
e25494de JB |
206 | |
207 | %files -n cups-backend-bluetooth | |
208 | %defattr(644,root,root,755) | |
209 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth | |
cf2b0853 MWP |
210 | |
211 | %files -n gstreamer-bluetooth | |
212 | %defattr(644,root,root,755) | |
213 | %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so |