]> git.pld-linux.org Git - packages/dahdi-linux.git/commitdiff
- userspace bcond auto/ti/dahdi-linux-2_2_0_2-3
authorhawk <hawk@pld-linux.org>
Fri, 25 Sep 2009 11:44:13 +0000 (11:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dahdi-linux.spec -> 1.16

dahdi-linux.spec

index bd7ebd462cc748d0fb420646248325f164bde747..b0c006ed23e872f18ac22f05c24cd1d27b1bf857 100644 (file)
 %bcond_without dist_kernel     # without distribution kernel
 %bcond_with    oslec           # with Open Source Line Echo Canceller
 %bcond_without xpp             # without Astribank
+%bcond_without userspace       # don't build userspace packages
 %bcond_with    verbose
 
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine      with_userspace
+%endif
+
 %ifarch sparc
 %undefine      with_smp
 %endif
@@ -23,7 +28,7 @@
 %undefine      with_xpp
 %endif
 
-%define                rel     2
+%define                rel     3
 %define                pname   dahdi-linux
 %define                FIRMWARE_URL http://downloads.digium.com/pub/telephony/firmware/releases
 Summary:       DAHDI telephony device support
@@ -164,12 +169,14 @@ cd drivers/dahdi
 %install_kernel_modules -m %{modules_in} -d misc
 cd ../..
 
+%if %{with userspace}
 install -d $RPM_BUILD_ROOT/etc/udev/rules.d
 
 %{make} \
        DESTDIR=$RPM_BUILD_ROOT \
        install-devices \
        install-include
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -180,6 +187,7 @@ rm -rf $RPM_BUILD_ROOT
 %postun -n kernel%{_alt_kernel}-%{pname}
 %depmod %{_kernel_ver}
 
+%if %{with userspace}
 %files devel
 %defattr(644,root,root,755)
 %{_includedir}/dahdi
@@ -188,6 +196,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/dahdi.rules
 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/xpp.rules
+%endif
 
 %files -n kernel%{_alt_kernel}-%{pname}
 %defattr(644,root,root,755)
This page took 0.115396 seconds and 4 git commands to generate.