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