"Fossies" - the Fresh Open Source Software Archive

Member "ndiswrapper-1.63/ndiswrapper.spec" (3 May 2020, 2624 Bytes) of package /linux/misc/ndiswrapper-1.63.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ndiswrapper.spec": 1.62_vs_1.63.

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