bluez-utils.spec

来自「coldfire MCF5445X基于unix平台的BSP」· SPEC 代码 · 共 77 行

SPEC
77
字号
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary         : BlueZ bluetooth utilitiesName            : bluez-utilsVersion         : 2.25Release         : 1License         : GPLVendor          : FreescalePackager        : DuckGroup           : Applications/SystemSource          : %{name}-%{version}.tar.gzBuildRoot       : %{_tmppath}/%{name}Prefix          : %{pfx}%Description%{summary}%Prep%setup %Build#  Determine whether certain libraries exist, and#  what to tell ./configure about them.if [ -f $DEV_IMAGE/usr/lib/libasound.so ] ; then	_alsa_lib="--with-alsa=$DEV_IMAGE/usr/lib"else	_alsa_lib="--without-alsa"fiif [ -f $DEV_IMAGE/usr/lib/libusb.so ] ; then	_usb_lib="--with-usb=$DEV_IMAGE/usr/lib"else	_usb_lib="--without-usb"fi./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \	$_alsa_lib \	$_usb_lib  \	--without-openobex \	--without-dbus \	--without-fuse \	--with-bluez=$DEV_IMAGE/usr/libmake all%Installrm -rf $RPM_BUILD_ROOTmkdir -p $RPM_BUILD_ROOT/%{pfx}make  install DESTDIR=${RPM_BUILD_ROOT}/%{pfx}#  prefix=/usr is corrrect for the binaries, but /etc/* files #  end up being installed in /usr/etc.  Fix that.mv  $RPM_BUILD_ROOT/%{pfx}/usr/etc  $RPM_BUILD_ROOT/%{pfx}#  install the init scriptmkdir -p $RPM_BUILD_ROOT/%{pfx}/etc/default  $RPM_BUILD_ROOT/%{pfx}/etc/rc.d/init.dcp scripts/bluetooth.init $RPM_BUILD_ROOT/%{pfx}/etc/rc.d/init.d/bluetoothchmod +x $RPM_BUILD_ROOT/%{pfx}/etc/rc.d/init.d/bluetooth#  install config filecp scripts/bluetooth.default $RPM_BUILD_ROOT/%{pfx}/etc/default/bluetooth#  the installed pin helper is a python script, too heavyweight for#  an embedded device.  replace it with a simple script:cat > $RPM_BUILD_ROOT/%{pfx}/usr/bin/bluepin << EOF#!/bin/shecho "PIN:123456"EOF%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?