SPECS: slmodem.spec - up to snap 20070813, kernel module build macros

wolvverine wolvverine at pld-linux.org
Mon Sep 17 17:38:24 CEST 2007


Author: wolvverine                   Date: Mon Sep 17 15:38:24 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to snap 20070813, kernel module build macros

---- Files affected:
SPECS:
   slmodem.spec (1.37 -> 1.38) 

---- Diffs:

================================================================
Index: SPECS/slmodem.spec
diff -u SPECS/slmodem.spec:1.37 SPECS/slmodem.spec:1.38
--- SPECS/slmodem.spec:1.37	Mon Feb 12 23:09:15 2007
+++ SPECS/slmodem.spec	Mon Sep 17 17:38:19 2007
@@ -1,6 +1,4 @@
 # $Revision$, $Date$
-# NOTE: no SMP drivers for now - I don't know if these binaries would work?
-# TODO: test it on SMP and add SMP modules or update above comment
 #
 # - for 2.6.20 - symbols usb_deregister and usb_register_driver used by slusb.ko
 #   will be GPL-only in a future.
@@ -8,11 +6,10 @@
 # Conditional build:
 %bcond_without	dist_kernel	# without kernel from distribution
 %bcond_without	kernel		# don't build kernel modules
-%bcond_without	smp		# don't build SMP module
 %bcond_without	userspace	# don't build userspace module
 %bcond_with	verbose		# verbose build (V=1)
 
-%define _snap	20061021
+%define _snap	20070813
 
 #
 %define	rel	0.%{_snap}.2
@@ -25,12 +22,9 @@
 License:	BSD almost without source
 Group:		Base/Kernel
 Source0:	http://linmodems.technion.ac.il/packages/smartlink/%{name}-%{version}-%{_snap}.tar.gz
-# Source0-md5:	8e1858b0a6d16fce73966759732986ab
+# Source0-md5:	4e2eeb99d1fe7db939c0f5fbe05a1b01
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
-# In 2.6.19 there was an interrupt handling infrastructure change - per cpu global struct pt_regs *
-# variable is used instead of passing it in irq handlers.
-Patch1:		%{name}-2.9.11-irq-global-pt_regs-2.6.19.patch
 URL:		http://www.smlink.com/
 BuildRequires:	%{kgcc_package}
 %{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build}
@@ -55,7 +49,7 @@
 Summary(pl.UTF-8):	Sterownik jądra Linuksa dla elementu AMR/PCI modemów programowych Smart Link
 Release:	%{rel}@%{_kernel_ver_str}
 Group:		Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_up}
+%{?with_dist_kernel:%requires_releq_kernel}
 Requires(post,postun):	/sbin/depmod
 
 %description -n kernel%{_alt_kernel}-char-slmodem-amr
@@ -79,7 +73,7 @@
 Summary(pl.UTF-8):	Sterownik jądra Linuksa dla elementu USB modemów programowych Smart Link
 Release:	%{rel}@%{_kernel_ver_str}
 Group:		Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_up}
+%{?with_dist_kernel:%requires_releq_kernel}
 Requires(post,postun):	/sbin/depmod
 
 %description -n kernel%{_alt_kernel}-char-slmodem-usb
@@ -94,57 +88,9 @@
 Sterowniki jądra Linuksa dla modemów programowych Smart Link. Ten
 pakiet zawiera sterownik dla modemów USB opartych na SmartUSB56.
 
