]> git.pld-linux.org Git - packages/bluez-utils.git/blobdiff - bluez-utils.spec
- updated to 2.3
[packages/bluez-utils.git] / bluez-utils.spec
index b06a4a200d336ede801d557d35b964b589b7b5e2..9f42f1b02997425580b1a97e31dd02b6aa84b832 100644 (file)
@@ -1,67 +1,94 @@
-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):   Narzêdzia Bluetooth
+Name:          bluez-utils
+Version:       2.3
+Release:       1
+License:       GPL v2
+Group:         Applications/System
+Source0:       http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
+Patch0:                %{name}-etc_dir.patch
+URL:           http://bluez.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: bluez-libs-devel >= 2.0
+BuildRequires: libtool
+Requires(post,preun):  /sbin/chkconfig
+ExcludeArch:   s390 s390x
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Bluetooth utilities (bluez-utils):
      - hcitool
      - hciattach
      - hciconfig
      - hcid
      - l2ping
      - start scripts (RedHat)
      - pcmcia configuration files
+ - 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
+Narzêdzia Bluetooth (bluez-utils):
+ - hcitool
+ - hciattach
+ - hciconfig
+ - hcid
+ - l2ping
+ - skrypty startowe (PLD)
+ - pliki konfiguracji PCMCIA
 %prep
-rm -rf $RPM_BUILD_ROOT
-
 %setup -q
-%patch -p1
+%patch0 -p1
 
 %build
-%configure --with-bluez-libs=%{_libdir}
-make
+%{__libtoolize}
+%{__aclocal}
+%{__automake}
+%{__autoconf}
+%configure \
+       --enable-pcmcia
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       confdir=%{_sysconfdir}/bluetooth \
+       mandir=%{_mandir}
+
+%{__make} -C scripts \
+       DESTDIR=$RPM_BUILD_ROOT \
+       redhat
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%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 <timp@redhat.com>
-- rebuilt
-
-* Sun Jan 19 2003 Matt Wilson <msw@redhat.com> 2.2-1
-- configure with --with-bluez-libs=%%{_libdir}
+%post
+/sbin/chkconfig --add bluetooth
+if [ -f /var/lock/subsys/bluetooth ]; then
+       /etc/rc.d/init.d/bluetooth restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
+fi
 
-* Fri Jan 17 2003 Bill Nottingham <notting@redhat.com> 2.2-1
-- adapt upstream rpm
+%postun
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/bluetooth ]; then
+               /etc/rc.d/init.d/bluetooth stop 1>&2
+       fi
+       /sbin/chkconfig --del bluetooth
+fi
 
-* Tue Aug 13 2002 Sebastian Frankfurt <sf@infesto.de>
-- Initial RPM
+%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*/*
+%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
This page took 0.110685 seconds and 4 git commands to generate.