SPECS: pwc.spec - add modprobe config
sparky
sparky at pld-linux.org
Sat Jan 21 18:29:58 CET 2006
Author: sparky Date: Sat Jan 21 17:29:58 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add modprobe config
---- Files affected:
SPECS:
pwc.spec (1.8 -> 1.9)
---- Diffs:
================================================================
Index: SPECS/pwc.spec
diff -u SPECS/pwc.spec:1.8 SPECS/pwc.spec:1.9
--- SPECS/pwc.spec:1.8 Sat Jan 7 16:28:22 2006
+++ SPECS/pwc.spec Sat Jan 21 18:29:53 2006
@@ -7,7 +7,7 @@
%bcond_without userspace # don't build userspace package
%bcond_with verbose # verbose build (V=1)
#
-%define _module_file_name pwc-unofficial.ko
+%define _module_file_name pwc-unofficial
#
Summary: PWC - module with decompressor for Philips USB webcams
Summary(pl): PWC - moduł z dekompresorem obrazu dla kamer internetowych Philipsa
@@ -148,12 +148,17 @@
rm -rf $RPM_BUILD_ROOT
%if %{with kernel}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{_kernel_ver}{,smp}
install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/kernel/drivers/usb/media
install pwc-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
- $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/drivers/usb/media/%{_module_file_name}
+ $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/drivers/usb/media/%{_module_file_name}.ko
+echo "alias pwc %{_module_file_name}" \
+ > $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{_kernel_ver}/pwc.conf
%if %{with smp} && %{with dist_kernel}
install pwc-smp.ko \
- $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/drivers/usb/media/%{_module_file_name}
+ $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/drivers/usb/media/%{_module_file_name}.ko
+echo "alias pwc %{_module_file_name}" \
+ > $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{_kernel_ver}smp/pwc.conf
%endif
%endif
@@ -176,11 +181,13 @@
%files -n kernel-video-pwc
%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}/kernel/drivers/usb/media/%{_module_file_name}*
+%{_sysconfdir}/modprobe.d/%{_kernel_ver}/pwc.conf
%if %{with smp} && %{with dist_kernel}
%files -n kernel-smp-video-pwc
%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}smp/kernel/drivers/usb/media/%{_module_file_name}*
+%{_sysconfdir}/modprobe.d/%{_kernel_ver}smp/pwc.conf
%endif
%endif
@@ -195,6 +202,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.9 2006/01/21 17:29:53 sparky
+- add modprobe config
+
Revision 1.8 2006/01/07 15:28:22 sparky
- up to 10.0.10
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/pwc.spec?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list