]> git.pld-linux.org Git - packages/bluez-utils.git/commitdiff
- more PLDization
authorArtur Frysiak <artur@frysiak.net>
Tue, 25 Feb 2003 18:01:17 +0000 (18:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bluez-utils.spec -> 1.3

bluez-utils.spec

index 51b5e74e1f360de441ea61a09e6469e685aeb609..04dcd15fc62e0e7d05a710f6af14d92e4a14ff46 100644 (file)
@@ -2,13 +2,13 @@ Summary:      Bluetooth utilities
 Name:          bluez-utils
 Version:       2.2
 Release:       2
-License:       GPL
+License:       GPL v2
 Group:         Applications/System
 Source0:       http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
-#Patch0:               %{name}-build.patch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 URL:           http://bluez.sourceforge.net
 BuildRequires: bluez-libs-devel >= 2.0
+Requires(post,preun):  /sbin/chkconfig
 ExcludeArch:   s390 s390x
 
 %description
@@ -28,22 +28,42 @@ The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
 rm -rf $RPM_BUILD_ROOT
 
 %setup -q
-#%patch -p1
 
 %build
-%configure2_13 --with-bluez-libs=%{_libdir}
+%{__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
 
+%post
+/sbin/chkconfig --add bluetooth
+
+%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
+
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING INSTALL ChangeLog NEWS README
+%doc AUTHORS ChangeLog README
 /etc/rc.d/init.d/bluetooth
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
This page took 0.031734 seconds and 4 git commands to generate.