]>
Commit | Line | Data |
---|---|---|
a397e1f8 | 1 | Summary: Bluetooth utilities |
f8033937 | 2 | Summary(pl.UTF-8): Narzędzia Bluetooth |
a397e1f8 | 3 | Name: bluez-utils |
bb9e1988 | 4 | Version: 3.30 |
df2fe191 | 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 |
bb9e1988 | 11 | # Source0-md5: 3d17bb712d243bb1b316f7e8a909fa82 |
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 |
bb9e1988 | 22 | BuildRequires: bluez-libs-devel >= 3.30 |
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 |
28279c4f | 28 | #BuildRequires: libopensync-devel < 0.30 |
29edfa37 | 29 | BuildRequires: libtool |
eed78b81 | 30 | BuildRequires: libusb-devel |
28279c4f | 31 | BuildRequires: openobex-devel >= 1.1 |
0fd9455d | 32 | BuildRequires: pkgconfig >= 1:0.9.0 |
66a4c701 | 33 | BuildRequires: rpmbuild(macros) >= 1.268 |
bb9e1988 | 34 | Requires: bluez-libs >= 3.30 |
fbf0e7d5 | 35 | Requires: rc-scripts |
7172a039 | 36 | Obsoletes: bluez-pan |
344f6dee | 37 | Obsoletes: bluez-sdp |
eefd2dea | 38 | Obsoletes: bluez-utils-init |
7888efe5 | 39 | Conflicts: bluez-bluefw |
a397e1f8 | 40 | ExcludeArch: s390 s390x |
29edfa37 | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e1d036a5 | 42 | |
eed78b81 JB |
43 | # currently lib, not %{_lib} (see cups.spec) |
44 | %define cupsdir /usr/lib/cups/backend | |
dc9640b5 | 45 | %define udevdir /%{_lib}/udev |
eed78b81 | 46 | |
e1d036a5 | 47 | %description |
9059e282 | 48 | Bluetooth utilities: |
a397e1f8 AF |
49 | - hcitool |
50 | - hciattach | |
51 | - hciconfig | |
52 | - hcid | |
df2fe191 | 53 | - hidd |
a397e1f8 | 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 | |
df2fe191 | 66 | - hidd |
29edfa37 JB |
67 | - l2ping |
68 | - skrypty startowe (PLD) | |
69 | - pliki konfiguracji PCMCIA | |
47cbf972 | 70 | |
c9df9507 JB |
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 | ||
e25494de JB |
87 | %package -n cups-backend-bluetooth |
88 | Summary: Bluetooth backend for CUPS | |
f8033937 | 89 | Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a |
e25494de | 90 | Group: Applications/Printing |
9f0a1253 | 91 | Requires: bluez-libs >= 3.30 |
e25494de JB |
92 | Requires: cups |
93 | ||
94 | %description -n cups-backend-bluetooth | |
95 | Bluetooth backend for CUPS. | |
96 | ||
f89ecdc9 | 97 | %description -n cups-backend-bluetooth -l pl.UTF-8 |
e25494de JB |
98 | Backend Bluetooth dla CUPS-a. |
99 | ||
cf2b0853 | 100 | %package -n gstreamer-bluetooth |
0fd9455d JB |
101 | Summary: Bluetooth support for gstreamer |
102 | Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera | |
103 | Group: Libraries | |
9f0a1253 | 104 | Requires: bluez-libs >= 3.30 |
0fd9455d JB |
105 | Requires: gstreamer >= 0.10 |
106 | Requires: gstreamer-plugins-base >= 0.10 | |
cf2b0853 MWP |
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 | ||
e1d036a5 | 114 | %prep |
e1d036a5 | 115 | %setup -q |
b77afc9a | 116 | %patch0 -p1 |
33bb3a38 | 117 | |
e1d036a5 | 118 | %build |
7173a540 AF |
119 | %{__libtoolize} |
120 | %{__aclocal} | |
7173a540 | 121 | %{__autoconf} |
c9df9507 | 122 | %{__autoheader} |
250c9a94 | 123 | %{__automake} |
7173a540 | 124 | %configure \ |
28279c4f | 125 | --enable-alsa \ |
c9df9507 | 126 | --enable-audio \ |
cc609d25 JB |
127 | --enable-avctrl \ |
128 | --enable-bccmd \ | |
eed78b81 | 129 | --enable-cups \ |
cc609d25 | 130 | --enable-dfutool \ |
c9df9507 | 131 | --enable-glib \ |
4184b882 | 132 | --enable-gstreamer \ |
28279c4f JB |
133 | --enable-hal \ |
134 | --enable-hid2hci \ | |
4184b882 | 135 | --enable-input \ |
c9df9507 | 136 | --enable-network \ |
28279c4f | 137 | --enable-obex \ |
eefd2dea | 138 | --enable-pcmciarules \ |
7ebe6642 | 139 | --enable-sdpd \ |
df2fe191 | 140 | --enable-hidd \ |
c9df9507 | 141 | --enable-serial \ |
28279c4f | 142 | --disable-sync \ |
4184b882 | 143 | --enable-test \ |
de47cb82 | 144 | --enable-usb \ |
e25494de | 145 | --with-cups=/usr |
4184b882 | 146 | |
eed78b81 | 147 | %{__make} \ |
dc9640b5 JK |
148 | cupsdir=%{cupsdir} \ |
149 | udevdir=%{udevdir} | |
e1d036a5 AF |
150 | |
151 | %install | |
152 | rm -rf $RPM_BUILD_ROOT | |
33bb3a38 | 153 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
dc9640b5 | 154 | install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}} |
33bb3a38 | 155 | |
29edfa37 | 156 | %{__make} install \ |
eed78b81 | 157 | DESTDIR=$RPM_BUILD_ROOT \ |
eefd2dea | 158 | cupsdir=%{cupsdir} \ |
dc9640b5 | 159 | udevdir=%{udevdir} |
28279c4f JB |
160 | |
161 | # noinst | |
28279c4f | 162 | #install sync/bluetoothd-service-sync $RPM_BUILD_ROOT%{_libdir}/bluetooth |
29edfa37 | 163 | |
33bb3a38 JB |
164 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth |
165 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth | |
95e83f9e | 166 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules |
dc9640b5 | 167 | install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh |
96f5fcbe | 168 | install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir} |
eefd2dea | 169 | mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \ |
170 | $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules | |
171 | ||
c9df9507 | 172 | rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la |
9f0a1253 | 173 | rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.la |
0fd9455d | 174 | rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.la |
c9df9507 | 175 | |
e1d036a5 AF |
176 | %clean |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
c9df9507 | 179 | %post |
7173a540 | 180 | /sbin/chkconfig --add bluetooth |
66a4c701 | 181 | %service bluetooth restart |
7173a540 | 182 | |
c9df9507 | 183 | %preun |
7173a540 | 184 | if [ "$1" = "0" ]; then |
66a4c701 | 185 | %service bluetooth stop |
7173a540 AF |
186 | /sbin/chkconfig --del bluetooth |
187 | fi | |
188 | ||
e1d036a5 | 189 | %files |
a397e1f8 | 190 | %defattr(644,root,root,755) |
c9df9507 | 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 |
a397e1f8 AF |
192 | %attr(755,root,root) %{_bindir}/* |
193 | %attr(755,root,root) %{_sbindir}/* | |
c9df9507 | 194 | %dir %{_libdir}/bluetooth |
bb9e1988 PZ |
195 | %dir %{_libdir}/bluetooth/plugins |
196 | %attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so | |
c9df9507 JB |
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 | |
eefd2dea | 200 | %attr(754,root,root) /etc/rc.d/init.d/bluetooth |
c9df9507 JB |
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 | |
dc9640b5 JK |
203 | %attr(755,root,root) %{udevdir}/bluetooth.sh |
204 | %attr(755,root,root) %{udevdir}/bluetooth_serial | |
eefd2dea | 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 | |
c9df9507 JB |
207 | %{_mandir}/man[18]/* |
208 | %{_mandir}/man5/hcid.conf.5* | |
eefd2dea | 209 | |
c9df9507 JB |
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 | |
e25494de JB |
214 | |
215 | %files -n cups-backend-bluetooth | |
216 | %defattr(644,root,root,755) | |
217 | %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth | |
cf2b0853 MWP |
218 | |
219 | %files -n gstreamer-bluetooth | |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so |