SPECS: btsco.spec - userspace bcond, cosmetics

qboosh qboosh at pld-linux.org
Sat Dec 3 11:04:51 CET 2005


Author: qboosh                       Date: Sat Dec  3 10:04:51 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- userspace bcond, cosmetics

---- Files affected:
SPECS:
   btsco.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/btsco.spec
diff -u SPECS/btsco.spec:1.1 SPECS/btsco.spec:1.2
--- SPECS/btsco.spec:1.1	Mon Nov 28 20:26:46 2005
+++ SPECS/btsco.spec	Sat Dec  3 11:04:45 2005
@@ -1,10 +1,11 @@
 # $Revision$, $Date$
+#
 # Conditional build:
 %bcond_without	dist_kernel	# without kernel from distribution
 %bcond_without	kernel		# don't build kernel modules
+%bcond_without	userspace	# don't build userspace utilities
 %bcond_without	smp		# don't build SMP module
 %bcond_with	verbose		# verbose build (V=1)
-
 #
 Summary:	Bluetooth-alsa Project
 Summary(pl):	Projekt Bluetooth-alsa
@@ -18,15 +19,18 @@
 # Source0-md5:	3f46d45db6f0e399044ae6a31b1f23c7
 Patch0:		%{name}-readme-pl.diff
 URL:		http://sourceforge.net/projects/bluetooth-alsa/
-%{?with_dist_kernel:BuildRequires:	kernel-module-build}
-BuildRequires:	bluez-libs-devel >= 2.21-1
-BuildRequires:	libao-devel >= 0.8.6-1
-BuildRequires:	alsa-driver-devel >= 1.0.9-1
-BuildRequires:	alsa-lib-devel >= 1.0.9-1
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	libtool
-Requires:	kernel-sound-alsa
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires:	kernel-module-build}
+%endif
+%if %{with userspace}
+BuildRequires:	alsa-driver-devel >= 1.0.9-1
+BuildRequires:	alsa-lib-devel >= 1.0.9-1
+BuildRequires:	bluez-libs-devel >= 2.21-1
+BuildRequires:	libao-devel >= 0.8.6-1
+%endif
 ExclusiveArch:	%{ix86}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -39,7 +43,7 @@
 %description -l pl
 Dzięki temu oprogramowaniu można używać zestawów słuchawkowych
 Bluetooth Headset z Linuksem. Osiągnięto to dzięki zbudowaniu alsowego
-modułu do jądra, który to używa bluez'a do komunikacji z takim
+modułu do jądra, który to używa systemu bluez do komunikacji z takim
 zestawem. Współpracuje z większością zestawów, ograniczeniem w
 komunikacji jest często urządzenie USB, które to może mieć
 nieobsługiwane częściowo protokoły, wskazówka: hciconfig hciXXX
@@ -48,33 +52,35 @@
 
 %package -n kernel-char-btsco
 Summary:	Linux ALSA kernel driver for Bluetooth Headset
-Summary(pl):	Sterownik ALSA do jądra linuksa dla Bluetooth Headset
+Summary(pl):	Sterownik ALSA do jądra Linuksa dla Bluetooth Headset
 Release:	%{rel}@%{_kernel_ver_str}
 Group:		Base/Kernel
 %{?with_dist_kernel:%requires_releq_kernel_up}
 Requires(post,postun):	/sbin/depmod
+Requires:	kernel-sound-alsa
 
 %description -n kernel-char-btsco
-Linux ALSA kernel driver for Bluetooth Headset named snd_bt_sco
+Linux ALSA kernel driver for Bluetooth Headset named snd_bt_sco.
 
 %description -n kernel-char-btsco -l pl
-Sterownik ALSA do jądra linuksa dla Bluetooth Headset o nazwie
-snd_bt_sco
+Sterownik ALSA do jądra Linuksa dla Bluetooth Headset o nazwie
+snd_bt_sco.
 
 %package -n kernel-smp-char-btsco
 Summary:	Linux ALSA kernel driver for Bluetooth Headset (SMP)
-Summary(pl):	Sterownik ALSA do jądra linuksa dla Bluetooth Headset (SMP)
+Summary(pl):	Sterownik ALSA do jądra Linuksa dla Bluetooth Headset (SMP)
 Release:	%{rel}@%{_kernel_ver_str}
 Group:		Base/Kernel
 %{?with_dist_kernel:%requires_releq_kernel_smp}
 Requires(post,postun):	/sbin/depmod
+Requires:	kernel-smp-sound-alsa
 
 %description -n kernel-smp-char-btsco
-Linux ALSA kernel (SMP) driver for Bluetooth Headset named snd_bt_sco
+Linux ALSA kernel (SMP) driver for Bluetooth Headset named snd_bt_sco.
 
 %description -n kernel-smp-char-btsco -l pl
-Sterownik ALSA do jądra linuksa SMP dla Bluetooth Headset o nazwie
-snd_bt_sco
+Sterownik ALSA do jądra Linuksa SMP dla Bluetooth Headset o nazwie
+snd_bt_sco.
 
 %prep
 %setup -q
@@ -87,7 +93,9 @@
 %{__automake}
 %configure
 
+%if %{with userspace}
 %{__make}
+%endif
 
 %if %{with kernel}
 cd kernel
@@ -122,13 +130,17 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},/lib/modules/%{_kernel_ver}{,smp}/misc}
+
+%if %{with userspace}
+install -d $RPM_BUILD_ROOT%{_bindir}
 
 for file in avdtp/avtest sbc/rcplay sbc/sbcenc sbc/sbcinfo a2play btsco2 btsco ; do
 	install $file $RPM_BUILD_ROOT%{_bindir}
 done
+%endif
 
 %if %{with kernel}
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
 	%if %{without dist_kernel}
 	for mod in *-nondist.ko; do
 		nmod=$(echo "$mod" | sed -e 's#-nondist##g')
@@ -175,10 +187,12 @@
 %postun -n kernel-smp-char-btsco
 %depmod %{_kernel_ver}
 
+%if %{with userspace}
 %files
 %defattr(644,root,root,755)
 %doc COPYING README README.PL.txt NEWS AUTHORS ChangeLog INSTALL
 %attr(755,root,root) %{_bindir}/*
+%endif
 
 %if %{with kernel}
 %files -n kernel-char-btsco
@@ -192,13 +206,15 @@
 /lib/modules/%{_kernel_ver}smp/misc/snd-bt-sco.ko.gz
 %endif
 
-
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
+
 $Log$
+Revision 1.2  2005/12/03 10:04:45  qboosh
+- userspace bcond, cosmetics
+
 Revision 1.1  2005/11/28 19:26:46  abram
 - initial
 - works on i686, but i can not test it on other platforms
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/btsco.spec?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list