Author: kwizart
Update of /cvs/free/rpms/ndiswrapper-kmod/F-16
In directory se02.es.rpmfusion.net:/tmp/cvs-serv10210/F-16
Modified Files:
ndiswrapper-kmod.spec
Added Files:
ndiswrapper-kmod-nomodinfo.patch
Log Message:
Remove modinfo requirement
ndiswrapper-kmod-nomodinfo.patch:
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- NEW FILE ndiswrapper-kmod-nomodinfo.patch ---
diff -up ndiswrapper-1.57/driver/Makefile.orig ndiswrapper-1.57/driver/Makefile
--- ndiswrapper-1.57/driver/Makefile.orig 2012-01-11 22:04:35.103054918 +0100
+++ ndiswrapper-1.57/driver/Makefile 2012-01-11 22:06:37.880672013 +0100
@@ -192,8 +192,8 @@ clean:
rm -rf .tmp_versions
install: config_check $(MODULE)
- @/sbin/modinfo $(MODULE) | grep -q "^vermagic: *$(KVERS) " || \
- { echo "$(MODULE)" is not for Linux $(KVERS); exit 1; }
+ #@/sbin/modinfo $(MODULE) | grep -q "^vermagic: *$(KVERS) " || \
+ # { echo "$(MODULE)" is not for Linux $(KVERS); exit 1; }
mkdir -p -m 755 $(DESTDIR)$(INST_DIR)
install -m 0644 $(MODULE) $(DESTDIR)$(INST_DIR)
ifndef DESTDIR
Index: ndiswrapper-kmod.spec
===================================================================
RCS file: /cvs/free/rpms/ndiswrapper-kmod/F-16/ndiswrapper-kmod.spec,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- ndiswrapper-kmod.spec 11 Jan 2012 14:36:17 -0000 1.60
+++ ndiswrapper-kmod.spec 11 Jan 2012 21:20:28 -0000 1.61
@@ -16,6 +16,7 @@
URL:
http://ndiswrapper.sourceforge.net
Source0:
http://downloads.sf.net/ndiswrapper/ndiswrapper-%{version}%{?_rc}.tar.gz
Source11: ndiswrapper-kmodtool-excludekernel-filterfile
+Patch0: ndiswrapper-kmod-nomodinfo.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# needed for plague to make sure it builds for i586 and i686
@@ -45,9 +46,9 @@
kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} --filterfile
%{SOURCE11} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels
"%{?kernels}"} 2>/dev/null
# go
%setup -q -c -T -a 0 -n %{name}-%{version}%{?_rc}
-#(cd ndiswrapper-%{version} ;
-#Nothing to patch
-#)
+(cd ndiswrapper-%{version} ;
+%patch0 -p1 -b .orig
+)
sed -i 's|/sbin/depmod -a|/bin/true|'
ndiswrapper-%{version}%{?_rc}/driver/Makefile
for kernel_version in %{?kernel_versions} ; do
cp -a ndiswrapper-%{version}%{?_rc} _kmod_build_${kernel_version%%___*}