-%package -n kernel%{_alt_kernel}-smp-char-slmodem-amr
-Summary:	Linux kernel driver for Smart Link soft modem AMR/PCI component (SMP)
-Summary(de.UTF-8):	Linux Kernel Treiber für Smart Link AMR/PCI Software Modems (SMP)
-Summary(pl.UTF-8):	Sterownik jądra Linuksa dla elementu AMR/PCI modemów programowych Smart Link (SMP)
-Release:	%{rel}@%{_kernel_ver_str}
-Group:		Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_smp}
-Requires(post,postun):	/sbin/depmod
-
-%description -n kernel%{_alt_kernel}-smp-char-slmodem-amr
-Linux kernel drivers for Smart Link soft modem. This package contains
-driver for HAMR5600 based AMR/CNR/MDC/ACR modem cards and SmartPCI56,
-SmartPCI561 based PCI modem cards. SMP kernels.
-
-%description -n kernel%{_alt_kernel}-smp-char-slmodem-amr -l de.UTF-8
-Linux Kernel Treiber für Smart Link Software Modems. Dieses Packet
-enthält Treiber für HAMR5600 AMR/CNR/MDC/ACR basierende Modems und
-für SmartPCI56, SmartPCI561 PCI basierende Modems. SMP Kernel Treiber.
-
-%description -n kernel%{_alt_kernel}-smp-char-slmodem-amr -l pl.UTF-8
-Sterowniki jądra Linuksa dla modemów programowych Smart Link. Ten
-pakiet zawiera sterownik do opartych na HAMR5600 kart modemowych
-AMR/CNR/MDC/ACR oraz kart PCI SmartPCI56 i SmartPCI561. Jądra SMP.
-
-%package -n kernel%{_alt_kernel}-smp-char-slmodem-usb
-Summary:	Linux kernel driver for Smart Link soft modem USB component (SMP)
-Summary(de.UTF-8):	Linux Kernel Trebier für Smart Link USB Software Modems (SMP)
-Summary(pl.UTF-8):	Sterownik jądra Linuksa dla elementu USB modemów programowych Smart Link (SMP)
-Release:	%{rel}@%{_kernel_ver_str}
-Group:		Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_smp}
-Requires(post,postun):	/sbin/depmod
-
-%description -n kernel%{_alt_kernel}-smp-char-slmodem-usb
-Linux kernel drivers for Smart Link soft modem. This package contains
-driver for SmartUSB56 based USB modem. SMP kernels.
-
-%description -n kernel%{_alt_kernel}-smp-char-slmodem-usb -l de.UTF-8
-Linux Kernel Treiber für Smart Link Software Modems. Dieses Packet
-enthält Treiber für SmartUSB56 basierende Modems. SMP Kernel Treiber.
-
-%description -n kernel%{_alt_kernel}-smp-char-slmodem-usb -l pl.UTF-8
-Sterowniki jądra Linuksa dla modemów programowych Smart Link. Ten
-pakiet zawiera sterownik dla modemów USB opartych na SmartUSB56. Jądra
-SMP.
-
 %prep
 %setup -q -n %{name}-%{version}-%{_snap}
 
-%patch1 -p1
-
 %build
 cd drivers
 mv amrlibs.o ..
@@ -190,18 +136,6 @@
 %postun -n kernel%{_alt_kernel}-char-slmodem-usb
 %depmod %{_kernel_ver}
 
-%post -n kernel%{_alt_kernel}-smp-char-slmodem-amr
-%depmod %{_kernel_ver}smp
-
-%postun -n kernel%{_alt_kernel}-smp-char-slmodem-amr
-%depmod %{_kernel_ver}smp
-
-%post -n kernel%{_alt_kernel}-smp-char-slmodem-usb
-%depmod %{_kernel_ver}smp
-
-%postun -n kernel%{_alt_kernel}-smp-char-slmodem-usb
-%depmod %{_kernel_ver}smp
-
 %post
 /sbin/chkconfig --add %{name}
 %service %{name} restart
@@ -230,16 +164,6 @@
 %files -n kernel%{_alt_kernel}-char-slmodem-usb
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/misc/slusb.ko*
-
-%if %{with smp}
-%files -n kernel%{_alt_kernel}-smp-char-slmodem-amr
-%defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}smp/misc/slamr.ko*
-
-%files -n kernel%{_alt_kernel}-smp-char-slmodem-usb
-%defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}smp/misc/slusb.ko*
-%endif
 %endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -248,6 +172,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.38  2007/09/17 15:38:19  wolvverine
+- up to snap 20070813, kernel module build macros
+
 Revision 1.37  2007/02/12 22:09:15  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/slmodem.spec?r1=1.37&r2=1.38&f=u



More information about the pld-cvs-commit mailing list