X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=bluez-utils.spec;h=d204f881c9d1ec630f574f9e486ea6305b790a45;hb=f2f7005b6c62423e719adeea86625834a812082a;hp=b06a4a200d336ede801d557d35b964b589b7b5e2;hpb=e1d036a5d87cd7e3cc7725a0f90e712fab969be3;p=packages%2Fbluez-utils.git diff --git a/bluez-utils.spec b/bluez-utils.spec index b06a4a2..d204f88 100644 --- a/bluez-utils.spec +++ b/bluez-utils.spec @@ -1,67 +1,186 @@ -Summary: Bluetooth utilities -Name: bluez-utils -Version: 2.2 -Release: 2 -Copyright: GPL -Group: Applications/System -Source: http://bluez.sourceforge.net/%{name}-%{version}.tar.gz -Patch: bluez-utils-build.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -URL: http://bluez.sourceforge.net -BuildRequires: bluez-libs-devel >= 2.0 -ExcludeArch: s390 s390x +Summary: Bluetooth utilities +Summary(pl.UTF-8): Narzędzia Bluetooth +Name: bluez-utils +Version: 3.16 +Release: 1 +Epoch: 0 +License: GPL v2+ +Group: Applications/System +#Source0Download: http://www.bluez.org/download.html +Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz +# Source0-md5: f6e5bf09d5f282671aa0abe50e700ee6 +Source1: %{name}.init +Source2: %{name}.sysconfig +Source3: %{name}-udev.rules +Source4: %{name}-udev.script +Patch0: %{name}-etc_dir.patch +URL: http://www.bluez.org/ +BuildRequires: alsa-lib-devel >= 1.0.10-1 +BuildRequires: autoconf >= 2.50 +BuildRequires: automake +BuildRequires: bison +BuildRequires: bluez-libs-devel >= 3.16 +BuildRequires: dbus-glib-devel >= 0.60 +BuildRequires: glib2-devel >= 2.0 +BuildRequires: hal-devel >= 0.5.8 +BuildRequires: libtool +BuildRequires: libusb-devel +BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.268 +# used only by noinst bluetoothd-service-sync +#BuildRequires: libopensync-devel +# used only by noinst bluetoothd-service-transfer +#BuildRequires: openobex-devel >= 1.1 +Requires: bluez-libs >= 3.13 +Requires: rc-scripts +Obsoletes: bluez-pan +Obsoletes: bluez-sdp +Obsoletes: bluez-utils-init +Conflicts: bluez-bluefw +ExcludeArch: s390 s390x +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +# currently lib, not %{_lib} (see cups.spec) +%define cupsdir /usr/lib/cups/backend %description -Bluetooth utilities (bluez-utils): - - hcitool - - hciattach - - hciconfig - - hcid - - l2ping - - start scripts (RedHat) - - pcmcia configuration files +Bluetooth utilities: + - hcitool + - hciattach + - hciconfig + - hcid + - l2ping + - start scripts (PLD) + - PCMCIA configuration files The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. +%description -l pl.UTF-8 +Narzędzia Bluetooth: + - hcitool + - hciattach + - hciconfig + - hcid + - l2ping + - skrypty startowe (PLD) + - pliki konfiguracji PCMCIA -%prep -rm -rf $RPM_BUILD_ROOT +Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA. + +%package -n alsa-plugins-bluetooth +Summary: ALSA plugins for Bluetooth audio devices +Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth +Group: Libraries +# bluetoothd + audio service +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: alsa-lib >= 1.0.10-1 + +%description -n alsa-plugins-bluetooth +ALSA plugins for Bluetooth audio devices. + +%description -n alsa-plugins-bluetooth -l pl.UTF-8 +Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth. + +%package -n cups-backend-bluetooth +Summary: Bluetooth backend for CUPS +Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a +Group: Applications/Printing +Requires: bluez-libs >= 3.13 +Requires: cups + +%description -n cups-backend-bluetooth +Bluetooth backend for CUPS. + +%description -n cups-backend-bluetooth -l pl.UTF-8 +Backend Bluetooth dla CUPS-a. +%prep %setup -q -%patch -p1 +%patch0 -p1 %build -%configure --with-bluez-libs=%{_libdir} -make +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + --enable-audio \ + --enable-avctrl \ + --enable-bccmd \ + --enable-cups \ + --enable-dfutool \ + --enable-glib \ + --enable-network \ + --enable-pcmciarules \ + --enable-serial \ + --with-cups=/usr +%{__make} \ + cupsdir=%{cupsdir} %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} +install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev} + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + cupsdir=%{cupsdir} \ + udevdir=/lib/udev + +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth +install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth +install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules +install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh +install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir} +mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \ + $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules + +rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.la %clean rm -rf $RPM_BUILD_ROOT +%post +/sbin/chkconfig --add bluetooth +%service bluetooth restart + +%preun +if [ "$1" = "0" ]; then + %service bluetooth stop + /sbin/chkconfig --del bluetooth +fi + %files -%defattr(-, root, root) -%doc AUTHORS COPYING INSTALL ChangeLog NEWS README -/etc/rc.d/init.d/bluetooth -%{_bindir}/* -%{_sbindir}/* -%{_mandir}/man*/* -%dir %{_sysconfdir}/bluetooth/ -%config %{_sysconfdir}/bluetooth/* -%config %{_sysconfdir}/pcmcia/bluetooth.conf -%config %{_sysconfdir}/pcmcia/bluetooth - -%changelog -* Wed Jan 22 2003 Tim Powers -- rebuilt - -* Sun Jan 19 2003 Matt Wilson 2.2-1 -- configure with --with-bluez-libs=%%{_libdir} - -* Fri Jan 17 2003 Bill Nottingham 2.2-1 -- adapt upstream rpm - -* Tue Aug 13 2002 Sebastian Frankfurt -- Initial RPM +%defattr(644,root,root,755) +%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 +%attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %{_sbindir}/* +%dir %{_libdir}/bluetooth +%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-audio +%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-network +%attr(755,root,root) %{_libdir}/bluetooth/bluetoothd-service-serial +%dir %{_sysconfdir}/bluetooth +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/hcid.conf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf +%{_sysconfdir}/bluetooth/audio.service +%{_sysconfdir}/bluetooth/network.service +%{_sysconfdir}/bluetooth/serial.service +%attr(754,root,root) /etc/rc.d/init.d/bluetooth +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/bluetooth.conf +%attr(755,root,root) /lib/udev/bluetooth.sh +%attr(755,root,root) /lib/udev/bluetooth_serial +%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules +%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules +%{_mandir}/man[18]/* +%{_mandir}/man5/hcid.conf.5* + +%files -n alsa-plugins-bluetooth +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so +%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so + +%files -n cups-backend-bluetooth +%defattr(644,root,root,755) +%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth