]> git.pld-linux.org Git - packages/bluez-utils.git/blobdiff - bluez-utils.spec
- updated to 2.8.
[packages/bluez-utils.git] / bluez-utils.spec
index 6e18805e22ce6fb754f04f3566ce76fac07f7071..abc2b2c8611e76d9bc3674c4522acc0fc88eccc1 100644 (file)
@@ -1,23 +1,35 @@
+# TODO:
+# - check init script, add support for rfcomm bind on startup
+#
 Summary:       Bluetooth utilities
 Summary(pl):   Narzêdzia Bluetooth
 Name:          bluez-utils
-Version:       2.2
-Release:       3
+Version:       2.8
+Release:       1
 License:       GPL v2
 Group:         Applications/System
 Source0:       http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
-Patch0:                %{name}-etc_dir.patch
+# Source0-md5: dd698b6ec2b5a4aee707b4984ab02cf8
+Source1:       %{name}.init
+Source2:       %{name}.sysconfig
+Patch0:                %{name}-opt.patch
+Patch1:                %{name}-etc_dir.patch
+Patch2:                %{name}-cups.patch
 URL:           http://bluez.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: bluez-libs-devel >= 2.0
+BuildRequires: bison
+BuildRequires: bluez-libs-devel >= 2.8-2
 BuildRequires: libtool
-Requires(post,preun):  /sbin/chkconfig
+PreReq:                rc-scripts
+Requires:      bluez-libs >= 2.8-2
+Obsoletes:     blues-pan
+Obsoletes:     bluez-sdp
 ExcludeArch:   s390 s390x
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Bluetooth utilities (bluez-utils):
+Bluetooth utilities:
  - hcitool
  - hciattach
  - hciconfig
@@ -29,7 +41,7 @@ Bluetooth utilities (bluez-utils):
 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
 
 %description -l pl
-Narzêdzia Bluetooth (bluez-utils):
+Narzêdzia Bluetooth:
  - hcitool
  - hciattach
  - hciconfig
@@ -37,35 +49,68 @@ Narz
  - l2ping
  - skrypty startowe (PLD)
  - pliki konfiguracji PCMCIA
+
+%package -n cups-backend-bluetooth
+Summary:       Bluetooth backend for CUPS
+Summary(pl):   Backend Bluetooth dla CUPS-a
+Group:         Applications/Printing
+Requires:      bluez-libs >= 2.7
+Requires:      cups
+
+%description -n cups-backend-bluetooth
+Bluetooth backend for CUPS.
+
+%description -n cups-backend-bluetooth -l pl
+Backend Bluetooth dla CUPS-a.
+
+%package init
+Summary:       Init script for Bluetooth subsystem
+Summary(pl):   Skrypt init dla podsystemu Bluetooth
+Group:         Applications/System
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires(post,preun):  /sbin/chkconfig
+
+%description init
+Init script for Bluetooth subsystem.
+
+%description init -l pl
+Skrypt init dla podsystemu Bluetooth.
+
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+# fix path (default prefix was /)
+sed -e "s@pin_helper.*bluepin;@pin_helper %{_bindir}/bluepin;@" \
+       hcid/hcid.conf > hcid.conf.tmp
+mv -f hcid.conf.tmp hcid/hcid.conf
 
 %build
 %{__libtoolize}
 %{__aclocal}
-%{__automake}
 %{__autoconf}
+%{__automake}
 %configure \
-       --enable-pcmcia
+       --enable-pcmcia \
+       --with-cups=/usr
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
+
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       confdir=%{_sysconfdir}/bluetooth \
-       mandir=%{_mandir}
+       DESTDIR=$RPM_BUILD_ROOT
 
-%{__make} -C scripts \
-       DESTDIR=$RPM_BUILD_ROOT \
-       redhat
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
+%post init
 /sbin/chkconfig --add bluetooth
 if [ -f /var/lock/subsys/bluetooth ]; then
        /etc/rc.d/init.d/bluetooth restart >&2
@@ -73,7 +118,7 @@ else
        echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
 fi
 
-%postun
+%postun init
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/bluetooth ]; then
                /etc/rc.d/init.d/bluetooth stop 1>&2
@@ -84,11 +129,19 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
-%attr(754,root,root) /etc/rc.d/init.d/bluetooth
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/man*/*
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/bluetooth
 %dir %{_sysconfdir}/bluetooth
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth
+
+%files -n cups-backend-bluetooth
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
+
+%files init
+%defattr(644,root,root,755)
+%attr(754,root,root) /etc/rc.d/init.d/bluetooth
This page took 0.282461 seconds and 4 git commands to generate.