]> git.pld-linux.org Git - packages/dahdi-linux.git/blobdiff - dahdi-linux.spec
- updated TODO
[packages/dahdi-linux.git] / dahdi-linux.spec
index 6ba56cf89440a7f6fbcf8c8520556466f0502e23..464961d1343a12e22e3373a28a6b9114ef69f8f9 100644 (file)
@@ -1,6 +1,14 @@
 #
 # TODO:
 # - IMPORTANT rename: http://www.asterisk.org/zaptel-to-dahdi
+# - Fix --without xpp:
+#   + check_modules
+#   unpackaged module: drivers/dahdi/xpp/xpd_bri
+#   unpackaged module: drivers/dahdi/xpp/xpd_fxo
+#   unpackaged module: drivers/dahdi/xpp/xpd_fxs
+#   unpackaged module: drivers/dahdi/xpp/xpd_pri
+#   unpackaged module: drivers/dahdi/xpp/xpp
+#   unpackaged module: drivers/dahdi/xpp/xpp_usb
 #
 # Conditional build:
 %bcond_without dist_kernel     # without distribution kernel
@@ -15,7 +23,7 @@
 %undefine      with_xpp
 %endif
 
-%define                rel     1
+%define                rel     2
 %define                pname   dahdi-linux
 %define                FIRMWARE_URL http://downloads.digium.com/pub/telephony/firmware/releases
 Summary:       DAHDI telephony device support
@@ -82,6 +90,19 @@ Group:               Development/Libraries
 %description devel
 Header files for dahdi interface.
 
+%package udev
+Summary:       udev rules for DAHDI kernel modules
+Summary(pl.UTF-8):     Reguły udev dla modułów jądra Linuksa dla DAHDI
+Release:       %{rel}
+Group:         Base/Kernel
+Requires:      udev-core
+
+%description udev
+udev rules for DAHDI kernel modules.
+
+%description udev -l pl.UTF-8
+Reguły udev dla modułów jądra Linuksa dla DAHDI.
+
 %package -n kernel%{_alt_kernel}-%{pname}
 Summary:       DAHDI Linux kernel driver
 Summary(pl.UTF-8):     Sterownik DAHDI dla jądra Linuksa
@@ -142,7 +163,12 @@ cd drivers/dahdi
 %install_kernel_modules -m %{modules_in} -d misc
 cd ../..
 
-install include/dahdi/*.h $RPM_BUILD_ROOT%{_includedir}/dahdi/
+install -d $RPM_BUILD_ROOT/etc/udev/rules.d
+
+%{make} \
+       DESTDIR=$RPM_BUILD_ROOT \
+       install-devices \
+       install-include
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -157,6 +183,11 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_includedir}/dahdi
 
+%files udev
+%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
+
 %files -n kernel%{_alt_kernel}-%{pname}
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/misc/*.ko*
This page took 1.202692 seconds and 4 git commands to generate.