-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathndiswrapper.spec
84 lines (67 loc) · 2.56 KB
/
ndiswrapper.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Define ndiswrapper_version only if it is not already defined.
%{!?ndiswrapper_version: %define ndiswrapper_version 1.58}
%{!?ndiswrapper_release: %define ndiswrapper_release 1}
# Define kernel version if not already defined
%{!?kernel: %define kernel %(uname -r)}
%{!?ksrc: %define ksrc /lib/modules/%{kernel}/source}
%{!?inst_dir: %define inst_dir /lib/modules/%{kernel}/misc}
Summary: ndiswrapper allows you to use windows XP drivers for that WLAN card without proper Linux drivers.
Name: ndiswrapper
Version: %{ndiswrapper_version}
Release: %{ndiswrapper_release}
License: GPL
Group: System Environment/Base
URL: http://ndiswrapper.sourceforge.net
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{ksrc}/Makefile
%description
Some wireless LAN vendors refuse to release hardware specifications or
drivers for their products for operating systems other than Microsoft
Windows. The ndiswrapper project makes it possible to use such
hardware with Linux by means of a loadable kernel module that "wraps
around" NDIS (Windows network driver API) drivers. This rpm contains
just the userspace tools. You will also need the kernel module rpm.
%package -n kernel-module-%{name}-%{kernel}
Summary: Ndiswrapper kernel module
Group: System Environment/Base
Requires: /boot/vmlinuz-%{kernel}, modutils
Requires: %{name} = %{version}-%{release}
BuildRequires: %{ksrc}/Makefile
%description -n kernel-module-%{name}-%{kernel}
Kernel module for ndiswrapper.
%prep
%setup -q
%build
make all KVERS=%{kernel} KSRC=%{ksrc}
%install
rm -rf $RPM_BUILD_ROOT
make all install DESTDIR=$RPM_BUILD_ROOT INST_DIR=%{inst_dir} \
KVERS=%{kernel} KSRC=%{ksrc} sbindir=/sbin \
usrsbindir=%{_sbindir} mandir=%{_mandir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/sbin/*
%{_sbindir}/*
%{_mandir}/man8/*
%doc README AUTHORS ChangeLog INSTALL
%files -n kernel-module-%{name}-%{kernel}
%{inst_dir}/*
%post -n kernel-module-%{name}-%{kernel}
if [ "`uname -r`" = "%{kernel}" ] ; then
depmod -a >/dev/null 2>&1 || :
fi
%postun -n kernel-module-%{name}-%{kernel}
if [ "`uname -r`" = "%{kernel}" ] ; then
depmod -a >/dev/null 2>&1 || :
fi
%changelog
* Mon Jan 10 2005 David Kaplan <[email protected]> -
- Got rid of makeinstall macro as it asks for problems and use naming convention of make files.
* Tue Jan 4 2005 David Kaplan <[email protected]> -
- Updated spec file so that it is closer to kernel module standard spec
- Made ndiswrapper_version a configurable macro
* Tue Feb 3 2004 <[email protected]> -
- Initial build.