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